Health Tools

Setting up redshift

Published · updated · 3min

I revived my old Lenovo Miix 310 yesterday. It’s not a great machine by any stretch, but it at least fills a niche similar to the one netbooks used to play for me: it’s small, low-power, and can be thrown in a bag. The top row of the …

Python Hacks Tools DevOps

Building Python fat RPMs with nfpm and some magic

Published · updated · 4min

I’d an awkward problem to solve recently: how do you build a relatively cross-platform fat RPM for a Python application without having to build out a bunch of extra build infrastructure.

On the face of it, this is easy, and this is something I’ve partially solved before. I …

Tools

Doing

Published · 1min

I haven’t posted anything here in a very long time. I figure I’d might as well share a small tool I knocked together.

Here it is:

#!/bin/sh

set -eu

usage () {
    echo "usage: ${0##*/} [-h] [MESSAGE]"
}

# Ensure data directory exists
: "${DOING_ROOT:=${XDG_DATA_HOME:-$HOME/.local/share}/doing}"
mkdir -p …
Tools

From my ~/bin: find-duplicates

Published · 5min

Note

This one was relatively populate for whatever reason. I’d recommend you use something like duff these days, though find-duplicates still works better in some circumstances.

I’m still kind of happy with this code though. Here is a cache of the original post.

This is is starting to …

Tools

PLGX: a DHTML-based presentation system to put me to sleep

Published · 1min

My sleep patterns are really screwed up.

I ended drifting off to sleep at 9pm last night, and woke around 3.30am. In an effort to send myself back to sleep, I knocked out PLGX, a small DHTML-based presentation system for those of us who neither want nor need …