杂项笔记

记录一些杂七杂八的东西

#---------------------------------------------
# golang
#---------------------------------------------

# studygolang.com
wget https://studygolang.com/dl/golang/go1.14.linux-amd64.tar.gz

# golang.org
wget https://dl.google.com/go/go1.14.linux-amd64.tar.gz


#---------------------------------------------
# nodejs
#---------------------------------------------
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

# for deepin 15.11 stable
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh


#---------------------------------------------
# golang build with compress
#---------------------------------------------
go build -ldflags -w -o demo


#---------------------------------------------
# curl with proxy
#---------------------------------------------

# socks5
curl --socks5 主机:端口 --proxy-user 账号:密码 -XGET 目标请求地址

# http/https
curl -x 主机:端口 --proxy-user 账号:密码 目标请求地址