Less can filter what it shows to you (a thing I recently learned)

Recently in the Fediverse, I learned that the less pager can filterthe output it shows to you. I'll quote Matthias Schmidt's message :

Wow, after 25 years of Unix experience, I learned that you can filteroutput in #less.

Press ampersand (&) and enter a regex to show only lines matching theregex.

Press ampersand (&) and then exclamation mark (!) to apply an inversefilter.

According to the (or a) less manpage , you can useCtrl


Some thoughts on having set up a personal Alertmanager instance

I've been running a personal Prometheus instance on my desktop machinesfor long enough that I don't remember exactly how long (probably sinceDecember of 2018). Recently, I extended that by setting up a personalAlertmanager on my work desktop . The direct triggerof this was concerns about the kernel turning off the GPU fan and melting down the GPU if I didn'tcatch it in time, but once I'd set up Alertmanager and written theinitial alert rule, I came up


Being able to see links I've visited in Firefox is startlingly better

I recently wrote about how I wanted to make links that I'd alreadyvisited be clearly visible in Firefox . Atthe time I was hoping for a general style that I could temporarilyenable on anywhere and have work regardless of the site's choiceof colours, link decorations, and other details. In writing theentry I discovered that Firefox supported the special colour name of' VisitedText ' for your standard visited link colour. While Iconsidered general solutions, this led me to start writing somevery quick site-


Working around an AMDGPU automatic fan control problem on my Radeon RX 550

Back at the end of March, I discovered that the fans on my RadeonRX 550 weren't running under Fedora 33's 5.11.7 kernel ,and also that Linux's hwmon system was willing to claim that it was (at 2100 RPM). At the timeI tracked this down to something to do with pulse width modulation(pwm) fancontrol, where the kernel was deciding that the card's PWM dutycycle should be '0'


Rust is a wave of the future

Recently I tweeted :

Once again I am being tempted to try out Rust, despite a relativelyhigh confidence that I'm going to not like it. It's the wave of thefuture, though. Sooner or later I'm going to have to read and hack onRust code.

More than five years ago, I wrote an entry on my feelings on usingon Rust myself which I have since summarized to peopleas 'Rust cares about things that I don't any more'. I understand


Why we don't have management connections to our switches (an old story)

One of the unusual things about our physical network implementation is that while we have managed switches, wedon't have management connections to them, at least over the network(we do often have serial console connections to them). Since we don'thave a network management connection, we can't use SNMP to pull datafrom our switches, which is somewhat inconvenient now that we have aPrometheus and Grafana setup ; it would benice to know things like per-port bandwidth and so on. While


Our three generations of network implementations (over the time I've been here)

Over the time I've been here , we'vehad pretty much the same network structure butwe've gone through three different major physical implementations ofit. Between the three of them, we've pretty much covered the fullspectrum of sensible ways to implement a multi-network environment.

When I arrived, we were at the tail end of the first implementation.This was built around a small number of big chassis switches fromFoundry, the kind that take various sorts of 'blades', also


I don't know how much memory our Prometheus setup needs

In a comment on my entry on the size of our Prometheus setup , Jr asked a quite relevant question:

Hi Chris. How much memory is this setup consuming?

That's a good question but I don't have any good answers, eventhough I have lots of metrics. Probably the best indication of howmuch memory any given Prometheus related daemon needs is the process_resident_memory_bytes metric that's automaticallyexported from any Go program that uses the standard Prometheusclient library.

By that measure


The temptation to start using some Python type hints

I've been hearing about Python 3's optional type hints for sometime now (which is not surprising, since they were introduced inPython 3.5, released in 2015, although then improved in severalsubsequent releases), but for a long time I didn't really pay muchattention. However, lately I've been feeling a temptation to trythem out in some of my programs, assuming that I can find a suitableone.

One significant driver of this new temptation has


Fedora has significantly fumbled DKMS handling for Linux kernel modules

Recently I blamed DKMS for building one of my kernel modules forthe wrong kernel . It turns out that thisis not quite what happened, and in fact what happened is Fedora'sfault. I found this out when I did yet another unsuccessful kernelupgrade attempt on my work machine, had the module problem happen again, and paidclose attention to what was actually in my module directory (partlybecause this time around I was sure I'd checked for the problembefore I'd rebooted).

As part