Skip to main content

Posts

2017


Raspberry Pi as a git server

·4 mins

This is taken verbatim from Alex Tavendale’s instructions. This worked first time for me, and the only additional steps I had to perform were to get gogs configured to have non localhost DNS name for the rest of my network, otherwise the gogs installation was only accessible directly from the pi.

I’ve copied the original steps here here, so I don’t lose the steps.

I’d like to swap out supervisor for perp, but I’ll leave that for another time.

More Hugo

·1 min

It’s taken a while, but I’ve managed to get the blog migrated over to Hugo, from Jekyll, since Hugo has a nice single exe, and isn’t Ruby.

In order to get taxonomies rendering in the general case under Hugo 0.19, add layouts/_default/terms.html:

2016


Hugo

·1 min

Another year, another blog engine. I’ve dropped Jekyll in favour of Hugo.

Jekyll required Ruby, and gem management which isn’t particularly difficult, but was becoming annoying when I have to manage it across 4 different machines. Hugo just works.

HTTPS

·1 min

Now that Let’s Encrypt is live, the site is now accessible over https. The only thing of note is that you need to reference site local assets using:

<a href='/some/protocol/free/path'>some internal link</a>

Otherwise the site isn’t entirely secured by https.

2014


Powershell hr

·1 min

I saw this on reddit (or possibly hackernews) the other day that produces a simple banner line in bash.

So here’s a powershell version:

2013


Python virtual envs

·2 mins

A simple function to bootstrap Python virtualenvs in Powershell. Add it to your profile and then call it as:

create_virtualenv c:\temp\myvirtualenv

Script is here:

A Basic Rakefile

·5 mins

I don’t like spending too much time setting up a new automated build, and rakefiles are an effective way to capture a lot of the boring repetition. Also, in the spirit of “don’t repeat yourself”, I have a rakefile that that I have been gradually building over the past few months. For my purposes, it now just requires a single edit to use in a new project.

Jekyll on Windows

·1 min

Getting Jekyll working on Windows was relatively straight forward:

  • Install ruby
  • Install the devkit
  • gem install jekyll

Then, downgrade pygments as 0.5.1 doesn’t work properly.

And that’s it.