Skip to content

Instantly share code, notes, and snippets.

View cpulvermacher's full-sized avatar

Christian Pulvermacher cpulvermacher

View GitHub Profile
@cpulvermacher
cpulvermacher / catt_subtitles
Last active July 1, 2025 14:16 — forked from EtienneM/catt_subtitles
stream a file to ChromeCast using catt and allow selecting from available embedded subtitles
#!/bin/bash
# set -x
print_usage() {
echo "$0 [--map=0:3] video_file" >&2
echo "" >&2
echo "With video_file the path to a file like mkv which embeds the subtitles" >&2
echo "--map: use the specified embedded subtitle." >&2
echo "" >&2
@cpulvermacher
cpulvermacher / find-https-debian-archives.py
Created April 25, 2017 14:35 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#!/usr/bin/python
import urllib2
import re
import ssl
import sys
# # find generic mirrors
mirrors = urllib2.urlopen('http://www.debian.org/mirror/list')
https = []