How to automatically switch Tmux themes between light & dark

TL;DR: Here's how you automatically switch between catppuccin themes: if-shell -F "#{==:#{client_theme},light}" { set -g @catppuccin_flavor 'latte' } { set -g @catppuccin_flavor 'mocha' } set-hook -g client-dark-theme { set -g @catppuccin_flavor...

A hard problem made easy: Rust Binary Tree Inversion

Today I came across a blog post titled An Easy Problem Made Hard: Rust & Binary Trees. It presented an interesting challenge to me, because it explained how in Rust this problem became harder due to its model and I wanted to understand if it can...

Introducing caddy-fail2ban

I run quite a few services in my homelab and they have been fronted by nginx basically since the beginning. Recently, I wanted to modernise things a bit and found myself migrating to caddy which meant replacing all the use cases I had developed...

Adding Full Disk Encryption to Proxmox

Note This is a repost on my personal blog of the tutorial I published on the Proxmox forums. Go read the post and discussion there, this is merely as a backup. If you want to encrypt your data, the best way is usually to start at the lowest layer...

Trying to blog again

I have not blogged in a looooong time (almost 10 years!). For the most part, this was due to personal reasons, but also because I didn't have many side projects that were worth talking about. In fact, for quite some time this blog has been down,...