Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.46 KB

note.md

File metadata and controls

76 lines (56 loc) · 1.46 KB
sudo apt install graphviz gv

go test -run=Bench -bench=. -benchmem -memprofile=mem.out -cpuprofile=cpu.out

go tool pprof mem.out
go tool pprof cpu.out

go tool pprof -http :9999 -edgefraction 0 -nodefraction 0 -nodecount 100000 cpu.out
go tool pprof -http :9999 -edgefraction 0 -nodefraction 0 -nodecount 100000 mem.out

web - run in browser top5 -cum - run top of runtime

Coverage

go test -coverprofile=coverage.out
go tool cover -html=coverage.out 
go tool cover -html=coverage.out -o=coverage.html
firefox coverage.html &
go test -coverprofile=coverage.out ./...

Add ssh to git repository

git remote set-url origin git@github.com:Konstantin8105/dotfiles.git

Show all errors

:go build -gcflags="-e"

Diff tools

git difftool --tool=meld

Prepare new linux distib

Applications:

sudo apt install git vim-gtk octave scilab meld ctags gnuplot clang gparted cvs sqlite3 inkscape htop mysql-server mercurial
sudo snap install go --classic

Fonts:

mkdir ~/.fonts
cp ~/dotfiles/FiraFont/ttf/*.ttf ~/.fonts
cp ~/dotfiles/GolangFont/*.ttf   ~/.fonts
cp ~/dotfiles/ptmono/*.ttf       ~/.fonts
cp ~/dotfiles/Proggy/*.ttf       ~/.fonts
cp ~/dotfiles/Terminus/*.ttf     ~/.fonts
cp ~/dotfiles/CascadiaCode/*.ttf ~/.fonts

Vim:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

GRUB FOR HP Z800:

acpi=off
update-grub