using patch command with git, and how to reverse it
The patch command is an old tool that is still useful when changes need to move between machines without push or remote access. A typical case is an old server without git access, or a small fix that …
duckdb benchmark, csv vs parquet vs native table
A small benchmark I ran today with duckdb, nothing scientific, I was just curious how slow csv really is for lookup queries. I have skip-trace data with a phone number column, and I want to find one …
port knocking with knockd, hiding ssh from the internet
I have a small vps that I use for everything, and the auth log on that machine is just bots trying ssh passwords all day long. fail2ban helps, but it still feels wrong to expose port 22 to the whole …
Kubernetes resource quota, keeping cpu and memory in check
If you share a cluster with other teams, sooner or later one pod will eat all the node memory and everything else starts getting OOMKilled. That is usually the moment people find out ResourceQuota …
Add new mode for display using xrandr
Generate new mode for xrandr using cvt
$ cvt 1600 900 # 1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 …