Skip to content

Instantly share code, notes, and snippets.

View Deflated-Criossant's full-sized avatar

Deflated Croissant Deflated-Criossant

View GitHub Profile
@Deflated-Criossant
Deflated-Criossant / tt2srt.py
Created December 10, 2015 12:15 — forked from adammw/tt2srt.py
Timed Text Captions to SRT Subtitles converter script
# Usage: python tt2srt.py source.xml output.srt
from xml.dom.minidom import parse
import sys
i=1
dom = parse(sys.argv[1])
out = open(sys.argv[2], 'w')
body = dom.getElementsByTagName("body")[0]
paras = body.getElementsByTagName("p")
for para in paras:
@Deflated-Criossant
Deflated-Criossant / daily-show-downloader.sh
Created December 10, 2015 12:14
The Daily Show Downloader
#!/bin/bash
#
# This script depends on curl and rtmpdump.
# For playback I recommend mplayer.
# Suggestions are welcome.
#
RTMPDUMP="rtmpdump" # the name of the binary
set -eu