Code Monkey home page Code Monkey logo

pkuautogateway's Introduction

PKUAutoGateway

用于自动实现PKU网关的检测与连接。

动机在于,补全PKU Helper缺少的功能,实现自动连接与断开,并且在开了全局代理的情况 下照常使用。

注意

只测试过macOS下的情况,Linux下可能需要做相应的小改动。

特点

  • 后台自动连接;
  • 连接过多时自动断开之前本机占用的连接;
  • 没有一天90次的限制(区别于PKU Helper);
  • 全局代理下也能正常使用(区别于PKU Helper)。

配置

  • 用户名密码,默认是运行时输入;
  • 查询时间间隔(timeInterval),默认20秒;
  • 用百度主页来测试联网情况(只获取HEAD)。

拓展

个人把它用macOS的Automator包装成一个App,设置后台运行与开机启动。 (http://stackoverflow.com/questions/6442364/running-script-upon-login-mac)

运行的时候菜单栏上会出来一个旋转的小齿轮,可以看到脚本在执行。

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.