Skip to content

Instantly share code, notes, and snippets.

@mikepea
Last active October 24, 2016 09:45
Show Gist options
  • Save mikepea/903a6dea24dfd38e7d14d9c3a7831fca to your computer and use it in GitHub Desktop.
Save mikepea/903a6dea24dfd38e7d14d9c3a7831fca to your computer and use it in GitHub Desktop.

Revisions

  1. mikepea revised this gist Oct 24, 2016. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions Native Go diagnostic toolkit
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,9 @@ 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
    @@ -12,7 +15,18 @@ 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

  2. mikepea revised this gist Oct 24, 2016. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions Native Go diagnostic toolkit
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    if [ -z "$GOPATH" ]; then
    echo "Doh, GOPATH not set. Bailing"; exit 1
    fi

    # 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
    @@ -9,5 +13,11 @@ cd mylg
    go get
    go build mylg


    ## 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
  3. mikepea revised this gist Oct 4, 2016. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions Native Go diagnostic toolkit
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,12 @@
    # "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

    # Not golang but still pretty darn useful (i.e, get porting :P)
    pip install dnsyo --upgrade
  4. mikepea revised this gist Oct 4, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Native Go diagnostic toolkit
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,6 @@
    # "shameless ripoff" of https://github.com/reorx/httpstat
    go get -u github.com/davecheney/httpstat


    # Not golang but still pretty darn useful (i.e, get porting :P)
    pip install dnsyo --upgrade
  5. mikepea created this gist Sep 30, 2016.
    4 changes: 4 additions & 0 deletions Native Go diagnostic toolkit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # 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