Convert HTTP response body to status code with HAproxy

[update 2025.10.29] abstract, minor clarification edits. TL;DR Program HAproxy with LUA to extract information from backends and set response headers/status codes. I'm using HAproxy to load-balance HTTP between two backend nodes. HAproxy is pretty smart about doing this, backing off failing backend nodes, retrying failed requests on healthy backend nodes etc. Recently I got a … Continue reading Convert HTTP response body to status code with HAproxy

Testing a Terraform resource deployment

I like to include smoke tests [ST] in my Terraform [TF] deployments just to make sure I didn't overlook anything obvious. One such way is to interact with a resource that invokes other resources, such as an HTTP endpoint that is routed through API gateways, application containers and databases. An easy and portable way to … Continue reading Testing a Terraform resource deployment

Reactivate Linux network interface after standby

I'm happily using (after all this time!) the Acer Nitro 5 [AN5] with Ubuntu 20.04 and the power saving script [PSS]. Unfortunately, when using the lowest power mode, the Ethernet interface won't get an IP any more. The Ethernet interface wakes up with a simple command: sudo ip link set enp7s0 up Resources [AN5] Ubuntu … Continue reading Reactivate Linux network interface after standby