Rename Files with Python

Simple wee python script for renaming files in a directory. I had a bunch of mp4 files that had a reference code at the end rather than the front so renaming to put the reference code at the front would keep them in order e.g. myfile-m6-03.mp4 to... » More

Offline PluralSight Videos

I wanted to watch a PluralSight course while on a flight without internet access. This might well be against the PluralSight terms and conditions so I don't recommend doing this. I used a recent version of youtube-dl and used a recent version of... » More

Terraform with VMWare

I didn't find much in the way of examples online for using Terraform against VMWare. So here is the .tf config that worked for me: provider "vsphere" { user = "jonny@dev" password = "CHANGEME!" vsphere_server = ""... » More

Apply Export Policy on NetApp 9.1

There have been some changes to the NetApp menu and it took me a few minutes to find the location to apply export policies to a volume. It is currently (version 9.1) found under the 'Junction Paths' menu tab for the SVM. The 'Export Policies' are... » More

Minecraft Spigot Server on CentOS 7

I'm just recording some notes here on the steps I took to run a Minecraft (Spigot) server on a CentOS 7 server. Install Pre-requisites Get Java You could try using OpenJDK with Or visit the Oracle website agree to the license agreement and... » More

Hostname Completion

Shell Courtesy of Pete in work. To enable hostname auto completion in Bash, do the following: dig pop @dns.server.tld axfr | awk '$4 ~ /\yA\y/ && gsub(/.$/,"",$1) {print $1}' > ~/.hosts If you would prefer to filter out hosts e.g. dev and... » More

Querying Zookeeper from Python

Install the prerequisites. Below works for Debian-based distros such as Ubuntu/Mint: Install python libraries: Example code below shows making a connection, getting the names of some child nodes and pulling info from each of those child... » More

Install check_mk on Ubuntu 18.04

Ubuntu 18.04 includes check-mk in the repository version but it is an older version 1.2.8 (at the time of writing). Download check mk raw (get the latest stable URL from the website) : Try installing it: You may get dependency issues which can... » More