Contents
  1. 1. Vim
    1. 1.0.1. Spell check
    2. 1.0.2. Programming Syntastic check
  • 2. Un-block Google Scholar for DigitalOcean vps
  • Vim

    Spell check

    use :set spell for checking spell errors.
    use :set nospell for closing.

    Programming Syntastic check

    • Install Syntastic addon.
    • Then use :SyntasticInfo to check the checkers.
    • Take matlab code for example:
      add mlint to Path (or system link to /usr/local/bin/)
    • use :Errors (:lopen) to check; :w to auto check.
    • Enjoy coding.

    Un-block Google Scholar for DigitalOcean vps

    DigitalOcean’s ipv4 addresses are blocked by Google Scholar. We can solve this with ipv6.
    To make it work:

    • Enable ipv6 support in DigitalOcean online setting;
    • SSH vps, add Google Scholar ipv6 addresses in /etc/hosts:
    1
    2
    3
    4
    2607:f8b0:4007:805::100f scholar.google.cn
    2607:f8b0:4007:805::100f scholar.google.com
    2607:f8b0:4007:805::100f scholar.google.com.hk
    2607:f8b0:4007:805::100f scholar.l.google.com
    • In vps, restart shadowsocks:
    1
    2
    sudo ssserver -c /etc/shadowsocks.json -d stop
    sudo ssserver -c /etc/shadowsocks.json -d start
    • update on Jul. 18, 2016. If Google Search is blocked, you may want to add two more lines in /etc/hosts:
    1
    2
    2607:f8b0:4005:801::200e google.com
    2607:f8b0:4005:801::200e www.google.com
    • Enjoy.
      如果觉得帮到了你,打赏一下吧!
    Contents
    1. 1. Vim
      1. 1.0.1. Spell check
      2. 1.0.2. Programming Syntastic check
  • 2. Un-block Google Scholar for DigitalOcean vps