Articles
Notes on things I've built: what worked, what didn't, and why.
· 4 min read
Logging AI agent runs as JSONL: one line per decision, every result rebuilt from it
How an AI agent testbed logs every decision as one JSON line, rebuilds every result from those files, and why zstd shrinks them 44x where gzip gets 4x.
ai · ai-agents · llm · data-engineering
· 8 min read
Samba in Docker: moving a home server's file shares without breaking Windows, Mac or phone
Moving Samba from an Ubuntu host into Docker with the same passwords, names and shares, and the AppArmor rule that hid it from Macs.
self-hosting · docker · linux · samba
· 8 min read
Pre-rendering a Vite + React site for search engines and AI crawlers, without Next.js
A second Vite build and a 120-line script turn a React single-page app into static HTML per page, with a sitemap, JSON-LD and real 404s on CloudFront.
seo · react · vite · aws
· 12 min read
What musical intervals look like as Lissajous curves
A fifth draws a neat loop and a semitone a dense tangle. What the shapes and rhythms show about ratios and tuning, and what they can't explain.
music · visualization · web-audio
· 10 min read
A home media server stack, reviewed: Jellyfin, Sonarr, Radarr and everything around them
Fourteen containers on a 2014 PC: Jellyfin, the *arr apps, monitoring, an outside check and backups. What each piece does, what it costs, and what broke.
jellyfin · self-hosting · docker · linux · aws
· 9 min read
Tuning Jellyfin on an old server with no graphics card
An audit of a 2014 Jellyfin server: hidden libraries, trickplay failing on read-only drives, VA-API on Haswell with measured numbers, and 1.2 TB back from ext4.
jellyfin · self-hosting · transcoding · docker · linux
· 4 min read
How HTTPS certificates work, and who does what
Every party in a home server's HTTPS: DNS, the router, Caddy, Let's Encrypt, ACM and Roles Anywhere, and the DNS quirk that stopped a certificate.
https · certificates · lets-encrypt · dns · caddy · aws · self-hosting
· 4 min read
Putting Jellyfin behind HTTPS with Caddy and Let's Encrypt
Moving home Jellyfin to HTTPS with Caddy and Let's Encrypt, why a dynamic DNS CNAME broke the certificate, and the A record that fixed it.
jellyfin · caddy · https · lets-encrypt · dns · aws · terraform · self-hosting
· 6 min read
Prompt caching for an AI agent that calls the model hundreds of times
How prompt caching cut the input cost of a Claude agent loop by about two-thirds, how it's coded for Claude and OpenAI, and where it didn't work.
ai · ai-agents · llm · claude · openai · cost
· 3 min read
Deploying from GitHub Actions to AWS without access keys
How this site deploys to S3 and CloudFront with GitHub's OIDC provider instead of stored AWS keys, in Terraform, and why the role's permissions matter more.
aws · github-actions · iam · terraform · security
· 4 min read
A Raspberry Pi camera on AWS with no access keys
Replacing a Raspberry Pi's AWS access key with IAM Roles Anywhere: a private CA, one-hour credentials, and the signing helper on 32-bit Pi OS.
aws · iam · raspberry-pi · s3 · iot · terraform · security
· 4 min read
What is an SSL certificate? SSL, TLS and HTTPS, simply
What the padlock promises, what a certificate is, SSL vs TLS, who vouches for a website, and why certificates expire, in plain language.
https · certificates · security
· 5 min read
What is transcoding? Direct play, remuxing and transcoding, simply
Why a movie plays perfectly on one device and buffers on another: direct play, direct stream and transcoding in Plex and Jellyfin, in plain language.
plex · jellyfin · transcoding · self-hosting
· 4 min read
A Raspberry Pi camera that uploads a photo to S3 every three hours
A Raspberry Pi 3 and Camera Module 3 photograph the same view every three hours, upload to S3 with boto3, and a Lambda-backed gallery shows them.
raspberry-pi · aws · s3 · lambda · python · iot
· 4 min read
Leaving Plex for Jellyfin to keep remote streaming free
Plex started charging for remote streaming, so I moved my media server to Jellyfin in Docker: the Compose file, a systemd unit and what's still missing.
jellyfin · plex · docker · linux · self-hosting