Skip to content
systemcoding.dev

Snippets

Short posts that solve one thing: the code, the output we got, and why it works.

Virtualization

Set the guest kernel with PUT /boot-source

Tell Firecracker 1.10 which kernel to boot, and with what command line, by sending PUT /boot-source over its Unix socket before the microVM starts.

2 min read
Media

Rotate 90 degrees with transpose=1

Rotate video 90 degrees clockwise in FFmpeg 7.1 with transpose=1, and use 2 for counter-clockwise or two filters for a half turn.

1 min read
GPU

Fetch exact texels with texelFetch

Fetch exact texels with texelFetch, which takes integer coordinates and a mip level and skips filtering, in GLSL 1.30 and later.

1 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.