HA and TPLink

HA and TPLink

In this post I explain how to control a PoE port on a TP-Link switch (TL-SG108PE) from Home Assistant. Since these small switches don’t support SNMP, I’ll use curl to authenticate, turn on, turn off or query the status of a specific port. The use case is being able to turn on or off a ReoLink PoE camera connected to one of the ports from Home Assistant. …

December 21, 2024 · 3 min
CRLF vs LF

CRLF vs LF

When working in software development, one of the most subtle yet crucial aspects you need to be aware of is the difference between line endings in text files between Windows (CRLF \r\n) and Linux/MacOS (LF \n). This small detail can cause big problems if not handled correctly, especially when working in mixed environments – version control conflicts, script incompatibilities, compilation or execution issues. I wrote this post to have a handy reference for dealing with this topic, including a few tricks. …

September 28, 2024 · 3 min
Git Multi-Account

Git Multi-Account

This post will walk you through the process of setting up and using multiple accounts with one or more Git providers (GitHub, GitLab, Gitea). I describe the two options I recommend: HTTPS + Git Credential Manager and SSH multi-account. The first, HTTPS + Git Credential Manager, is the one I use most, because it’s compatible with CLI and/or GUI tools like Visual Studio, VSCode, Git Desktop, Gitkraken, etc. The second option, SSH multi-account, I delegate to “headless” machines, servers I connect to remotely via CLI or VSCode remote that need to clone repositories and work on them. …

September 21, 2024 · 12 min
VMWare on Windows

VMWare on Windows

I install VMware Workstation Pro on top of a Windows 11 Pro host and create a Guest VM running Windows 11 Pro (optionally without TPM 2.0) as an isolated development environment. …

August 26, 2024 · 4 min
Windows for development

Windows for development

I set up Windows 11 as a cross-platform development machine (Linux, macOS, and Windows), not Microsoft-only. Starting from a clean English install, tuned lightly (optionally after a dualboot). The post starts with the CLI and WSL2 and ends with the tools and programming languages. …

August 25, 2024 · 36 min
A Decent Windows (Obsolete)

A Decent Windows (Obsolete)

In this post I explain how I configure a Windows 11 that I’m going to use for software development, testing or demos. I don’t need frills since it won’t have sensitive data, I want its essence, bare-bones, with few applications, some browsing and that’s it. In the end it became a technical exercise – removing everything I can, ads, Edge, extras, installing minimal drivers, a local account, having it boot and be available as soon as possible. Note: a year later I decided to create a new decent Windows 11 (2025). …

August 24, 2024 · 17 min