• Easily run python functions from the command line

    17 Nov 2015

    Let’s say you have a python file and you want to run some functions from it in the command line. You have a folder called:
    Read full post...

  • Pull requests without the messy commit history

    17 Oct 2015

    So you’re using some kind of configuration management system and you use a pull based deploy method where nodes pull configuration and set themselves up. Whenever you make changes to these configuration files you’re probably committing those changes and pushing them to the place where you keep these files so that you can test if your changes don’t break the machines. You’re probably doing this in a feature branch and eventually stuff will break, stuff will un-break and every time you’re committing and polluting this feature branch. When you’re done and want to merge things into master you’re going to have a pull request with a bunch of commits that are just experiments along the way. Now there’s a couple of reasons why having too many useless commits in a pull request aren’t ideal but the best one is that reviewers and yourself will have a much harder time understanding changes because the really useful commits might be hidden among the bug fixes and experiments. Let’s see how to prevent it.
    Read full post...

  • The twelve networking rules

    15 Jan 2015

    A Request for Comments (RFC) is a publication of the Internet Engineering Task Force (IETF) and the Internet Society, the principal technical development and standards-setting bodies for the Internet. An RFC is authored by engineers and computer scientists in the form of a memorandum describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems. It is submitted either for peer review or simply to convey new concepts, information, or (occasionally) engineering humor. The IETF adopts some of the proposals published as RFCs as Internet standards.

    Read full post...

  • Install Raspbian and configure Wi-fi without a monitor or keyboard

    08 Feb 2013

    I’ve just bought a Raspberry Pi and not having access to an extra monitor, keyboard or mouse I had to make do with just a router and an ethernet cable. I realize you could already piece most of this together from other places on the internet, but I wanted to document the way I did it. Having called a vote the motion passed with one in favor and none against so online it goes.
    Read full post...

  • Extracting archives the easy way

    05 Jan 2013

    I’ve recently updated to Ubuntu 12.04 LTS and decided that I liked the way OS X extracts things. In case you’re not familiar with the way it works, instead of showing you what’s inside an archive when you try to open it, a folder is created in the same directory and the archive’s contents are extracted to said folder. Ubuntu has the same functionality when you ‘Right Click -> Extract Here’. I wanted to get rid of having to right click every time and going over the context menu so here’s what I’ve done.
    Read full post...