Field Notes & Snippets

A personal scratchpad of everyday shell one-liners, systemd patterns, and database reminders.

Inspect Listening Sockets Without Netstat

Quickly verify which processes bind external interfaces on modern Linux hosts:

sudo ss -tulnp | sort -k5

Swapfile with Low Swappiness on Micro Instances

Keep emergency headroom available for package upgrades while preferring RAM during normal workloads:

sudo fallocate -l 1G /swapfile && sudo chmod 600 /swapfile
sudo mkswap /swapfile && sudo swapon /swapfile
sudo sysctl -w vm.swappiness=10

Check Systemd Journal Disk Footprint

Vacuum old logs safely without restarting active daemons:

journalctl --disk-usage
sudo journalctl --vacuum-size=100M

Reading Queue (2026)

Currently working through Systems Performance (2nd Ed.), Designing Data-Intensive Applications, and RFC 9000 notes on QUIC transport evolution.