Skip to content

Instantly share code, notes, and snippets.

View bemxio's full-sized avatar
:fishsticks:
fish sticks

Bemmy bemxio

:fishsticks:
fish sticks
View GitHub Profile

Bash scripts for broadcasting an HLS audio stream, either from files or your desktop output. Uses ffmpeg, http.server from Python and a tunnel from cloudflared. stream_file.sh requires the path to a file or directory as an argument, stream_loopback.sh needs the input device to be specified in the variable at line 4. Make sure to fill up TUNNEL_UUID (line 7) in either script, in case you want to use tunneling.

@bemxio
bemxio / polskie_radio.m3u8
Created June 21, 2024 15:36
An M3U playlist of AAC streams for Polish Radio (Polskie Radio) stations
#EXTM3U
#PLAYLIST:Polskie Radio
#EXTINF:0,Jedynka
#EXTIMG:https://moje.polskieradio.pl/_img/kanaly/pr1.jpg
http://stream3.polskieradio.pl:8950
#EXTINF:0,Dwójka
#EXTIMG:https://moje.polskieradio.pl/_img/kanaly/pr2.jpg
http://stream3.polskieradio.pl:8952
@bemxio
bemxio / hbc_theme_loop.py
Created June 8, 2024 18:26
A little Python script to generate a loop of the Homebrew Channel theme. Uses standard libraries, so no need for installing any with `pip`.
#!/usr/bin/python3
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
@bemxio
bemxio / adf2mp3.sh
Last active June 11, 2024 08:52
A Bash script for decrypting all Vice City radio stations from ADF to MP3. You can pass the game's path in an argument, by default uses the Steam installation.
#!/bin/bash
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@bemxio
bemxio / download_creator_levels.sh
Last active May 23, 2024 15:52
A tool for downloading all of a creator's levels from the LittleBigPlanet archive (https://archive.org/details/dry23db). Requires `sqlite3` and `archive_dl` (the latter will be downloaded if you're on x86_64), as well as the `dry.db` database file inside the directory where the script is located.
#!/bin/bash
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
@bemxio
bemxio / verify_crc32_checksums.py
Created March 24, 2024 19:22
A quick script I made for comparing CRC32 checksums with the ones contained in the filename
#!/usr/bin/python3
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
@bemxio
bemxio / img2mp3.py
Last active June 8, 2024 18:32
A CLI tool for encoding/decoding images from/to MP3 files, made as an experiment to see how MP3 compression would affect image data. Requires `pydub` and `Pillow` to be installed via `pip`.
#!/usr/bin/python3
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
@bemxio
bemxio / BIOS VGA 256.gpl
Created May 17, 2023 18:06
A GIMP palette containing all available colors in the BIOS VGA 256-color mode
GIMP Palette
Name: BIOS VGA (256 colors)
Columns: 16
# https://commons.wikimedia.org/wiki/User:Psychonaut/ipalette.sh
0 0 0 Index #0
0 0 170 Index #1
0 170 0 Index #2
0 170 170 Index #3
170 0 0 Index #4
170 0 170 Index #5
@bemxio
bemxio / mbr_dump.c
Last active May 24, 2024 12:23
A simple script made in C for dumping the bootloader on Windows
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@bemxio
bemxio / pygame_balls_demo.py
Last active May 24, 2024 12:20
A simple demo made in Python using Pygame, displaying balls of various color and size
#!/usr/bin/python3
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.