Instantly share code, notes, and snippets.


On coco2

$ export ETCDCTL_API=3
$ export CA=/etc/etcd/ssl
$ etcdctl --write-out=table  --cacert=${CA}/etcd-ca.pem     --cert=${CA}/etcd.pem     --key=${CA}/etcd-key.pem --endpoints= member list
|        ID        | STATUS  | NAME  |        PEER ADDRS         |       CLIENT ADDRS        |
| 23a97cc01374ffea | started | coco4 | | |
View IPVS-keepalived
View mytest.json
sudo kubeadm reset
sudo swapoff -a
sudo kubeadm init --pod-network-cidr=
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f
kubectl taint nodes --all
View Install NVIDIA Driver and

Services to securely store your Docker images.

  • Amazon EC2 Container Registry Amazon EC2 Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
  • Atomic Registry - Red Hat Atomic Registry is an open source enterprise registry based on the Origin and Cockpit projects, enhancing the Docker registry library.
  • Azure Container Registry Manage a Docker private registry as a first-class Azure resource
  • CargoOS A bare essential OS for running the Docker Engine on bare metal or Cloud.
  • Bare-metal container hosting.
  • Docker Hub provided by Docker Inc.
  • Docker Registry v2 - The Docker toolset to pack, ship, store, and deliver content
curl -o ~/
chmod +x
./ -d
time bash ./ -v -x -t "PODCONFIG=rcord-controlkube.yml config" \
-t "build" | tee -a ~/setup.log
View cssobj_git_diff.json
- "name": "cssobj",
- "description": "Runtime CSS manager, Turn CSS into dynamic JS module, Stylesheet CRUD (Create, Read, Update, Delete) in CSSOM, Solve com
mon problems of CSS-in-JS, name space (local) class names, media query hook for IE8, styled components",
- "filename": "cssobj.min.js",
- "keywords": [
- "cssom",
- "prefixer",
- "css generate",
- "diff css",