Skip to content

Instantly share code, notes, and snippets.

@elubow
Created May 14, 2017 02:32
Show Gist options
  • Save elubow/4078b1932f9efbccc5e79ee29e262fdf to your computer and use it in GitHub Desktop.
Save elubow/4078b1932f9efbccc5e79ee29e262fdf 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 -nrk 2,2"
[[snippets]]
description = "build a go file for linux"
command = "GOOS=linux GOARCH=386 go build <filename> "
[[snippets]]
description = "ssh command to proxy all traffic from a local port through a jumpbox to a remote port"
command = "ssh -L <local_port>:<remote_host>:<remote_port> -N <jumpbox>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment