7374756666

Sending input to all tmux panes

If you need to enter the same input into two tmux panes (useful if running the same command on multiple servers) do the following:

ctrl-b : then enter setw synchronize-panes on …

Using Yubi keys for 2fa Linux desktop login

To configure one or more yubi keys to act as a 2fa challenge for Linux desktop login do the following:

Step 1 - Prepare the system

Resetting a Yubi key GPG card to default

If you lock a Yubi key's GPG functionality by entering the admin pin wrong 3 times (or some how just screw it up) do the following:

Copy this into a …

Using Yubi keys for GPG/SSH keys

I've recently replaced my GPG keys with new ones stored on Yubi keys, why? Well...

  1. To use a master key and sub keys, previously I only had a master key …

A script to convert an entire MySQL/MariaDB charset from one charset to another

I recently had to add emoji support to a site which used the utf8 charset on a MariaDB 10.1 server.

To do this I needed to change the charset …

Sensu memcached metrics triggers error for invalid line in carbon

The sensu metrics memcached plugin by default outputs the memcached version, if you pipe this to graphite this will generate an error:

[listener] invalid line (hostname.memcached.version 1.4 …

Generating the default pygments.css

This site is powered by Pelican which uses Pygments to add syntax highlighting.

By default pelican doesn't come with a pygments.css file, the following command will generate one:

pygmentize …

Optimizing images for Google PageSpeed Insights

Google Page Speed Insights often advises to optimize images to reduce the page size, this is often easier said than done especially for sites that allow user uploads such as …

Making Ubuntu the default boot option on a dual boot Mac

I have a late 2015 Mac book pro with Ubuntu 16.04 Mate as the default OS and Mac High Sierra as the secondary OS.

When upgrading to High Sierra …

Installing Ubuntu using debootstrap

An updated version for Bionic is here

In some scenarios you may wish to install vanilla Ubuntu without the ability to use an iso.

In my case this was an …

Previous 1 2 3 4