Skip to content

Instantly share code, notes, and snippets.

@JilinXie
JilinXie / setTunnel.markdown
Last active June 26, 2018 09:47
port forwarding can be less-priced than vpn yet with better formance.
  1. Buy the right vm. aliyun vm configuration and price

  2. from mac's terminal or windows' powershell, set up the tunnel: ssh -C -N -D 9003 root@yourserver

  3. Configure a global proxy (only know how to do it on mac): mac configure proxy apply, and mac will be able to go through the overseas port-forwarding server.

@JilinXie
JilinXie / supervisord.service
Created November 9, 2017 03:12 — forked from mozillazg/supervisord.service
install and configure supervisord on centos 7.
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]
Type=forking
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
ExecReload=/bin/supervisorctl reload
ExecStop=/bin/supervisorctl shutdown
To open a ssh tunnel
ssh -D port -C -N user@host