summaryrefslogtreecommitdiffstats
path: root/forward
blob: a1c6a9101292f0868560ab7ebff87d1ef332fd5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/zsh
set -x

failed(){
echo "Failed!"
exit 1
}

#PORT=$(( (RANDOM+2000)%65536 ))
PORT=14770
ps auxww | =grep -i wnohang | =grep -i ssh | =grep -v grep ||  lsof -i:$PORT || ssh -f -i ~/.ssh/authorized_keys -p 8193 -ND $PORT [email protected] || failed
#export HTTP_PROXY="127.0.0.1:$PORT"
tsocks luakit http://lwn.net


set +x