Configuring USB device pass through to Docker on QNAP NASes

  • Post author:
  • Post category:QNAP

So, this was a lot harder than it really should have been, especially because rtl_433 is a bit thingie about where the device appears in the /dev/ file system as an added sting in the tail…

In my specific scenario, I was given a Vevor 7-in-1 wireless weather station for Christmas. They seem fairly solid and full featured for a $130 AUD device, so no complaints there. The device is also natively supported by rtl_433 which is a RTL SDR package, although its not supported in the version shipped by Debian 12. That’s awesome, although it would have been nice if the command line to use was documented better. I’ll talk more about those bits in a later post though. In this one I want to focus on the fun I had getting a USB device reliably passed through to a Docker container on my QNAP NAS.

(more…)

Continue ReadingConfiguring USB device pass through to Docker on QNAP NASes

Remapping Keychron K15 (QMK) media keys to control Sonos

  • Post author:
  • Post category:MacOS

Disclaimer: despite what people seem to assume when you buy a mechanical keyboard, I am not a keyboard fetishist. I’ve been using Microsoft Sculpts for over a decade because of historical repetition injury issues, and with Microsoft discontinuing the Sculpt and the new manufacturer taking their time taking over, all I want is a keyboard which is like a Sculpt, except where I haven’t worn out the space bar. I will then go back to thinking approximately never about keyboards.

So, the keyboard I could find which was closest to the Sculpt after a lot of Googling was a Keychron K15 Max, which is a QMK keyboard. For those which don’t know, which included me until yesterday, QMK is the open source firmware that many of these mechanical keyboards run and yes you really can customize the firmware on your keyboard now. The K15 is a 75% “Alice” layout, which means split with no numpad. It does have media, function, and macro keys which is nice. I’ve never had a keyboard with macro keys before. It also has low profile switches, which is nice because the Sculpt basically has laptop style switches, and I chose the Gateron Brown low profile switches because I didn’t think I wanted the tactile “clicky” thing. Then again, I have now tried exactly one mechanical keyboard, so its entirely possible the K15 isn’t “perfect” for me — its simply good enough to make me stop thinking about such things.

(more…)

Continue ReadingRemapping Keychron K15 (QMK) media keys to control Sonos

An Anki deck for Cisco Cyberops Associate CBROPS 200-201

  • Post author:
  • Post category:Cisco

I’ve recently been going through the Cisco Cyberops NetAcademy course as part of a TAFE unit I am doing at the moment. While working through the e-learning I took a bunch of notes, and then over the weekend I turned them into an Anki deck to help me prepare for the final exam. I’m actually unsure if I’ll bother with the certification exam, but this seemed like a more useful and reusable way to prepare than just reading and writing private notes.

(more…)

Continue ReadingAn Anki deck for Cisco Cyberops Associate CBROPS 200-201

An easier to parse version of “yum history”

I got interested today in trying to come up with a solid way of determining when updates were last applied to a RHEL-derived Linux instance. Previously we’d been inferring it from the kernel version, but it turns out there is a convenient “yum history”  or “dnf history” command which will show you all the previous transactions that the package database has seen. However, the output is hard to parse in a script.

(more…)

Continue ReadingAn easier to parse version of “yum history”

Amazon Linux 2023, DNS, and systemd-resolved — a story of no caching

I’ve learned a few things on an adventure this week, and I figure I should probably write them down.

First off, AWS throttles the number of DNS queries you can perform on a VPC. Apparently you’re limited to 1,024 packets for Elastic Network Interface (ENI). I am a little unclear on if the limit is per instance ENI, or the ENI on the VPC that is the DNS server. I am also unsure if that’s 1,024 request packets, or 1,024 total packets, but either way there is definitely a limit after which you will be throttled.

Secondly, AL2023 disables the systemd-resolved DNS caching behaviour, which means its pretty easy to hit that throttling limit. When you google for solutions you’ll find re:Post posts recommending dnsmasq, which is a perfectly fine piece of software but not really necessary if you already have systemd-resolved installed on your instance (as you do with AL2023). (more…)

Continue ReadingAmazon Linux 2023, DNS, and systemd-resolved — a story of no caching

Leaders Eat Last

  • Post author:
  • Post category:Book

This is the first Simon Sinek book I’ve read. His stuff has been on my mental to do list for a long time, but never seemed to get to the top until now. This is about a book about how employee happiness and trust in their management directly results in better outcomes for employers, and how the best way to create happy employees is via mutual trust and empathy. In fact the book goes further and outright states that staying in a job that makes you unhappy, even if it also makes you feel safe, is bad for your health and eventually your life expectancy. I haven’t seen this stayed quite this clearly before and the book wastes no time in making this point.

