架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"code.google.com/p/go.crypto/ssh" | |
"code.google.com/p/go.crypto/ssh/terminal" |
/* | |
* linux 2.6.37-3.x.x x86_64, ~100 LOC | |
* gcc-4.6 -O2 semtex.c && ./a.out | |
* 2010 sd@fucksheep.org, salut! | |
* | |
* update may 2013: | |
* seems like centos 2.6.32 backported the perf bug, lol. | |
* jewgold to 115T6jzGrVMgQ2Nt1Wnua7Ch1EuL9WXT2g if you insist. | |
*/ |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"crypto/tls" | |
"crypto/x509" | |
"encoding/pem" | |
) | |
var chain=`-----BEGIN CERTIFICATE----- | |
MIIG5jCCBc6gAwIBAgIQAze5KDR8YKauxa2xIX84YDANBgkqhkiG9w0BAQUFADBs |
package main | |
import ( | |
"net/http" | |
"net/url" | |
"io/ioutil" | |
"log" | |
"strings" |
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"net/http" | |
"os" |
workspace: | |
base: /build | |
pipeline: | |
dbnode1: | |
detach: true | |
image: mysql/mysql-cluster:7.5 | |
commands: | |
- sleep 5 |