Johnny Matthews | Blog

A new SaaS appears

22nd of February 2021

New software often has a way of just appearing in your life, especially if you life is work. I recently discovered Notion.so completely by accident and through no fault of my own. It started out with an email.

Make git branch use ls, not less.

16th of February 2021

A while ago, the maintainers of Git decided that git branch should act like less instead of ls. That was a terrible decision that made me very upset. Fortunately, the maintaners decided to leave a configuration option to let me change it back. Lovely.

Connect to a Raspberry Pi Zero over USB on Ubuntu

6th of February 2021

I was messing around with a new Raspberry Pi Zero I got for Christmas, and I was surprised how convoluted it is to SSH into the device through the USB port. So I jotted down the steps and put them here.

Copy file contents to clipboard.

12th of January 2021

I often fine myself needing to copy the contents of a file into the system clipboard while fiddling around in the terminal. So I created a quick little function to help me.

Edit multiple lines in Vim

31st of December 2020

How to edit multiple lines at once. I created this mini-guide while using Windows and Powershell, but the information is relevant to Unix-based systems as well.

Grabbing a random Unsplash wallpaper

3rd of November 2020

Look, I know there's a bunch of tutorials out there that show you how to Curl or Wget a wallpaper down from Unsplash. But most of them gloss over super basic stuff that I got stuck on. So I put this guide together that walks you through each baby-step.

CMUS config location

28th of August 2020

CMUS is an incredibly simple music and media player that runs straight from the terminal. However, sometimes it can be tricky to customize and interact with. In this post, I'll quickly jump into where the config files for CMUS are and how to edit them.

Rsync files to Android

17th of July 2020

Rsync is a super handy utility that makes synchronizing files between two systems incredibly simple. Unfortunately, Android doesn't allow users to use this utility straight out of the box. This post discusses why the restrictions exist and how to get around them using ADB-sync.

Plasma showing on-screen keyboard at login

16th of July 2020

I experienced a weird issue with Plasma and Kubuntu (the KDE flavour of Ubuntu) recently. Plasma is the desktop environment that comes default with Kubuntu, and it built by the KDE team. It's pretty nice, and works pretty well. At least, unless you try to uninstall the Clipboard app that comes built-in with Kubuntu.

Install LineageOS on Mi A2

12th of July 2020

Bored of the standard Android OS on your Xiaomi Mi A2? You might be interested in installing LineageOS, a free and open-source operating system for various devices based on the Android mobile platform. I created this post partly as a guide, and partly as a reminder for when I need to do this again in three months.

Unix Pass on Windows Subsystem for Linux

23rd of June 2020

All good programmers use the terminal for literally everything, so you should use the Unix Pass manager to manage your passwords. And since Windows 10 has the ability to use Linux apps through the Windows Subsystem for Linux (WSL), you should install it and be the envy of all your nerd friends.

Disable touchpad scroll-zoom in Firefox

9th of June 2020

It's super annoying when you're scrolling down a window and press `CTRL` for whatever reason. The whole window freaks out and starts zooming in. I don't really want this to happen, so here's how to disable the scroll-zoom in Firefox.

Access the clipboard in Windows subsystem for Linux

29th of March 2020

Using the clipboard from with the Windows Subsystem for Linux (WSL) sounds like a very niche thing to do. But if you're using the Unix Pass password manager, like I do, then it's absolutely necessary. This post briefly goes over how to enable the clipboard, and some issues you might run into.

Create a paper backup of your GPG key

12th of December 2019

Having a paper backup of your keys is a great way to make sure you don't lose them. Yeah, you can store them on digital media like a USB stick or a CD, but there is a chance that the data could get borked. Create a paper copy and store it somewhere safe.

Import a GPG key onto your phone

3rd of December 2019

GPG keys are a super secure way to encrypt your stuff. If you're an idiot like me and use Unix Pass everywhere, including on your phone, you'll need to import your GPG key from your PC to your phone. So this post goes over how to import a GPG key onto your phone, if not very briefly.

The Search for Sunrise, Part Three

31st of October 2019

This has been a long time coming. I'd like to say it's because of life-stuff, just things getting in the way. Since I wrote the original post back in 2017 (posted to Medium in 2018), I've changed jobs, moved house, moved house again, moved countries, got a house, got a new job, and now I'm moving house again. But the story about Maree Docia hasn't really changed. Until seven days ago.

Writing Lit AF Docs

9th of October 2019

Writing docs is easy. It's just a bunch of words strung together into sentences, which in turn make paragraphs. But writing docs that are so lit that they make your parents actually proud of you, that's hard to do. But fear not!

Terminal Based Password Manager

22nd of July 2019

Password managers are great. Services like Lastpass, 1Password, and Dashlane are a great jumping off point for improving your online security. It's just that they're not the end-all be-all of password management, and they suffer from a lot of the vulnerabilities that other onlines services do.

