Skip to content

Instantly share code, notes, and snippets.

View pandamoon21's full-sized avatar
๐Ÿš€
:)

pandamoon21 pandamoon21

๐Ÿš€
:)
View GitHub Profile
@pandamoon21
pandamoon21 / fix_do_droplet_internet.md
Last active January 30, 2025 16:06
Fix Digital Ocean droplet error no connection
@pandamoon21
pandamoon21 / _restream_cenc.md
Created July 17, 2022 03:36 — forked from rlaphoenix/_restream_cenc.md
Ways to re-stream and decrypt MPEG-CENC live streams. (or just play on desktop)

Disclaimer

  1. All content keys were redacted, they should be 128-bit hex strings.
  2. These methods involve the use of ffmpeg and -cenc_decryption_key which is not part of stable releases as of July 2022. Use nightlies from gyan.dev or some other autobuild in the meantime. Hopefully it gets added in the next stable release.
  3. On my end none of these were particularly reliable. This may change in the future as FFmpeg evolves. The direct method of playing with ffplay is currently the most reliable out of the listed methods.

xTeVe (for Emby/Plex)

@pandamoon21
pandamoon21 / test_mxtm.vtt
Created May 6, 2022 12:59
test vtt maxstream
WEBVTT
WEBVTT
WEBVTT
WEBVTT
WEBVTT
import base64
import uuid
from pymp4.parser import Box
def get_moov_pssh(fd):
while True:
x = Box.parse_stream(fd)
if x.type == b'moov':
@pandamoon21
pandamoon21 / mktor_functions.sh
Created April 2, 2022 04:52
bash/zsh functions for easy torrent creation on private trackers
TORRENT_WATCH_DIR="$HOME/rtorrent/watch/load"
ANNOUNCE_BTN='http://landof.tv/YOUR_PASSKEY/announce'
ANNOUNCE_PTP='http://please.passthepopcorn.me:2710/YOUR_PASSKEY/announce'
ANNOUNCE_HDB='http://tracker.hdbits.org/announce.php?passkey=YOUR_PASSKEY'
mkt() {
tracker="$1"
announce=$(eval printf -- "'%s'" "\$ANNOUNCE_$tracker")
if [[ -z "$announce" ]]; then
printf 'Error: $ANNOUNCE_%s is not set\n' "$tracker" >&2
@pandamoon21
pandamoon21 / myffinfo2.avsi
Last active September 6, 2021 07:20
Custom avisynth+ for personal use.
red = $FF7C7C
green = $B2FF7C
blue = $8F97FF
yellow = $FFFF00
orange = $FFB97C
magenta = $FF77FF
violet = $C787FF
cyan = $7DF9FF
white = $FFFFFF
azure = $86C8FF