Skip to content

Instantly share code, notes, and snippets.

@elubow
Created March 30, 2017 05:38
Show Gist options
  • Save elubow/6220e9d95f740dac8f1236ee146a202b to your computer and use it in GitHub Desktop.
Save elubow/6220e9d95f740dac8f1236ee146a202b to your computer and use it in GitHub Desktop.
description
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
command = "gem install knife-ec2 -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2/"
[[snippets]]
description = "Find all files in / over 100M and sort by size"
command = "find / -type f -size +100M -exec ls -lh {} \\; 2> /dev/null | awk '{ print $NF \": \" $5 }' | sort -nk 2,2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment