I updated misc/py-tmuxp to 1.82.0, and the package now installs
shell completions for bash, fish and zsh. Getting there took a new
package, an update to misc/py-libtmux, and a longer detour through
the test suites than I had planned, although I guess I could have just
skipped the tests. (more…)
27.11.26
Shell completions for tmuxp (and tests)
19.11.26
Checking exposure to the November 2026 PHP security releases
PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 were released today as security releases. The pre-announcement said that the issues rated CRITICAL “require either non-default configuration or uncommon setups.” The ChangeLog only lists advisory titles, so I went through all 17 advisories with Claude to see what those configurations are, and whether my servers have them. (more…)
9.8.26
Caching overhaul for man.netbsd.org
The manual pages on man.netbsd.org are rendered by man-cgi, a
~1400-line POSIX shell script forked per request by fcgiwrap behind an
nginx FastCGI cache and Fastly. This weekend I overhauled how the
service caches. (more…)
21.7.26
Upgrading a Go package in pkgsrc
Upstream released sesh 2.27.0 while misc/sesh was still at 2.26.1. I added the package earlier this year, but this was the first time I upgraded a package written in Go, so I made some notes about the Go-specific steps. The general pkgsrc update procedure applies as usual; the new part is go-modules.mk, the file listing all the Go module distfiles fetched from the module proxy. (more…)
3.7.26
A Redis object cache for WordPress
WordPress Site Health had been nagging me to use a persistent object cache. I already run Zend OpCache, so I wondered what else I needed.
OpCache is an opcode cache: it stores the compiled bytecode of the PHP source so the engine need not recompile it on every request. The object cache is a different layer, holding the results of database queries and transients. WordPress ships with a non-persistent object cache that lives only for the duration of a single request; making it persistent means backing it with something that survives across requests, such as Redis.
On this site I manage the WordPress tree with svn and do not let PHP write into it, which changes a couple of the steps from the usual click-in-the-dashboard instructions. While I also generally prefer nginx and PHP-FPM, this site is still on Apache with mod_php. However, the installation is basically the same regardless of the web server software, but troubleshooting differs between them. I’m covering both here. (more…)
18.4.22
Refreshing old Terraform state
If you find yourself with an old Terraform state file (say from v0.11) and you need to run terraform plan to check things out, you’ll need to make some adjustments:
- Add a
terraformblock withrequired_providersto provide thesourcefor the provider. - Remove the
versionstatement from theproviderblock. (You will want to move it to the provider in therequired_providersblock.) - Adjust any other syntax changes that result in errors (
terraform plan):list()→tolist([])type = "string"→type = string- Possibly many others…
- Replace the provider in the existing ancient state file.
- Refresh the providers (
terraform init). - Plan away! (more…)
11.11.21
Released tcsh 6.23
I am pleased to announce that tcsh-6.23 is now available; this is mainly a bug fix release (after 2 years) with a couple of new features:
- Add
jobs -Ztosetproctitle(3) - Add
ln=targetinLS_COLORS - Add a
:Qmodifier that preserves empty arguments
Please consult the Fixes file for a complete list of changes. (more…)