RSSAmplifier

Blog

Narf

The blagosphere got me...

blog.narf.ssji.netRSS feed ↗10 posts

Latest posts

Adding 433MHz RC-switched solar lights to Home Assistant with ESPHome

I built an ESPHome controller for remote-controlled solar festoon lights using as ESP32-POE and an FS1000A 433MHz tranceiver. tl;dr: * The Generic-Remote model with House Codes and Tri-State translates to an rc_switch_raw protocol. * The ESPHome/Home Assistant component can be incrementally assembled from basic button actions. * Don't forget the antenna (17.3cm) Continue reading The post Adding…

Mikrotik RouterOS backups: /export is good, but not enough

For... reasons... I had to restore my Mikrotik router from a backup yesterday. TIL: * /import verbose=progress can use the from-line=x option to continue restoring after a failing line * /export doesn't export things such as keys and certificates * /system/backup/save is a more complete approach to system backup Continue reading The post Mikrotik RouterOS backups: /export is good, but not enough…

Optional Docker services and dependencies

Docker compose supports the use of profiles to start services conditionally or on-demand. This is useful to mark some services as optional. The use of `required: false` `depends_on` relationships allows to retain the startup ordering if needed. Continue reading The post Optional Docker services and dependencies first appeared on Narf .

Clearing Caches

There is always a time when storage becomes a bit tight. Deleting caches is a good way to regain some, helped by the CACHEDIR.TAG standard and some shell-fu: ``` $ sudo locate CACHEDIR.TAG xargs dirname sudo xargs -I CCDD find CCDD -mindepth 1 -not -name CACHEDIR.TAG -delete ``` Continue reading The post Clearing Caches first appeared on Narf .

Git: ignoring temporary changes

How to tell git that a change SHOULD NOT be considered? tl;dr: git update-index --assume-unchanged Continue reading The post Git: ignoring temporary changes first appeared on Narf .

Fixing MariaDB socket authentication on Debian

For a while, my system users have not been able to connect to a local MariaDB using the Unix socket. I finally sat down and traced a fix down. tl;dr: `alter user 'root'@'localhost' identified via unix_socket;` Continue reading The post Fixing MariaDB socket authentication on Debian first appeared on Narf .

Fixing WordPress critical errors without email

This blog runs on Wordpress. And the other day, it had a critical error. tl;dr: * Activating WP_DEBUG mode allowed me to get PHP stacktraces in the HTML. * It was due to a plugin compatibility issue; moving its directory out of the way to disable it fixed the issue. Continue reading The post Fixing WordPress critical errors without email first appeared on Narf .

Pausing a background process

It s common, in a Unix shell, to pause a foreground process with Ctrl+Z. However, today I needed to pause a _background_ process. tl;dr: SIGTSTP and SIGCONT The context was a queue processor spinning too fast, and preventing us from dequeuing unwanted messages. Unsurprisingly, there are standard POSIX signals to pause and resume a target PID. Continue reading The post Pausing a background process…

Replacing the battery of an Eaton 5e UPS

My Eaton 5Ee850iUSB-AU UPS needed its battery replaced. I considered replacing the Pb battery with a LiFePO4. It isn't worth it, but it was an interesting exercise in working out why. Continue reading The post Replacing the battery of an Eaton 5e UPS first appeared on Narf .

Installing Collabora Online in Nextcloud

I recently have been looking at options to replace GSuite with my existing Nextcloud instance and Collabora Online. It was really easy, and it's surprisingly snappy even running from an 12+ years-old server and a 14+ years-old laptop! tl;dr: * Use the default docker image in the compose stack. * Copy the nginx config in the reverse-proxy. Continue reading The post Installing Collabora Online in…