a.k.a. what to do when your ISP starts blocking sites :(
1 ssh to remote server as a SOCKS server
ssh -D 6080 {user}@{ssh_server} -p {ssh_port}
| #!/bin/bash | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="" | |
| UPASS="" | |
| ORG="" |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
The most recent release from the LTS series: http://openvswitch.org/releases/openvswitch-2.5.4.tar.gz
Instructions:
As the root user let’s install some packages:
yum -y install wget openssl-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool python-twisted-core python-zope-interface PyQt4 desktop-file-utils libcap-ng-devel groff checkpolicy selinux-policy-devel
Add a new user and switch to that user:
| //step1:初始一个counter, with help string | |
| pushCounter = prometheus.NewCounter(prometheus.CounterOpts{ | |
| Name: "repository_pushes", | |
| Help: "Number of pushes to external repository.", | |
| }) | |
| //setp2: 注册容器 | |
| err = prometheus.Register(pushCounter) | |
| if err != nil { | |
| fmt.Println("Push counter couldn't be registered AGAIN, no counting will happen:", err) |