A bookmarklet for darkmode

Here’s a privacy-friendly bookmarklet that toggles dark mode on any page. Click it once to turn dark mode on, and click it again to turn it off. Why? I’m super paranoid when it comes to browser extensions and never install…

I let Claude manage my WordPress blog (sometimes)

I’ve had this site since 2003. In all that time I never really learned WordPress. I knew just enough to keep things running, and every time I wanted to change something, like a menu, a layout or a colour, I…

The core schema-design principles I follow

Here are the core schema-design principles I follow: Start from the business grain: define exactly what one row represents, e.g. “one trade execution” or “daily account balance per portfolio and currency.” Everything follows from this. Preserve raw data: keep an…

Run static website on Kubernetes

Assuming kubectl is configured. This is how to run default nginx site on Kubernetes. Simple setup = load balancer/no ingress In this example we don’t use an ingress. We just expose the static website behind a loadbalancer, so the static…

Run a dummy job on Kubernetes

Assuming kubectl is configured: Run as job: # Start job kubectl create job hello \ –image=busybox \ — echo "Hello from a Kubernetes Job" # See it run/complete kubectl get jobs # View logs from job kubectl logs job/hello #…