opensmtpd is a tricky service to create fail2ban rules for. For starters, the IP address to match is logged to a different line to the authentication state.
Author Archives: Ben Cordero
g_serial
Serial on a Raspberry Pi Zero (or any one with an OTG USB port) can be used without
adding the GPIO headers by sending the console down the USB cable itself.
This will present as ttyGS0 on the pi, and ttyACM0 on the host.
Audioless
Here’s an ffmpeg command to strip audio and downscale video for social media posts that don’t need full fidelity.
Using less cargo space
You can reuse the same directory for compiling rust intermediate files and use less overall disk space by setting target-dir to a single location, shared between projects.
systemd.resource-control
Ever tired of processes OOMing each other?
systemd has a super easy way to limit the memory any service (by cgroup) can consume.
Result<>
enum Result<T, E> {
Ok(T),
Err(E),
}
T is the useful bit, the thing you want.
But what is E?
let blocks
It’s kinda obvious now that I’ve typed it, but the builder pattern in rust can work, even if you don’t expect it to.
let already_initialised = { do_stuff_here() };
resolution
Statically set a very specific resolution for X11.
Continue reading
unwayland
Run programs on wayland that are still visible to capture programs (such as OBS).
Livestreams locally
One of the more popular formats for web livestreaming (unidirectional/broadcast video) is HLS. This is the streaming format used by video services such as Twitch, Facebook Live and Twitter’s Periscope.