Skip to content

Instantly share code, notes, and snippets.

@mikepea
Last active October 24, 2016 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikepea/903a6dea24dfd38e7d14d9c3a7831fca to your computer and use it in GitHub Desktop.
Save mikepea/903a6dea24dfd38e7d14d9c3a7831fca to your computer and use it in GitHub Desktop.
if [ -z "$GOPATH" ]; then
echo "Doh, GOPATH not set. Bailing"; exit 1
fi
BASE=$(mktemp -d /tmp/diagbuild.XXXXXX)
cd $BASE
# Nice way of visualising network latencies with an http call
# "shameless ripoff" of https://github.com/reorx/httpstat
go get -u github.com/davecheney/httpstat
# http://mylg.io - ping, traceroute, BGP LG, web dashboard
# - ripe for additions?
git clone https://github.com/mehrdadrad/mylg.git
cd mylg
go get
go build mylg
cd $BASE
# cinf - container cgroup/namespace low level inspection
# https://github.com/mhausenblas/cinf
git clone https://github.com/mhausenblas/cinf.git
cd cinf
go get github.com/olekukonko/tablewriter
go get github.com/mhausenblas/cinf
go get github.com/buger/goterm
GOOS=linux go build
godoc -http=":6060"
cd $BASE
## HONOURABLE MENTIONS
# SJSON - makes setting json values super easy
# https://github.com/tidwall/sjson
# Not golang but still pretty darn useful (i.e, get porting :P)
pip install dnsyo --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment