Sector Notes
Short, practical notes on Linux, shell, networking, git and everyday development.
A working logbook — short notes I write up so I stop re-figuring the same things.
Recent notes
-
Git worktrees in practice
Stop stashing to switch branches. Git worktrees give each branch its own directory off a single repo.
-
Bash strict mode, explained
What set -euo pipefail actually does, line by line, plus the IFS trick and the gotchas that bite everyone.
-
A minimal nginx reverse proxy
The smallest nginx reverse proxy that terminates TLS, forwards to a local app, and keeps the headers everyone forgets.
-
systemd timers instead of cron
Replace cron with systemd timers: logs, status, missed-run catch-up, and the smallest setup that actually works.
-
A small jq cookbook
The handful of jq recipes that cover most real work: filtering, reshaping, arrays, and turning JSON into CSV.
-
Fetch timeouts in Node with AbortController
Node's global fetch has no useful default timeout. Add one with AbortSignal.timeout and combine it with cancellation.