Skip to content

Instantly share code, notes, and snippets.

View Sneethe's full-sized avatar

Charles Tamzarian Sneethe

  • Solomon Islands
  • 19:54 (UTC +11:00)
View GitHub Profile
@digitalsignalperson
digitalsignalperson / stream.sh
Last active April 19, 2025 05:14
xdp screen cast example, modified to pipe to ffmpeg
mkfifo /tmp/gfifo
./xdp-screen-cast-ffmpeg.py & # or run in another terminal
# Note the gstreamer pipeline
# 'pipewiresrc fd=%d path=%u ! videorate ! video/x-raw,framerate=60/1 ! videoconvert ! filesink location=/tmp/gfifo'
# I specified a 60/1 frameerate. You can do other pre-processing here, or offload it to ffmpeg.
# Encode the stream and pipe to netcat
# note: must specify correct resolution here
# we can now use h264_nvenc, mpegts, and anything else ffmpeg has
@shamil
shamil / mount_qcow2.md
Last active April 22, 2025 06:38
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8