Skip to content

Instantly share code, notes, and snippets.

@lauhayden
lauhayden / mono-fm.py
Created February 10, 2021 02:43
Simple mono FM radio demodulator in Python
"""
Mono FM Demodulator
Dependencies:
numpy
scipy
This script is meant to take in raw IQ samples from stdin and output audio samples via stdout.
An SDR utility like rtl_sdr (from librtlsdr) can be used to capture IQ samples and a media
@lauhayden
lauhayden / update-kernel.py
Created October 15, 2020 05:02
Kernel update script for Pop!_OS
#!/usr/bin/python3
"""Script to copy initrd.img and vmlinuz.efi from /boot/ to /boot/efi where
systemd-boot looks for them.
"""
import glob
import os
import shutil
import sys
@lauhayden
lauhayden / encode_music.py
Last active December 25, 2020 14:51
Muse Dash Soundtracking Encoding Script
#!/usr/bin/python3
"""Muse Dash Soundtrack Encoding Script
Prerequisites:
- `opus-tools` installed (this script uses `opusenc`)
- Muse Dash tracks extracted as WAVs to a directory
- Muse Dash cover images extracted as PNGs to a directory
- CSV file describing each track in Muse Dash
See the blog post for details:

Keybase proof

I hereby claim:

  • I am lauhayden on github.
  • I am lauhayden (https://keybase.io/lauhayden) on keybase.
  • I have a public key ASCxYiN_4vQpafZvtJOvXxFHdwGa2xRIQhfkCKfG-jO2hAo

To claim this, I am signing this object: