Created
August 15, 2015 08:06
-
-
Save Lordnibbler/709b7f37703f9948f795 to your computer and use it in GitHub Desktop.
Alfred Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <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