Skip to content

Instantly share code, notes, and snippets.

View Akagi201's full-sized avatar
🎯
Focusing

Bob Liu Akagi201

🎯
Focusing
View GitHub Profile
@Akagi201
Akagi201 / proxy.sh
Created August 13, 2018 02:35
[proxy]
function proxy(){
#export ALL_PROXY=socks5://127.0.0.1:1086;
export http_proxy=http://127.0.0.1:1087;
export https_proxy=http://127.0.0.1:1087;
echo -e "芝麻开门了"
}
function unproxy(){
#unset ALL_PROXY
unset http_proxy
unset https_proxy
@Akagi201
Akagi201 / shadowsocks.md
Created July 27, 2018 02:55
[shadowsocks]

App

  • Quantumult
  • Surge
  • Potatso 2
  • Wingy
  • SsrConnectPro
@Akagi201
Akagi201 / ss-redir 透明代理.md
Created July 20, 2018 08:45 — forked from wen-long/ss-redir 透明代理.md
ss-redir 透明代理.md

##ss-redir 的 iptables 配置(透明代理)

透明代理指对客户端透明,客户端不需要进行任何设置就使用了网管设置的代理规则

创建 /etc/ss-redir.json 本地监听 7777 运行ss-redir -v -c /etc/ss-redir.json

iptables -t nat -N SHADOWSOCKS
# 在 nat 表中创建新链
iptables -t nat -A SHADOWSOCKS -p tcp --dport 23596 -j RETURN
# 23596 是 ss 代理服务器的端口,即远程 shadowsocks 服务器提供服务的端口,如果你有多个 ip 可用,但端口一致,就设置这个
@Akagi201
Akagi201 / cardano.md
Created July 20, 2018 03:03
[cardano]

钱包区块以及配置路径

@Akagi201
Akagi201 / ps.md
Created July 18, 2018 05:02
[ps]

查看某进程内存

  • ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' | grep nodeos
@Akagi201
Akagi201 / draw.md
Created July 11, 2018 09:19
[draw]

tools