Quantcast
Channel: David Goodwin
Browsing all 22 articles
Browse latest View live

PHP psalm annotations

This is more of a note for myself, as I keep forgetting the syntax. See also https://github.com/vimeo/psalm and List of Arrays Given an 2d array like : [ [ 'name' => 'Pickle', 'age' => 4 ], [...

View Article


intel nuc d54250wyk (haswell) ~10 years later

This little NUC I bought ages ago is still chugging along, in continual use (albeit only as a backup ‘server’ with a large 4TiB ssd in it). It’s recently had ‘open heart’ surgery to replace a failing...

View Article


btrfs & ext4 – error handling when the hardware fails …

I have a mini PC (old intel NUC) I use for taking backups of my desktop. It has a single 4TiB ssd in it. Filesystem Type Size Used Avail Use% Mounted on/dev/sda3 ext4 916G 80G 790G 10% //dev/sda4 btrfs...

View Article

Excessive uptime(!?)

Somewhere on the internet there’s a mailserver with a larger uptime, I guess? [root@xxxxxxxx ~]# uname -a Linux xxxxxxxxxxxxxxx 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 x86_64 x86_64...

View Article

Don’t forget to defragment /home if you’re using BTRFS

As root: (as a regular user it just won’t work) – btrfs filesystem defragment /home -r You probably want to run that weekly. I eventually noticed Thunderbird and phpStorm were being really slow and...

View Article


Resizing a VM’s disk within Azure

Random notes on resizing a disk attached to an Azure VM …Check what you have already – az disk list --resource-group MyResourceGroup --query '[*].{Name:name,Gb:diskSizeGb,Tier:accountType}' --output...

View Article

asus pn50 and cpufreq/boost

I’ve been using an ASUS PN50 (that’s a mini pc, with an AMD Ryzen 4800u processor – so sort of a laptop without a screen) as my desktop for ages.Increasingly I’ve found it sluggish and I was...

View Article

bash – escaping variables for use within commands

Escaping quotes within variables is always painful in bash (somehow) – e.g. foo”bar and it’s not obvious that you’d need to write e.g. “foo”\””bar” (at least to me). Thankfully a bash built in magical...

View Article


Beelink SER6 Max

“New PC Time” I’ve had an ASUS PN50 (AMD 4800u processor) as my desktop/daily driver for sometime, and it’s nice and power efficient, but increasingly I found it being slow. I eventually discovered I...

View Article


Tumbleweed…

Does anyone else care about having a blog any longer? The post Tumbleweed… first appeared on David Goodwin.

View Article

Upgrade some things

Well, I sort of realised I had a web server or two that were still on Debian Buster, and it was time to move to Bullseye or Bookworm. As usual the Debian upgrade procedure was mostly pretty straight...

View Article

Minimal WordPress Fail2ban integration

I used to have a fail2ban filter etc setup to look for POST requests to wp-login.php; but the size of the Apache log files on one server made this infeasible (it took fail2ban too long to parse/process...

View Article

ssh signed git commits

git config –global gpg.format sshgit config –global user.signingkey ~/.ssh/id_ed25519.pubgit config –global commit.gpgsign true Hopefully that’ll result in my github commits being signed…. and when I...

View Article


LetsEncrypt + Azure Keyvault + Application gateway

A few years ago I setup an Azure Function App to retrieve a LetsEncrypt certificate for a few $work services. Annoyingly that silently stopped renewing stuff. Given I’ve no idea how to update it etc or...

View Article

classicpress

Well, I never really ‘got’ the block editor (Gutenberg – wordpress block editor) – probably due to a lack of use … so I’ve moved this site over to ClassicPress ( thank you LWN – ClassicPress article )

View Article


atuin – console shell history search

As a random, useful, console tool … try atuin for some magical shell history searching. I’m too lazy to try and record a semi-useful demo of it, but it’s replaced my ‘ctrl+r’ lookup thingy and has a...

View Article

Animal Licensing – Paws On the Doors

Last Monday saw the launch of Paws On the Doors – Animal Licensing – which aims to have animal licensing data for England – providing the public with a single place to lookup animal licensing...

View Article


New Computer Time? Perhaps not quite yet

Well, I almost went ahead and bought a Beelink SER8 – after my current desktop (Beelink SER6 Max) kept crashing at random intervals (normally between 3 and 6 days apart). Of course, since I threatened...

View Article

Initial foray into Terraform / OpenTofu

So over the last couple of weeks at work, I’ve been learning to use Terraform (well OpenTofu) to help us manage multiple deployments in Azure and AWS. The thought being that we can have a single ‘plan’...

View Article

It’s always DNS …. (unbound / domain signing stuff)

Yesterday, I spent most of my day wondering what was wrong with my unbound configuration…. as a TL;DR, if you’re creating a new TLD (e.g. foo.lan) you may need to disable DNSSEC checks on it within...

View Article
Browsing all 22 articles
Browse latest View live