A collection of small scripts that I use regularly. It ain't much, but it's honest code.
A script to play the "ba-dum-tss" sound effect, typically used after a joke.
Converts all HEIC files to JPEG files in the current directory.
Converts media files to a format compatible with iPhones. Useful for downloading cartoons with tools like yt-dlc, then converting and airdropping them to your iPhone. Ideal for offline viewing during flights, especially takeoff and landing, to keep children distracted from pressure-change related pain.
Renames files by replacing problematic characters with underscores. Provides an option to partially reverse the process.
Puts the system to sleep after completing a backup process.
Traverses a directory, calculates file size and SHA256 hash, and writes the information to an Excel file. Named "tl" possibly for "tree list."
Extracts audio from video files and saves it as MP3.
Outputs the total duration time of all video files in a directory (recursively).
Converts WEBM video files to MP4 format.
Converts WMA audio files to MP3 format.
Automatically detects the default gateway (IPv4 or IPv6) and pings it. It uses the 'gping' tool if available, otherwise falls back to the standard 'ping' command.
- IPv4 Gateway: Run the script as
pgw
to ping the default IPv4 gateway. - IPv6 Gateway: Create a symlink named
pgw6
and run it to ping the default IPv6 gateway.
ln -s pgw pgw6