git配置
1 | GIT_SSL_NO_VERIFY=true |
拉取部分代码
1 | git config core.sparsecheckout true #开启sparse clone |
yum清缓存
1 | yum makecache |
docker代理
/usr/lib/systemd/system/docker.service:
1 | Environment="HTTP_PROXY=http://10.194.209.5:3128" "NO_PROXY=localhost,127.0.0.1,docker.hikvision.com.cn" |
docker配置
1 | sudo groupadd docker |
1 | mkdir -p /etc/docker && cat >/etc/docker/daemon.json <<-EOF |
Boot2Docker用户名密码
docker tcuser
root docker用户下执行sudo -i
k8s
1 | kubectl cluster-info |
编译关键组件:
1 | make WHAT='cmd/kube-apiserver cmd/kube-controller-manager cmd/kubelet cmd/kube-proxy cmd/kubectl plugin/cmd/kube-scheduler' |
RBD
rbd –pool rbd –id admin -m 192.168.1.187 –key=AQA0xWtYn98iOxAAMSsJbhGwuxyFVg9aIAvFoA== ls
代码统计利器
cloc
SHELL
1 | basepath=(cd `dirname 0`; pwd) |
go vendor
1 | go get -u -v github.com/kardianos/govendor |
ansible
1 | ansible localhost -m setup |
dns配置
1 | /etc/resolv.conf |
screen
1 | // 进入screen |