Skip to content

Instantly share code, notes, and snippets.

@Lordnibbler
Created August 15, 2015 08:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lordnibbler/709b7f37703f9948f795 to your computer and use it in GitHub Desktop.
Save Lordnibbler/709b7f37703f9948f795 to your computer and use it in GitHub Desktop.
Alfred Snippets
# <name> / <snippet>
# dnsmasq
edit dnsmasq.conf / vi /usr/local/etc/dnsmasq.conf
kill dnsmasq / sudo killall -9 dnsmasq
load dnsmasq / sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
unload dnsmasq / sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
flush DNS caches / sudo discoveryutil udnsflushcaches
# git/hub
git restore delete file / git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"
pull request fork to master / hub pull-request -b entrefuse:develop -h lordnibbler:feature_branch
# fun
shrug / ¯\_(ツ)_/¯
ffmpeg mov to gif / ffmpeg -ss 00:00:00.000 -i input.mov -vf "transpose=1" -pix_fmt rgb24 -r 10 -s 270x480 -t 00:00:10.000 output.gif
# os x
kill coreaudiod / sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment