kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl proxy
Then browse to:
go test -run=. -bench=. -benchtime=5s -count 5 -benchmem -cpuprofile=cpu.out -memprofile=mem.out -trace=trace.out ./package | tee bench.txt | |
go tool pprof -http :8080 cpu.out | |
go tool pprof -http :8081 mem.out | |
go tool trace trace.out | |
go tool pprof $FILENAME.test cpu.out | |
# (pprof) list <func name> | |
# go get -u golang.org/x/perf/cmd/benchstat | |
benchstat bench.txt |
kubectl patch cronjobs <job-name> -p '{"spec" : {"suspend" : true }}' |
# Change the default browser to brave. | |
xdg-settings set default-web-browser brave-browser.desktop |
ssh-keygen -t rsa -b 4096 -m PEM -f <keyname> |
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://example.com |
ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub |
# Installation: | |
# go get -u github.com/thraxil/cyclo | |
# go get -u github.com/client9/misspell | |
# go get -u honnef.co/go/tools/cmd/staticcheck | |
# go get -u honnef.co/go/tools/cmd/gosimple | |
# go get -u honnef.co/go/tools/cmd/unused | |
# go get -u github.com/jgautheron/goconst/cmd/goconst | |
# go get -u github.com/jgautheron/usedexports | |
# go get -u mvdan.cc/interfacer | |
# go get -u github.com/tsenart/deadcode |
go get golang.org/x/tools/gopls@latest | |
go get -u github.com/gableroux/github-release | |
go get -u golang.org/x/perf/cmd/benchstat | |
go get -u golang.org/x/tools/cmd/benchcmp | |
go get -u golang.org/x/tools/cmd/cover | |
go get -u golang.org/x/tools/cmd/godoc | |
go get -u golang.org/x/tools/cmd/goimports | |
go get -u golang.org/x/tools/cmd/gorename | |
go get -u golang.org/x/tools/cmd/gotype | |
go get -u golang.org/x/tools/cmd/guru |
import glob | |
import pandas as pd | |
fds = [] | |
for f in glob.glob("**/*.csv"): | |
fds.append(pd.read_csv(f)) | |
frame = pd.concat(fds) |