Skip to content

Instantly share code, notes, and snippets.

@luckylittle
luckylittle / convert_all_mp4_to_mkv.sh
Created July 3, 2019 04:00
Convert all MP4s in a folder to MKVs using MKVMerge
#!/bin/bash
# Requires: mkvmerge
for RH in *; do mkvmerge ${RH} -o $(basename -s .mp4 ${RH}).mkv; done; echo 'Done!'
# rm *.mp4
@melastmohican
melastmohican / rtf2md.sh
Created March 22, 2017 23:34
Convert RTF to Markdown on Mac OSX with textutl and pandoc
textutil -convert html -stdout file.rtf | pandoc --from=html --to=markdown --out=file.md
@pavelbinar
pavelbinar / extract-subtitles-from-mkv.md
Last active November 30, 2024 14:48 — forked from bmaeser/subtitle-extract.txt
Extract subtitles from .mkv files on Mac OS X
#!/bin/bash
echo '#!/bin/bash'
echo ''
echo 'failed_items=""'
echo 'function install_package() {'
echo 'echo EXECUTING: brew install $1 $2'
echo 'brew install $1 $2'
echo '[ $? -ne 0 ] && $failed_items="$failed_items $1" # package failed to install.'
echo '}'