Author: Josh Sherman
-
How to fix tlp and power-profiles-daemon are in conflict on Arch Linux
I’ve been attempting to move to a more regimented weekly to every other week update of my Arch Linux systems. In doing so, I’ve stopped blocking Kernel updates and rebooting a bit more frequently. Of course, due to the nature of Arch Linux, less frequent updates means more packages to…
-
Reattaching to a still attached GNU Screen session
While tmux is my daily driver for local terminal multiplexing, I still use GNU screen when I’m working on remote servers. The primary reason for this is to avoid nesting tmux sessions. I can use tmux locally, ssh to a remote server, start up a screen session and I’m off…
-
How to get a time-based one-time password secret from a QR code
More and more services are adopting a “can’t scan the QR code” option that reveals the secret token. Some even go as far as offering up the secret token along side of the QR code. Others present you with the QR code and nothing more. Fortunately, those services seem to…
-
Splitting strings and keeping the separator in JavaScript
When splitting strings, the majority of the time, I don’t care about the separator (or delimiter), just the strings that exist between it. In JavaScript, that’s very simply with .split(): ‘one,two,three,four,five’.split(‘,’); Which will yield an array of strings like this: [‘one’, ‘two’, ‘three’, ‘four’, ‘five’] Great! But if we want…
-
VPS Showdown – January 2022 – DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr
So 2021 was interesting. Not going to bore you with the details of my life, but I am ready to bore you with the details of the world of virtual private servers! I forgot to do my “Christmas wish list” last month as I have in the past, but it’s…
-
How to reset Brother HL-L3210CW Toner Cartridges
It took nearly two years, but we finally “ran out” of black toner for our all-time favorite printer, the Brother HL-L3210CW Laser Printer. More on why “ran out” is quoted in a moment 😉 Personally, I hate owning a printer. I only print stuff out at most twice a year,…
-
Downloading files in Node.js with Axios
I’ved used Axios a ton, but I’ve only ever used it to make AJAX requests. In fact, I don’t ever remember a time when I’ve needed to download a file and save it to disk in Node.js. That changed recently with a new side gig I’ve been helping out with….
-
How to hide Nginx server headers on Ubuntu
Nginx is a fantastic web server choice, but it tends to be a bit too mouthy by default for my taste. By mouthy, I mean that out of the box, Nginx gives up a bit too much information about itself, the operating system it’s running on, and if you’re running…
-
VPS Showdown – December 2021 – DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr
Here we are, with the final VPS Showdown of 2021. We’ve seen a few changes over the course of the year in terms of product offerings. One of the most notable was the adoption of AMD EPYC processors either a standard or premium offering depending on the provider. Next year…
-
Associative arrays in Bash
Arrays, both indexed and associative are a powerful and versatile data type, regardless of the language you’re utilizing them in. At one point in Bash’s history, pre-version 4.0, Bash only had indexed arrays. These indexed arrays were defined as such: # Initialize an array with values arr=(“first” “second” “third”) #…