Skip to content

Instantly share code, notes, and snippets.

@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 June 3, 2024 07:51 — 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 '}'