Giter Site home page Giter Site logo

octavianx / shadowsocks-gfwlist-macos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexzhangs/shadowsocks-gfwlist-macos

0.0 1.0 0.0 4 KB

Shadowsocks for OSX 2.6.3 has an issue of updating GFWList PAC error 404. The URL used during update is hardcoded in the application. This script get gfwlist.txt from new site and use gfwlist2pac to generate PAC.

Shell 100.00%

shadowsocks-gfwlist-macos's Introduction

shadowsocks-gfwlist-macos

Shadowsocks for OSX 2.6.3 has an issue of updating GFWList PAC, that returns error 404. The URL used during the update is hardcoded in the application and can not be changed easily.

This script get GFWList with a new URL and use gfwlist2pac to generate PAC and put it into the configuration directory of Shadowsocks.

This script is tested only with Max OS X.

Dependence

gfwlist2pac

pip install gfwlist2pac

OR

pip install gfwlist2pac==1.1.3

Installation

git clone https://github.com/alexzhangs/shadowsocks-gfwlist-macos

sudo sh ./shadowsocks-gfwlist-macos/install.sh

Manually Update GFWList

ss-gfwlist-update.sh

OR

/usr/local/bin/ss-gfwlist-update.sh

Setup cron job to automatically update GFWList

crontab -e

Add entry (without virtualenv):

*/5 * * * * /usr/local/bin/ss-gfwlist-update.sh >> /tmp/ss-gfwlist-update-error.log 2>&1

OR (with virtualenv, replace YOUR_VIRTUALENV with your virtualenv name)

*/5 * * * * { . ~/.bash_profile; pyenv activate YOUR_VIRTUALENV; /usr/local/bin/ss-gfwlist-update; } >> /tmp/ss-gfwlist-update-error.log 2>&1

shadowsocks-gfwlist-macos's People

Contributors

alexzhangs avatar

Watchers

octavianx 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.