How to Update your CMUS Library

9th of May 2018

CMUS is a fantastically simple music player for Unix systems. It just runs in the terminal and requires hardly any memory to run! This low memory requirement is actually why I go onto using it in the first place. Between Chrome, Slack, and VSCode, I don't have much memory left to go around in my 8gb MacBook.

Create an Encrypted Zip File on MacOS

9th of May 2018

This guide will quickly walk you through how to create an encrypted zip file on a Mac. Since macOS and Linux systems have a lot in common, this will likely work on any Linux distributions too.

Installing LineageOS on Nexus 5X from macOS

1st of March 2018

Bored of the standard Android OS on your Nexus 5X? You might be interested in installing LineageOS, a free and open-source operating system for various devices based on the Android mobile platform. I created this post partly as a guide, and partly as a reminder for when I need to do this again in three months.

My Shockingly Un-scientific Study of Chrome and Firefox

2nd of January 2018

So a new Firefox version came out a few weeks ago. Everyone's been claiming that it's super fast and has overcome it's sluggish past. There's even been some journalists saying it's faster as less resource heavy than Chrome. I wanted to find out for myself, so I did a few tests.

Link your Documents Folder to Google Drive on OSX

16th of November 2017

Windows has this pretty handy feature where you can turn folders into links to other directories. For example, instead of your Documents folder existing in C:/Users/Me/Documents you could have it point to C:/Users/Me/Google Drive/Documents. That way you can just interact with your Documents folder like you normally do, but be safe in the knowledge that everything is being backed up.

Open your File Manager from the Terminal in Ubuntu Mate

28th of September 2017

Do you ever find yourself 22 folders deep into some long lost repository or Drupal theme, and need to jump into the file manager at this point to take a look at some pictures or something?

The Search for Sunrise - Part Two

29th of August 2017

This is the second part in my never ending quest to prove that Maree Docia probably doesn't actually exist. To catch you up, Maree Docia is an artist on Spotify with a few popular tracks. However, outside of Spotify, there is no mention of Maree Docia out in the wild. This series of posts attempts to find out what's going on.

Customising DKAN's global search bar

26th of August 2017

DKAN is an open-source tool for managing and displaying large public data sets like census data, or weather patterns. It can be a bit tricky to customise, so this post details my exploration into how to configure the global search bar within DKAN.

A Week Of Hardstyle

23rd of August 2017

I just spend the last week listening to nothing but Hardstyle music at work. When I say that, I wasn't actually listening to it 100% non-stop, obviously. What I mean is I didn't listen to any other genre of music while working. No punk rock, no classical stuff, no spoken word. Just Hardstyle.

How to increase PHPs upload size

7th of August 2017

So, for some reason PHP's default upload size is only 2MB. This might have been large enough for most files way back in the day, but these days it's barely enough to move a .doc file around. Here's how to change it to whatever you like.

The Search for Sunrise, Part One

6th of August 2017

Hidden in the depths of Spotify exists a track called "At Last, Sunrise". It's slightly over two minutes long so if you have a Spotify account I recommend giving it a quick listen. Even if you're not into classical music, give it a go. It's only two minutes long.

How to disable middle mouse button paste in Ubuntu

30th of July 2017

For some reason, clicking the middle mouse button in Ubuntu will paste whatever you have copied to your clipboard. I don't like this. So, here's how to disable that feature, since there isn't an easy way to disable this feature through Ubuntu settings. Fun.

Getting Data from Impact Case Studies in HEFCE’s REF2014 database

26th of July 2017

This post dives into how I grabbed some fancy data out of a very old, and fairly inaccessible, dataset.

Dealing with Clean URLs, or How I Learned how to Interpret Recline JS Errors

20th of July 2017

This week I ran into an issue with clean URLs (essentially an SEO friendly URL, so no question marks, equals signs, etc) in DKAN. I stumbled onto this while attempting to fix an issue with the DKAN datastore.

Create a Server Environment for DKAN

2nd of May 2017

DKAN is an open-source tool for managing and displaying large public data sets like census data, or weather patterns. This post runs through how to set up DKAN on a LAMP stack.

Creating a Backup and Restore Procedure

25th of April 2017

We're going to quickly run through how to set up a backup and restore procedure for your DKAN installation.

Installing DKAN

2nd of March 2017

In this guide I'm going to _very quickly_ run you through how to install DKAN on a Ubuntu 16.04 server.

CKAN Lib Apache Installation Issue

26th of February 2017

CKAN relies on libapache2-mod-wsgi to run various bits and bobs. Unfortunately for me, I've run into an issue.

Playing with CKAN

23rd of February 2017

This post covers how to build and run CKAN from source, in case you're not a fan of using pre-built binaries.