Terminal Based Password Manager | July 22, 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. In 2017 there was a bug in the Lastpass browser plugin that exposed passwords in plain text. Stuff like this is super bad, and can be exploited by attackers to get access to all your stuff.
How to Update your CMUS Library | May 9, 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. I often find myself updating my music library, which can cause CMUS to go out sync.
Create an Encrypted Zip File on MacOS | May 9, 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. Move the files you want to compress and encrypt to your Desktop. Open Terminal by pressing CMD + SPACE and searching for Terminal in the search window that pops up. Run the following command to zip and encrypt the selected files:
Installing LineageOS on Nexus 5X from OSX | March 1, 2018
Step 1: Prerequisite Downloads Download TWRP to your Downloads folder. Download LineageOS package to your Downloads folder. Download Google Apps (arm64 version) to your Downloads folder. Step 2: Unlock the Bootloader Enable USB debugging on phone. Toggle OEM Unlock on phone. Run brew cask install android-platform-tools in terminal. Plug phone into computer. Allow USB debugging on the phone using the popup. Run adb reboot bootloader in terminal.
My Shockingly Un-scientific Study of Chrome and Firefox | January 2, 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. Everything in this study was performed on the same 2016 Macbook Air (8GB), and on the same WiFi network, in the same geographical space (my desk).
Link your Documents Folder to Google Drive on OSX | November 16, 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. There’s a way to do this in OSX to, but it’s a bit less user-friendly and requires delving into the terminal.
Open your File Manager from the Terminal in Ubuntu Mate | September 28, 2017
This post was build with Ubuntu Mate in mind, but any Linux distro using the Gnome file manager should work fine. 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? Add the following line into your .bashrc file: alias ofm=`gnome-open . Make sure to include the dot at the end.
The Search for Sunrise - Part Two | August 29, 2017
The Search for Sunrise - Part Two About a week ago a colleague of mine introduced me to a French children’s story called Le Petit Prince, written by Antoine de Saint-Exupery. If you haven’t read it, the story is about a boy born on a tiny planet who starts to question the rationale of adults. He hops from planet to planet, meeting different adults with different professions, all experiencing different problems.
Customising DKAN's Global Search Bar | August 26, 2017
The Bar In DKAN there’s a function that you can call within your theme to show a search bar. This search bar utilizes DKANs global search functions and returns results from all over your instance. As powerful as this search bar is, it’s kinda tricky to customise it. It’s not terrible by anymeans, at least it follows the guidance from the current theme. But it’s kinda clunky. For one, the submit button reads fl for some reason.
A Week Of Hardstyle | August 23, 2017
A Week Of Hardstyle 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. Why Recently I’ve found myself getting super frustarted with myself purely because I can’t decide what to listen to, and I end up spending more time browsing Spotify than actually coding.
How to Increase PHPs Upload Size | August 7, 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. Use the Quick Reference steps if you already know what you’re doing, and just need to copy the commands. Prerequsites A server (local or remote) running LAMP with Ubuntu 14.
The Search for Sunrise, Part One | August 6, 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. Unfortunately, if you don’t have a Spotify account then you’re out of luck. Spotify is the only place you can find it.
How to Disable Middle Mouse Button Paste in Ubuntu | July 30, 2017
Find out the id of your mouse by running xinput list | grep 'id='. This should give you a list similar to the following: ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ PixArt Microsoft USB Optical Mouse id=10 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ Logitech USB Keyboard id=8 [slave keyboard (3)] ↳ Logitech USB Keyboard id=9 [slave keyboard (3)] Now, my mouse has Microsoft written on the back, so I can assume that it’s the PixArt Microsoft USB Optical Mouse, which has an id of 10.
Getting Data from Impact Case Studies in HEFCE’s REF2014 database | July 26, 2017
Recently we were tasked with grabbing some data from HEFCE’s API of Impact Case Studies submitted to the REF2014. What we wanted to know was to find out how many UK Data Service data collections were used in Impact Case Studies in REF2014 and the case studies they were used in. The first step was to figure out how the API worked. Luckily the API is very well built, and includes a good amount of documentation to go along with it.
Dealing with Clean URLs, or How I Learned how to Interpret Recline JS Errors | July 20, 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. The Problem I could upload data (cvs, xls, etc) into DKAN and view the graphs and example data normally, but when I moved that data into the datastore then Recline would throw out an error.
Create a Server Environment for DKAN | May 2, 2017
Creating the Server Environment We’re going to walkthrough how to set up a LAMP stack from scratch, install further dependencies for DKAN, and set everything up for actually installing the platform. Choosing your Server The vast majority of the web is contained in third-party servers from companies like, Amazon, DigitalOcean, and Google. For a relativly low cost you can spin-up a virtual server inside one of their massive data warehouses.
Creating a Backup and Restore Procedure | April 25, 2017
We’re going to quickly run through how to set up a backup and restore procedure for you DKAN installation. Installing the Prerequisites Composer SSH into your server. Run sudo apt-get install composer. PIP Run the following commands: sudo apt-get install python-pip python-dev build-essential -y sudo pip install --upgrade pip sudo pip install --upgrade virtualenv Downloading the Scripts SSH into your server. Change directory into your DKAN installation: cd /var/www/html Clone the GitHub repository: git clone https://github.
Installing DKAN | March 2, 2017
In this guide I’m going to very quickly run you through how to install DKAN on a Ubuntu 16.04 server. If you’re connecting to a remote server, you’ll want to connect over SSH: ssh email@example.com. Drupal and DKAN Run the following line by line: mysql -uroot -p # log into mysql service DROP DATABASE dkan; # drop the current dkan database if it's there CREATE DATABASE dkan; # create a new, blank, dkan database EXIT; # exit the mysql service sudo rm -rf /var/www/html/* # delete everything sudo rm -rf /var/www/html/.
CKAN Lib Apache Installation Issue | February 26, 2017
So CKAN relies on libapache2-mod-wsgi to run various bits and bobs. Unfortunately for me I’ve ran into an issue. Attempting to install libapache2-mod-wsgi inside a Scotchbox Vagrant VM gives me the following error: WARNING: The following packages cannot be authenticated! libapache2-mod-wsgi Install these packages without verification? [y/N] Selecting yes leads onto this error: Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main libapache2-mod-wsgi amd64 4.3.0-1+deb.sury.org~trusty+1 404 Not Found E: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/m/mod-wsgi/libapache2-mod-wsgi_4.3.0-1+deb.sury.org~trusty+1_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Playing with CKAN | February 23, 2017
You probably already know what CKAN is, so there’s really no point in me explaining that to you. This post, however, will attempt to guide you through building CKAN from source. Keep in mind that I did all this using Ubuntu 16.04LTS. Good luck Dependencies First step is to install the required dependencies. The following command was taken from the CKAN docs sudo apt-get install python-dev postgresql libpq-dev python-pip python-virtualenv git-core solr-jetty openjdk-6-jdk redis-server There’s a couple of things we need to fix here though.
| January 1, 0001
blog This repo stores all my blog posts, just while I decide how I want to deal with things on my end. It’s linked directly from mohnjatthews.com