• Jekyll Post Generator

    Today I remembered this blog, and what a pain it can be to write. Then I found this nice Gist, which houses a couple of Bash scripts to auto-generate the skeletal files required to make a Jekyll post - and life got a little better. I plan to improve on them a bit, they’re a bit jank - but it’s a great place to start.

    Check it out here if that’s your thing: https://gist.github.com/aamnah/f89fca7906f66f6f6a12.

    I have updated it a little, adding a couple of options that automatically create a nicer page in Jekyll (permalink), and added time to the date, so creating multiple posts in a day shows up in order.

    # Create a new jekyll post with the current date and the given title
    # and print the path to the post file.
    #
    # author: andreasl
    
    post_title="$*"
    [ -z "$post_title" ] && printf 'Error: Script needs a post title.\n' && exit 1
    
    #repo_dir="$(git rev-parse --show-toplevel)"
    repo_dir="/home/james/blog"
    post_date="$(date '+%Y-%m-%d')"
    post_datetime="$(date '+%Y-%m-%dT%H:%M:%S%:z')"
    title_slug="$(printf -- "$post_title" | sed -E 's/[^a-zA-Z0-9]+/-/g' | tr "[:upper:]" "[:lower:]")"
    post_path="${repo_dir}/_posts/${post_date}-${title_slug}.md"
    [ -e "$post_path" ] && printf 'Error: Post exists already.\n' && exit 2
    
    IFS= read -r -d '' front_matter << EOF
    ---
    title: "${*}"
    date: ${post_datetime}
    tags: []
    layout: post
    permalink: /${title_slug}/
    ---
    EOF
    
    printf -- "${front_matter}" > "${post_path}"
    
    printf -- '%s\n' "${post_path}"
    
  • Whoops

    Well, about 11 months ago I wrote the last post on this blog. What a total pain. I moved continents with my family, I’ve had 3 jobs since that last post. It’s been weird.

    Things are settling back down now, I’m working for a US based startup doing internet things, which is neat. I’m going to try and knock out some useful posts at some point.

    Still using Jekyll, but honestly I blame it for making writing more difficult than it previously was under Wordpress. We’ll see. Also, Wordpress is garbage now!

    See you soon (or in nearly a year, who knows).

  • Moving to Jekyll

    Since I am moving abroad soon (in 8 days), I need to put my server in a shipping container, and send it on a long voyage. That means no self-hosted Wordpress for about 3 months. With this deadline, I was forced to either move to a VPS somewhere (and pay for it), or check out Jekyll/Hugo/Ghost/whatever - the blogging platforms the cool kids are using. This is what I used to do it. You are reading the results, assuming it’s not like 2025 and I’ve moved to something else.

  • Changing MTU in EVE-NG (allowing Jumbo frames!)

    EVE-NG rules. As far as network simulation software goes, it’s the best.

    When studying or otherwise, EVE-NG is the way I prefer to try things out. One thing that happens, however, when using virtualised networks, is you obscure some underlaying things - one of them being MTU. In a previous post, I went through how the base OS that EVE-NG runs on virtualises the links between routers and switches, here I will show a way to boost the MTU these virtual network links use, so that we can throw proper jumbos across the network.

    In this topology, I have 2 routers, connected with dual Ethernet links, configured in a LAG. This doesn’t affect MTU at all, I just thought I’d mention it so it’s not confusing.

    Topology of this little lab

    The link between these routers (ae0) is set to a layer-2 MTU of 9192, which is the maximum for the platform (Juniper vSRX 3.0). This means that we should be able to send an IP packet (like a ping) of over 9000 bytes.. And yet - we can’t:

  • Step by step method for updating BIOS on an 11th gen Dell Server (R510, R610, R710 etc)

    Dell has removed the ability of 11th Gen servers to download BIOS updates from ftp.dell.com - damn. This is a problem if you care about security, but then I guess if you cared that much you’d be using a newer (read: supported) server. Unlike me, the cheapskate.

    So - using Dell’s Lifecycle Controller (press F10 when rebooting) - we can mount an ISO image from Dell with all the nice updates bundled in. This is very handy.