架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 config.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
[user] | |
name = Adam Lau | |
email = [email protected] | |
[push] | |
default = current | |
[mergetool] | |
keepBackup = true | |
[merge] | |
tool = vimdiff | |
[core] |
# git | |
alias gca="git commit -a" | |
alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gd="git diff | mate" | |
alias ga="git add" | |
alias gbd="git branch -D" | |
alias gst="git status" | |
alias gca="git commit -a -m" | |
alias gm="git merge --no-ff" | |
alias gpt="git push --tags" |
对所有网络接口启用 Airdrop (黑苹果有效)
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
阻止 Terminal 恢复窗口
/* | |
* A white-list based PAC without regexp, by @janlay | |
* It's just simple and fast. | |
* Last update: Dec 3, 2013 | |
* Special thanks to @Paveo | |
*/ | |
function FindProxyForURL(url, host) { | |
var PROXY = "PROXY 127.0.0.1:8800"; | |
var DEFAULT = "DIRECT"; |
var har = require('./har.json'); | |
var entries = har['log']['entries']; | |
var hosts = {}; | |
for (var i = 0; i < entries.length; i++) { | |
var entry = entries[i]; | |
var headers = entry['request']['headers']; | |
for (var j = 0; j < headers.length; j++) { | |
var header = headers[j]; | |
if (header['name'] == 'Host') { |
*.cn DirectConnection | |
*tmall* DirectConnection | |
.10010.com DirectConnection | |
.10050.net DirectConnection | |
.115.com DirectConnection | |
.115img.com DirectConnection | |
.123cha.com DirectConnection | |
.126.com DirectConnection | |
.126.net DirectConnection | |
.163.com DirectConnection |
[General] | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
loglevel = notify | |
[Proxy] | |
Proxy = custom | |
[Rule] |
I hereby claim:
To claim this, I am signing this object:
[user] | |
name = Name | |
email = [email protected] | |
[push] | |
default = matching | |
[mergetool] | |
keepBackup = true | |
[merge] | |
tool = sourcetree | |
[core] |