Skip to content

Instantly share code, notes, and snippets.

@uahim
uahim / dts_check_and_transcode.bat
Last active June 27, 2025 17:46
batch helper for ffmpeg/ffprobe to loop through your mkv video files and convert dts
@echo off
setlocal enabledelayedexpansion
for %%a in (%*) do (
ffprobe -v error -select_streams a -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 "%%~fa" | findstr /i "dts" >nul
if !errorlevel! equ 0 (
set filename="%%~dpna-ac3.mkv"
ffmpeg -i "%%~fa" -vcodec copy -scodec copy -acodec ac3 -b:a 640k %filename%
echo converted %filename%
)
@uahim
uahim / play.lua
Last active March 9, 2026 20:02
beispielskript zum spoofen des referrer tags, benutzung: vlc play.lua
#EXTVLCOPT:http-user-agent=Mozilla/5.0 (Windows NT 12.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
#EXTVLCOPT:http-referrer=https://popcorntimes.tv/
https://cdn0.popcorntimes.tv/pfad-zum-film.mp4
@uahim
uahim / spotify_tracklist.js
Last active July 18, 2025 17:56
spotify playlist to plain text list bookmarklet
// this will scrape a button attribute and convert
// More options for The Wounds We Bled by Heather Nova
// to
// Heather Nova - The Wounds We Bled
//
// works only if the spotify ui language is english
var mlnk = "";
for (var i = 0, l = document.querySelectorAll('[data-testid="more-button"]').length - 1; i < l; ++i) {
@uahim
uahim / ttml-fix.sed
Created September 2, 2025 18:00
fixes TTML source file before converting them to srt
s/\([begin|end]\)=\"10/\1=\"00/gi
s/\([begin|end]\)=\"11/\1=\"01/gi
@uahim
uahim / arte-mp4.sed
Last active September 21, 2025 17:11
arte http(s, of course) direct download as mp4
# usage
# curl <url-to-master.m3u8> | sed -f arte-mp4.sed | grep "v216\|A_aud" | wget -i -
/https/!d
/iframe/d
/vtt/d
/h265/d
s/.*,URI="\(.*\)"/\1/g
s/m3u8/mp4/g
@uahim
uahim / calllist.sed
Last active February 11, 2026 18:29
FritzBox Anrufliste xml zu Menschenlesbarem
/Calle.Number>EURE_NUMMER/!d
s#.*<Type>\(.*\)</Type><Caller>\(.*\)</Caller>.*<Date>\(.*\)</Date><Duration>\(.*\)</Duration>#\1: \3 \4 EIN \2#g
s#.*<Type>\(.*\)</Type><Called>\(.*\)</Called>.*<Date>\(.*\)</Date><Duration>\(.*\)</Duration>#\1: \3 \4 AUS \2#g
s#<Calle.*</Port>##g
s#<Count></Count><Path /></Call>##g
# callist zb mit
# fritzBoxShell.sh OnTel GetCallList 7
# holen, dann
# sed -f callist.sed callist.xml | sort