Giter Club home page Giter Club logo

dev-in-cn's Introduction

How to dev in China

Due to the well known issue, it is diffcult for developers to do their work in China. A lot of services, repos are not easily accessible in China. This repo contains many tricks and tips to continue your developement work in China.

VPN option

It is rather difficult to use VPN now in China. Also some VPN providers do have some options to bypass. Their services are not fully stable.

Web access using ShadowSocks

A great project called Showsocks (https://shadowsocks.org/) can help you proxy your traffic to a low-end server from outside China. You can easily create a proxy server yourself by using tools provided on its website: https://shadowsocks.org/en/download/servers.html I would recommend using an AWS server in JP to host your traffic. On your local machine, you can use https://github.com/shadowsocks/ShadowsocksX-NG/releases to config your proxy. By default, you can use "Global mode" to proxy all your traffic. Configuration is also easy. Add a server in servers-> Server Preferences. You should be able to visit all website using your browser.

a quick command to run shadowsocks docker

sudo docker run -e PASSWORD=[pw] -p [server-port]:8388 -p [server-port]:8388/udp  -d --restart always shadowsocks/shadowsocks-libev:latest

with default encryption method is aes-256-gcm.

Shell access

You can use https_proxy and http_proxy in your shell by export them:

export https_proxy='http://127.0.0.1:1087'
export http_proxy='http://127.0.0.1:1087'

You can add it to a bash file to easily enable it. I personally add it to a bash file named ss.sh with content

export https_proxy='http://127.0.0.1:1087'
export http_proxy='http://127.0.0.1:1087'
echo 'proxy enabled!'

Telegram

There is proxy setting in it setting. You can add a SOCK5 proxy pointing to 127.0.0.1:1086 the default port for shadowsocks.

Enjoy your dev in China.

dev-in-cn's People

Contributors

guo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.