Tricks that brought me happiness today
Updated:
Vim
Spell check
use :set spell for checking spell errors.
use :set nospell for closing.
Programming Syntastic check
- Install Syntastic addon.
- Then use
:SyntasticInfoto check the checkers. - Take
matlabcode for example:
addmlinttoPath(or system link to/usr/local/bin/) - use
:Errors(:lopen) to check;:wto 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:
|
|
- In vps, restart shadowsocks:
|
|
- update on Jul. 18, 2016. If Google Search is blocked, you may want to add two more lines in
/etc/hosts:
|
|
- Enjoy.
如果觉得帮到了你,打赏一下吧!
