Coder Social home page Coder Social logo

pac-for-scholar's Introduction

Original from yishanhe/scholar-pac, prepare to add more lists for universities in china.

2016-12-12 Add HTTPS site.

2016-12-12 Add some common literature database of China.

2016-12-11

Add scholar database list on : https://www.nic.edu.cn/RS/ipstat/internalip/ (only China educational network can connect) (ACS AIP EBSCO IEEE ISI LEXISNEXIS OCLC OVID PROQUEST STANFORD WILEY GALE BLACKWELL CAS IOP EBRARY JSTOR KNOVEL EBOL HARNET TAYLORFRANCIS SCIENCEDIRECT OSA TOPCODER EUROMONITOR THIEME ELSEVIER SPRINGER ETS EMERALD DOI CAMBRIDGE PRESSDISPLAY AIAA IGPUBLISHING BMJ RSC MUSE MCGRAWHILL OUP HWWILSON AGU INFORMA BIOONE VIS SILVERCHAIR ASP EUCLID NATURE SAGE ASCE ASTM KARGER PUBLISHINGTECHNOLOGY TRUVENHEALTH WOLTERSKLUWER DEGRUYTER ENGINEERINGVILLAGE VISUALBODY)

scholar-pac

A proxy auto-config (PAC) file for those scholars who are relying on a ssh tunnel to their school/department machine to download publications from those digital libraries purchased by their school/universities.

Setup ssh config for tunneling

Before setup the ssh tunnel, man ssh and man ssh_config are highly recommended.

More readings about ssh and ssh_config:

Do a vim .ssh/config to setup a config file for ssh. An example is like below:

Host tunnel-name
    HostName xxxxxxxxx
    Port 22
    DynamicForward localhost:1080
    ExitOnForwardFailure yes
    TCPKeepAlive yes
    Compression yes
    CompressionLevel 9
    ServerAliveInterval 60
    ServerAliveCountMax 60
    User yourusername

Those options are at your decisions.

Setup Chrome

There are many options to explore on different operating systems and browsers for proxying. I will give an example on Chrome.

Install SwitchyOmega

Delete those default profiles. Add a new profile and select PAC file, import the PAC file in this repository. Using a url of this file also works: https://raw.githubusercontent.com/yishanhe/scholar-pac/master/scholar.pac. Name this profile and save it.

Usage

First, start your tunnel ssh -f -N tunnel-name (You can use an alias if you find inputing ssh -f -N annoying.) This will run in background. In case, you can find this process and kill it by ps aux | grep tunnel-name to get its pid xxxxxx and kill xxxxxx.

After turninig on your SwitchyOmega to the profile you previously set, it is all set.

Enjoy it.

Try google my ip to test or just go to IEEE explorer to test.

  • Sometimes, you need to refresh the targeted page several times such that you can see "purchase"->"download".
  • Sometimes, the ssh link may not be stable on celluar tethering. Better turn on compression.

Accepting Pull Request to update the PAC file.

The current PAC file only contains a minimal requirement for my usage. And it should be expanded to include more digital libraries.

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.