Leaders Eat Last also has a section on the various chemicals in our brains and how they guide our behaviour. I felt specifically called out by this quote on the addictive nature of social media and how it interacts with our dopamine levels:

…if you wake up in the morning and the first thing you crave is a drink, you might be an alcoholic. If you wake up in the morning and the first thing you do is check your phone to read email or scan your social media before you’re even out of bed, you might be an addict.

How very aligned with Digital Minimalism. Now in my defense, the first thing I check in the morning is the state of outstanding GitHub pull requests so I guess I’m not a social media addict?

(more…)

Leaders Eat Last Book Cover Leaders Eat Last
Simon Sinek
Biography & Autobiography
Penguin Books
2017
350

Leaders eat last : why some teams pull together and others don't is the much anticipated sequel to the global best seller, start with why by Simon Sinek. This book talks about how great leaders sacrifice their own comfort for the good of those in their care. With the help of numerous intriguing examples, the author attempts to prove that the best organisations foster trust and cooperation. As the author points out, this book is not a management theory, but it actually a biological one. Individuals thrive only when they feel safe among a group.

Continue ReadingLeaders Eat Last

Children Of Ruin

  • Post author:
  • Post category:Book

This book did not go where I expected it to. Sure, it has a species uplift plot which is similar to Children of Time, but that's not all that's happening here. If the previous book was about refugees and redemption, this book is about alternative ways of structuring societies (I don't want to ruin the surprise by being too specific). Let's just say some of these societies are small and some are big, but they both cooperate to achieve their goals better than perhaps our society does. There's definitely a pattern forming about how books in this series resolve their conflicts. I'm not normally into horror as a genre, and there are definitely horror elements to this story. I probably wouldn't have bought this book if I'd known how it was going to be different from the previous one. That said, the horror element decreases after a mid-book peak and overall I enjoyed the story although not as much as that of the first book in the series.

Continue ReadingChildren Of Ruin

Solving the bottom turtle (the SPIFFE / SPIRE ebook)

  • Post author:
  • Post category:Book

I'm reading about SPIFFE / SPIRE at the moment in the form of the official project ebook. I'm going to list it here because if I read 194 pages I am going to write it up, regardless of if the book has been formally published or not. This book is probably the best introduction to SPIFFE / SPIRE I've seen. There are a lot of videos covering the basics in a relatively superficial way, and many blog posts along the same lines too, but I felt this was the best way I've found to really "get" what SPIFFE is trying to do. However, I did think it was a bit weird for this ebook to admonish me to ensure I have good runbooks for my environment in case something goes wrong, but of course the SPIFFE / SPIRE projects do not provide reasonable default runbooks as a starting point. Is asking software projects to include operational runbooks in their documentation unreasonable? I get that they'd have to be customized depending on deployment choices, but why is it that we expect end-users to produce runbooks from scratch instead of giving them a starting point to work from?

Continue ReadingSolving the bottom turtle (the SPIFFE / SPIRE ebook)

Lights Out

  • Post author:
  • Post category:Book

This book continues the story of General Electric in the period after that covered by The Man Who Broke Capitalism, thus presenting an opportunity to validate if Jack Welch really was the bad guy while also learning more about where Welchism took General Electric in the longer term. This book is very readable, with nice short chapters -- for example it introduces Welch as a character, but does not dwell on his time at General Electric more than is necessary. Immelt's time as CEO got off to a rocky start, with the 911 attacks occurring on just his second day in the job. GE was financially exposed to these events, both as an insurer of some of the destroyed buildings, but also as a major manufacturer of aerospace equipment whose grounding reduced demand. My second day as chairman, a plane I lease, flying with engines I built, crashed into a building I insure, and it was covered with a network I own" Then of course came Enron. While the book asserts that GE's behaviour lacked Enron's criminality, GE was certainly creative and opaque with its accounting and would have to clean up its act under the new stricter post-Enron accounting…

Continue ReadingLights Out

The Stranger in the Woods

  • Post author:
  • Post category:Book

At 20, Chris Knight set off into the woods to avoid society. He didn't come out apart from to commit petty theft for supplies for 27 years, when he was finally caught after about 1,000 burglaries. Catherine and I are a bit divided on this story -- I think Chris clearly had something wrong in terms of mental health, whereas Catherine thinks he crossed a line when he committed theft to survive. Either way, I don't think you could claim that Chris was living in luxury in isolation, especially when research has shown that extended isolation is generally very bad for mental health. I came across this book because Digital Minimalism recommended it as a good exploration of solitude, but most of the book really isn't about that. Mostly the book is a description of Knight and his life for those 27 years. That said, it's still an interesting read. I'd avoid the book if talk of suicide is a trigger for you, although Knight does not appear to have carried through on his threat.

Continue ReadingThe Stranger in the Woods

End of content

No more pages to load