test -f /run/icinga2/icinga2.pid && test -d /proc/$(< /run/icinga2/icinga2.pid)
Control your Sonos speaker with a Griffin Powermate
Purge DNS cache on Cloudflare nameservers (1.1.1.1)
https://one.one.one.one/purge-cache/
And the same for Google (8.8.8.8): https://developers.google.com/speed/public-dns/cache
endoflife.date
https://endoflife.date/ – check EOL for software
Get the SAN entries for a cert with openssl
openssl s_client -connect facebook.com:443 < /dev/null 2>/dev/null \
| openssl x509 -noout -text | grep -i dns
# cleaner output
openssl s_client -connect facebook.com:443 < /dev/null 2>/dev/null \
| openssl x509 -noout -text 2>/dev/null \
| perl -ne 'm/DNS/ && s/(, *|^ *DNS:)//g && print(join("\n",split /DNS:/))'
Set up a home Wireguard server quickly
Try wg-cmd – it’s great.
Find the name of a network interface matching a pattern
IF=$(basename $(find /sys/class/net -name 'wlp0s*'))
pfsense with Community Fibre Internet
Use my referral link for £100 Amazon voucher when you join Community Fibre!
I recently got set up with Community Fibre Internet. The latency and bandwith are fantastic, however the Linksys Velop routers are bare bones, so I decided to just use it as a wireless bridge and replace the routing / firewall aspect with a custom Pfsense device.
I bought an n5100 fanless mini-pc from AliExpress. You can get bare bones and buy the drive & memory yourself.
I then installed Proxmox. I recommend you enable the non-free repository and install the intel-microcode package (otherwise VMs will crash) – this may no longer be required for Proxmox 8.
(I already have a Pi-Hole handling DNS & DHCP – you can do this in docker inside another VM on the n5100 if you like).
On proxmox one interface was designated LAN * – connected to my internal network & one WAN – initially unconnected and bridges (vmbr0 & vmbr1) were created for both of these.
I then installed pfSense from ISO image, configuring the 2 interfaces as above.
Finally I moved the WAN cable from the Velop to the n5100 WAN port. Shortly after DHCP got an external address (different from the original, based on MAC?) and I was connected.
Finally, I changed my default gateway on my static devices to the LAN address of the pfSense VM and also changed it in the piHole DHCP settings & reconnected devices.
Post install I disabled intel turbo boost to keep the CPU temperature down. Update: I re-enabled turbo boost and instead bought a USB fan from AliExpress to sit on top of the case.
* Actually I used a bonded pair, but you require special switch support for this.
dnssec-keygen & nsupdate failing?
Generate your key with tsig-keygen & follow the instructions.
Get emacs to automatically active a virtualenv for a directory & below
create a .dir-locals.el file:
((nil . ((pyvenv-workon . "rsync"))))
ensure that env var WORKON_HOME is set, either in shell or earlier in emacs config as below:
(setenv "WORKON_HOME" "~/.venvs")