Categories
Uncategorized

[Linux] Recovering a disconnected `apt dist-upgrade` session

Today I was updating my Proxmox install remotely via the built-in console, but forgot what I was doing and closed the tab mid-way. This resulted in me being unable to connect again as the packages were already being updated in the background and the upgrade has asked a question to replace a file and waiting […]

Categories
Uncategorized

[Linux] Running multiple commands on multiple servers in parallel

I have a cluster of Raspberry Pi’s at home running Docker Swarm. To keep up with things, they’re using the same configuration – users, Docker versions, etc. Sometimes some of the updates require running the same thing on all the nodes of the cluster – for example – creating a new Docker macvlan network. To […]

Categories
Uncategorized

Guessing a numeric zip file password only with command-line utilities

Today I received my monthly invoice from my internet provider and something struck me as weird. The invoice, contained in the mail was in a ZIP file with a password. Not to say how strange it was to receive an attachment as a ZIP file in these days and times (spam, malware, phishing, etc.), the […]

Categories
Uncategorized

Arduino/ESP32: Disabling the task watchdog

Recently I’ve been playing around with ESP32’s multicore functionality and task pinning to specific cores. I was using AutoConnect to support WiFi connection without storing credentials in the code and provide OTA updates via the web UI. This was for a project that was going to control some CPU 4-pin PWM fans that are in […]

Categories
Uncategorized

Snippets: Map Apple Keyboard Section sign key to back quote ( § to ` )

I’ve been using the Apple keyboards for a while, but when you live in Europe it’s not easy to source the US layout ones that I’m used to. On macOS there’s an “easy” way to remap the keyboard with just a terminal command: watch -n1 -x hidutil property -m ‘{“ProductID”:592, “VendorID”:1452}’ –set ‘{“UserKeyMapping”:[{“HIDKeyboardModifierMappingSrc”:0x700000035,”HIDKeyboardModifierMappingDst”:0x700000064}]}’ What this […]