March 24, 2019

Useful Commands - OpenSSL

openSSL is a very handy tool from the command line. Managing multiple sites and domains I almost use it everyday to do crypto relating things to websites - checking validity, preparing new CSRs, converting certificates to different formats for different operating systems. Here are some of those that I’ve used along the way Read .cer in plain text openssl x509 -in certificate.cer -text -noout convert from pkcs12 (windows format, with private key and cert) to pem (-nocerts for only priv key or -nokeys for only certs) openssl pkcs12 -in keystore. Read more

June 21, 2018

Useful Commands - Image manipulation

I often work with images to go onto e-commerce sites, so getting them as small as possbile (file size wise) is what I aim for, for performance There are plenty of good, paid tools out there such as Kraken or ImageOptim and there are even some good, free (web based) tools you can use such as TinyPNG and Compressor but I was looking for something a I could add into my workflow (read automated and scriptable) Read more

May 9, 2018

Cross compiling Litecoin Core

I’ve had a plan of being a good guy and contributing to the litecoin network by being a full node. I was able to do this when I got around to buying a raspberry pi 3B+ and a 2TB external hard drive. There isn’t many up-to-date guides out there on setting a full node up on a raspberry pi, but this one was the most recent, and worked every step of the way (with a few minor changes) - the school of litecoin Read more

April 16, 2018

Moving Magento

So I was asked to help finish moving a magento (1.9) installation to a new server the other day. To sum it up, it was not fun They had already moved the files and had everything installed and updated the database connection string, however it was still throwing an error. The plan was to set this site up on a subdomain, so we could test a few things, update some things and then go live on the new server Read more

February 8, 2018

PiHole and OpenHAB

Recently I installed pihole on my network because I was sick of ads, and wanted an added layer of security on my network against nasty malware and the like There are plenty of install guides out there for pihole (see official website) so thats not what I am covering today. I installed this on a raspberry pi 1 (Model B) and it handles everything just fine! Becauase I am a fan of home automation, I wanted all the data that is available in the piHole web interface, avaialable to me at my openHAB interface. Read more

February 8, 2018

Useful Commands - MSSQL

Here is a start of a regular posting, “useful commands” Over the years I have saved snippets, commands and notes of things that have been useful or saved alot of time. I start off with a gathering of T-SQL commands to do useful things within a windows database. Some of these relate directly to modifying a Kentico database (the CMS of choice where I work), but may be useful anyway Read more

February 4, 2018

Ubuntu Live USB with persistence

Creating a live USB is easy, adding persistence seems to be quite hard. After lots of research, there was alot of ways to do it, but most of these tutorials were out of date so some things weren’t relevant anymore or just didn’t work Here are some hopefully simple steps to create a live USB with persistence, using Ubuntu. This will also be available as a normal USB flash drive to windows users Read more

April 19, 2017


I backed Ruuvi sometime late last year for a RuuviTag, a battery powered Bluetooth LE microcontroller with an onboard temperature and humidity sensor. As soon as I saw this project I had several ideas. And because I run openHAB at home, naturally, I’d want to collate this date into here for usage in my home automation system. I finally got it in the mail last week, and what surprised me was that they had teamed up the the guy who made espruino and had him port it to the Ruuvi! Read more

February 17, 2017

Node and systemd

For a while now I’ve had my dashboard combo tv and dashboard combo, which runs on dashing and dashkiosk, running in screen sessions. This , of course, is not very managable. If something breaks, you have to ssh in and then find the screen session, re-run the command. In comes systemd. This makes managing services easy! You are able to make anything a system managed service, being able to manage the service via the systemctl commands Read more

February 7, 2017


So for those who use OnetimeSecret all the time, you can add this little function to your .bashrc (or similar) So then you don’t have to openh a browser to share your secret! onetimesecret() { if [ $# -eq 0 ]; then echo "No secret specified";return 1; fi secret=$(curl -s -F "secret=$1" | cut -d '"' -f12) echo$secret } Output looks simlar to this george@george-LT:~$ onetimesecret Thisissupersecret I found this very useful as I use it daily, and I can pipe it into any other cli messaging app (eg into slackcat)