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.
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.
Here’s an ffmpeg command to strip audio and downscale video for social media posts that don’t need full fidelity.
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.
Ever tired of processes OOMing each other?
systemd has a super easy way to limit the memory any service (by cgroup) can consume.
enum Result<T, E> {
Ok(T),
Err(E),
}
T is the useful bit, the thing you want.
But what is E?
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() };
Statically set a very specific resolution for X11.
Continue reading
Run programs on wayland that are still visible to capture programs (such as OBS).
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.
With the impending release of Django 3.1, we have access to async web views in a widely deployed web framework with a very rich ecosystem.
What kinds of optimizations can we eke out of the system?