Sending a stream to multiple outputs

I was looking for a way to compare compression ratios with different algorithms, and didn’t want to have to run them in serial. So I started digging and found a nice bash syntax that allows you to do just that. And just for fun, it calculates the sha checksum as well. curl -s | … Read more

Setting Up A New Raspberry Pi

Steps I do when I am setting up a new Raspberry Pi. If using the official LCD screen, for some unknown reason, it still defaults to an upside-down orientation when hooked up. This is simple to fix. Edit /boot/config.txt and add the following line: lcd_display=2 The 2 rotates it 180ยบ (the most likely choice for … Read more

Site-to-Site VPN Firewall Rules

When adjusting settings for a site-to-site VPN, don’t forget to update the firewall rules. Make sure the appropriate subnets for your networks are covered. In /etc/ufw/before.rules: # OpenVPN Rules *nat :POSTROUTING ACCEPT [0:0] # Allow traffic from OpenVPN client to ens32 -A POSTROUTING -s -o ens32 -j MASQUERADE -A POSTROUTING -s -o ens32 … Read more