Skip to content

Instantly share code, notes, and snippets.

View tschoof's full-sized avatar

Timm Schoof tschoof

View GitHub Profile
@tschoof
tschoof / make-podcast-mp3.workflow
Last active August 29, 2015 14:17
AppleScript that passes variables to a script, executes it to generate a podcast-ready mp3
set title to text returned of (display dialog "Episode Title?" default answer "Episodentitel") as string
set summary to text returned of (display dialog "Description?" default answer "Interessante Beschreibung") as string
tell application "Finder"
set theFile to (get selection) as alias
set theFile to (POSIX path of theFile) as string
end tell
set theLameCommand to ("/bin/bash /path/to/encode-podcast.sh -t \"" & title & "\" -s \"" & summary & "\" \"" & theFile & "\"")
@tschoof
tschoof / post-update
Created March 5, 2012 13:27 — forked from dchest/post-update
Git post-update hook to checkout working copy and publish it with jekyll (put it into .git/hooks and chmod +x post-update)
#!/bin/sh
#
# Post-update hook to checkout working copy and publish it with jekyll
#
# To enable this hook, make this file executable by "chmod +x post-update".
git-update-server-info
is_bare=$(git-config --get --bool core.bare)