Tag: howto

  • Parsing JSON fields in AWS Log Insights

    Parsing JSON fields in AWS Log Insights

    This just took me too long to figure out to not write down somewhere! Say you have a log of the form: My reading of the log insights docs made me think this ought to work: Because you’re wanting to parse the message field out of the JSON. But it won’t, because rather than interpreting…

  • Adding a (scientifically-useful?) workload to k3s

    Adding a (scientifically-useful?) workload to k3s

    I’ve got a k8s cluster in my cupboard, and the plan here is to work on some debugging and monitoring posts and tools, so I need a workload. The first workload will be folding@home, because it’s easy :) And in a break from helming, I’m going to apply the manifest here. We have a couple…

  • Fixing MacBook Wifi with a Raspberry Pi

    Fixing MacBook Wifi with a Raspberry Pi

    I have an M1 Macbook Pro and a thunderbolt dock, and I am suffering what seems to be a reasonably normal experience of often-poor net connections: https://apple.stackexchange.com/questions/441705/m1-macbook-pro-drops-wifi-periodically My dock (a CalDigit) doesn’t have its own WiFi chipset (quite reasonably – what am I going to plug into it that doesn’t have its own?) but it…

  • Grafana on k3s (with metallb and nginx)

    Grafana on k3s (with metallb and nginx)

    This is a follow-on from my earlier post, but hopefully k8s is consistent enough that you don’t need to know that. Sadly, this is less helmy :( Use the Prometheus-operator We’ll use the prometheus operator to install and configure prometheus. First, let’s get everything created. This will clone a git repo then create a bunch…

  • K3S with metallb and nginx-ingress

    K3S with metallb and nginx-ingress

    I followed Greg Jeanmart’s tutorial for this a few years back, but things have changed, as they always do in k8s! I’m also lazy and like to steer close to Helm installing stuff. This is all on a Debian machine who’s hostname is nuc Install K3s First, install k3s, without servicelb (we will use metallb)…

  • Learning MacOS

    Learning MacOS

    I’ve just taken a job where I get a Macbook, and here I’m going to keep track of some problems I hit and what their solutions are. Some have no solutions yet – I’m keen to hear them if you know them! This is not a flamey list of things that are awful about MacOS…

  • kubectl port-forward and the lost art of bash job control

    kubectl port-forward and the lost art of bash job control

    A really common part of debugging stuff in k8s is to create a port-forward and then open a new shell and do a thing. Which is fine and easy when you’re port-forwarding to the machine you’re actually sat at, but less so when you’re not.

  • Perl Language server in VS Code

    Perl Language server in VS Code

    Thanks to Grinnz via haxmeister: Do cpan PLS and then install this plugin:

  • Keeping a ride together – The Cornerman System

    The cornerman system (or ‘corner marker system’) works pretty well for larger groups, and those with some slow and some fast riders; it encourages overtaking. If there’s only three or four riders, or everyone rides at about the same pace, follow the leader is normally a better match. Most forums try to explain the cornerman…

  • Keeping a ride together – follow the leader

    Everyone loves the cornerman system, which is explained both in great depth and with much convolution on most motorbike forums. But I quite like playing follow the leader, and much as it’s probably how you ride anyway, sometimes people ask how a ride is going to work. Here’s what I call ‘follow the leader’ and…

  • DDR RAM identification and naming conventions

    All (modern) PC memory is SDRAM (Synchronous Dynamic RAM). DRAM, the predecessor, responded to requests as soon as it could after the control voltages changed, SDRAM replies according to a clock cycle (which synchronises it with the system bus). Pretty much all modern PC memory is also DDR, Double Data Rate. With Single Data Rate…