Elf M. Sternberg

Full Stack Web Developer

Where one teaches, two learn.

Tag: #gist

To all tags

Code snippet: Intercepting and Recording Linux Audio Streams with Pipewire

Let's say you're a Linux user. And let's say that you have valid, legitimate, one might even say ethical, reasons for capturing the audio that you're hearing through your speakers. Most modern Linux system are using Pipewire these days, so let'se discuss how you, on a Pipewire system, you can capture the audio being produced by some application you're currently running.

Code snippet: Cropping and Resizing Downloaded Videos with ffmpeg

If you've ever downloaded a video off the Internet using, say, Youtube Downloader, and it had both really annoying boxing around it so the poster could put their own logo or advertising, and the video was big enough that your machine chugged and lagged and it became hard to watch, here's the ffmpeg command to reduce it to size.

Code snippet: Using Awk to Find Specific Clauses in HTML

If you've ever needed to hunt through a massive HTML project for a specific, repetitive clause, there aren't a lot of tool that are really that helpful. I'm sure there are some tools better suited to it, but I found a recipe for gawk that I like.

MySQL recipe #1

Mass Gaffitter