Daniel Keast

Stuff about linux

Bash style tab completion for zsh

In bash when using tab completion, the first press of the tab key lists out all of the completions:

Ledger

Ledger is a double-entry accounting application. It defines a simple plain text file format for writing out your accounts, and the ledger command parses the file and produces reports. An entry looks something like this:

Disable middle button scroll

I’m playing around with blender tutorials, trying to understand how to make some simple 3d models. The way you move the 3d viewport around is by holding in the middle mouse button and moving the mouse around. This is blocked by a default setting in X for my thinkpad that causes middle click drag to emulate a mouse wheel for scrolling.

Edit minified json file in vim

If you need to edit a json file in vim that has been minified like this:

mitmproxy

mitmproxy is an intercepting proxy that allows you to inspect and modify http requests that you send through it.

Merging git repos

A couple of times I’ve wanted to merge two separate git repos into one. This has happened when they are really parts of the same application with the same release cycle, but have been split in a fit of over architecting.

Special characters with GNOME

GNOME has a few ways to type in characters that are not normally accessible via your keyboard.

Managing Android disk usage

I find the MTP implementation on Android to be very flaky. On multiple operating systems with multiple Android devices I’ve had it just hang at some point when transferring files.

Let's Encrypt

Let’s Encrypt is a free certificate authority run as a non-profit organisation. I decided to try setting it up on my server, and was finished within five minutes. The certbot tool has been packaged for Debian and has been backported for Jessie. A single command configured Apache to redirect to https always, create the SSL cert, install it and create a systemd timer file to automatically renew it:

Debian

Debian is my Linux distro of choice. I first started using it sometime around 2003, but switched to Ubuntu for several years because I became frustrated with the age of the packages in it’s repository. Going back to Debian has made me appreciate it much more than I did before, several years of fixed versions with security updates means that I can write software and mostly forget about it until the next release.