Skip to content

Instantly share code, notes, and snippets.

View phoenixthrush's full-sized avatar
🦝
coding through nights

lulu phoenixthrush

🦝
coding through nights
View GitHub Profile
@phoenixthrush
phoenixthrush / README.md
Created January 23, 2026 20:47
Random Number Generation: MMIX LCG in Python and C #RandomNumberGeneration #LinearCongruentialGenerator #MMIX
@phoenixthrush
phoenixthrush / radio.py
Last active January 14, 2026 15:30
A tiny Python tool that endlessly streams shuffled FLAC files to an Icecast server using FFmpeg #icecast #radio #python
"""
Copyright (c) 2026 phoenixthrush
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@phoenixthrush
phoenixthrush / vscode-pyenv-auto-activation-fix.md
Created January 8, 2026 16:57
VS Code Keeps Triggering pyenv Automatically #pyenv #vscode #python

microsoft/vscode-python#18875

VS Code’s Python extension auto‑activates environments in every new terminal.
If your interpreter comes from pyenv, this triggers pyenv automatically.
That’s why you see unexpected pyenv shell calls when opening terminals.
To disable this behavior, set "python.terminal.activateEnvironment": false in VS Code settings.
After that, terminals will stop auto‑activating pyenv.

@phoenixthrush
phoenixthrush / backmarket.py
Last active January 6, 2026 22:55
Backmarket Price Watcher in Python with Discord Webhook Notifications #Python #Scraper #Discord #BackMarket
"""
Copyright (c) 2026 phoenixthrush
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@phoenixthrush
phoenixthrush / rsync.sh
Created January 2, 2026 17:59
Rsync Cheat Sheet: Common Variations with Examples #Rsync #CheatSheet
#!/bin/env bash
# Basic recursive copy with verbose output and human-readable sizes
rsync -avh --progress --stats src/ dst/
# Mirror a directory (delete extraneous files in destination)
rsync -avh --delete src/ dst/
# Copy only updated or new files (skip existing identical files)
rsync -avhu src/ dst/
@phoenixthrush
phoenixthrush / clean_pip.sh
Created January 2, 2026 17:55
Uninstall all currently installed Python packages automatically, effectively resetting the Python environment #Python #pip
#!/bin/env bash
pip freeze | xargs pip uninstall -y
@phoenixthrush
phoenixthrush / docker_clean.sh
Created January 2, 2026 17:54
Clean up all unused Docker resources, including stopped containers, unused images, networks, and volumes #Docker
#/bin/env bash
docker system prune -a --volumes --force
@phoenixthrush
phoenixthrush / fetch.sh
Created December 29, 2025 21:33
Git clone all repositories of a user #gh-cli #clone #git #repo
gh repo list phoenixthrush --limit 1000 | while read -r repo _; do
gh repo clone "$repo"
done
@phoenixthrush
phoenixthrush / instructions.md
Created December 29, 2025 21:28
Pi Zero 2 W - USB HID Gadget Mode #RPI #GadgetMode #HID

nano /boot/firmware/config.txt

dtoverlay=dwc2

nano /boot/firmware/cmdline.txt

modules-load=dwc2
@phoenixthrush
phoenixthrush / vox.m3u8
Created December 29, 2025 21:21
VOX M3U8: H.264 960×540 28fps, AAC-LC 2ch 48kHz #VOX #M3U8
https://strm.hdtvizlecanli.com/live/vox.m3u8