Latest Posts

ai codex

A practical template repo for Codex instructions

When you start using AI coding agents across multiple repositories, a giant one-off AGENTS.md turns into a maintenance problem. I wanted a repeatable way to bootstrap projects with the same planning and execution standards, while still keeping app-specific …

golang ai

Embed Codex in your Go application

If you already have a go application with real users, running Codex as a separate tool gets awkward pretty fast. I wanted to run prompts from backend code, stream updates to my own UI, and keep approval behavior under my own control. To make that easier I put …

antsle docker

Upgrading antsle with docker

I wrote in a previous post how I upgraded docker on my antsle, and I’m now running a few containers directly in antsleOS. If you do this, you need to stop docker when you upgrade antsleOS, or it will fail as it tries to unmount /var/lib/docker. Just make …

antsle docker

Upgrading docker on antsle

I wrote in a previous post how to run docker on antsle. After playing around with it, and trying a Dockerfile which uses multi-stage builds, I discovered that the version installed was 17.03 CE. myantsle ~ # docker version Client: Version: 17.03.1-ce API …

antsle docker

Running docker on antsle

I recently got my hands on an antsle one pro to use for my home projects. My initial plan was to run a VM on it that would only run docker containers, but now that they released version 0.5.0 antsleOS can run docker directly. I was pleasantly surprised to see …

golang docker

Testing redis in go with docker

If you want to run integration tests in go, and want an easy way to not have to script all the setup and teardown, you can use dockertest helper. It will let you use docker to run services needed for the integration testing, which lets you easily clean up …

golang docker

Docker multistage go build

If you ever had to build a go binary and include it in a docker container, you would either have to do a multi-stage build, which meant you couldn’t use a docker hub automated build, or you had to include the whole build environment in the image, which …

golang testing

Using defer in TestMain

If you’re using TestMain you’ve probably read that you can’t use defer as you need to use os.Exit(m.Run()) to exit from TestMain. The reason for that is that os.Exit() doesn’t honor defer statements. There is an easy way around that, …

cooking

How to make glögg in the US

Living in the US it can be hard to come by glögg which is Swedish mulled wine, and if you my some miracle manage to find some, it usually isn’t any good. I have resorted to make my own, which in my opinion is just as good as what you can buy in Sweden. …

jenkins go

Building go programs in jenkins

I’ve been working on a go program where the source resides in a private github repo, which means I can’t use a build system like TravisCI to build it, so I have to use a private Jenkins instance I’m running. Getting this to work required some …