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 Articleintel 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 Articlebtrfs & 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 ArticleExcessive 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 ArticleDon’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 ArticleResizing 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 Articleasus 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 Articlebash – 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 ArticleBeelink 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 ArticleTumbleweed…
Does anyone else care about having a blog any longer? The post Tumbleweed… first appeared on David Goodwin.
View ArticleUpgrade 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 ArticleMinimal 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 Articlessh 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
More Pages to Explore .....