diff --git a/gfw/shadowsockes.md b/gfw/shadowsockes.md index ce2b3c4..4c460fb 100755 --- a/gfw/shadowsockes.md +++ b/gfw/shadowsockes.md @@ -95,4 +95,4 @@ make make install make install-config -``` \ No newline at end of file +``` diff --git a/ngrok/ngrok.md b/ngrok/ngrok.md index 7c4263c..78cd530 100755 --- a/ngrok/ngrok.md +++ b/ngrok/ngrok.md @@ -38,6 +38,26 @@ server_addr: "ngrok.hellolight.me:4443" trust_host_root_certs: false ``` +nano ~/.ngrok + +``` bash + +server_addr: ngrok.hellolight.me:4443 +trust_host_root_certs: false +tunnels: + web: + #auth: "AuthUser:AuthPassWord" + proto: + http: 5000 + ssh: + remote_port: 12222 + proto: + tcp: 22 + +``` + + + ./ngrok -subdomain pub -proto=http -config=ngrok.cfg 8000 ./ngrok -subdomain pub -proto=http -config=ngrok.cfg 22 diff --git a/ubuntu/sudo.md b/ubuntu/sudo.md new file mode 100644 index 0000000..0aa12aa --- /dev/null +++ b/ubuntu/sudo.md @@ -0,0 +1,14 @@ +# sudo + + + +> sudo visudo + + +``` bash + +light ALL=(ALL) NOPASSWD: ALL +%admin ALL=(ALL) NOPASSWD: ALL +%sudo ALL=(ALL) NOPASSWD: ALL + +``` \ No newline at end of file