Giter Site home page Giter Site logo

battery's Introduction



battery's People

Contributors

pfan123 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

battery's Issues

macOS + iTerm + zsh + shadowsocksX-NG 用户设置翻墙

iTerm 中先看下现在的代理情况,如果显示是国内,说明需要代理,接着往下看。

$  curl ip.gs
Current IP / 当前 IP: 124.207.212.130
ISP / 运营商:  DRPENG
City / 城市: Beijing Beijing
Country / 国家: China

1.shadowsocksX-NG 开 PAC 或者全局模式,在小飞机上右键,有一个 Copy HTTP Proxy Shell Export Line,点击。

2.iTerm 中,编辑 .zshrc 文件:

$ vim ~/.zshrc

3.将刚才从小飞机里复制出来的 export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; 粘贴进 zshrc,:wq 保存。

4.然后执行:

$ source ~/.zshrc

5.测试一下是不是成功了,如果你的城市还在国内,说明没成功。

$ curl ip.gs
Current IP / 当前 IP: 26.22.90.3xx
ISP / 运营商:  Unknow
City / 城市:  Ukraine
Country / 国家: Ukraine
IP.GS is now IP.SB, please visit https://ip.sb/ for more IP information, ip.gs will only use for curl purpose. / IP.GS 已更新至 IP.SB 请访问 https://ip.sb/ 获取更多信息, ip.gs 域名仅作 curl 使用
Please join Telegram group https://t.me/sbfans if you have any issues. / 如有问题,请加入 Telegram 群 https://t.me/sbfans

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.