Blogs

Prevent mac from putting .DS_STORE and other files on other computers

http://support.apple.com/kb/HT1629

Follow instructions to prevent your computer from storing stupid .DS_STORE and ._filename files.

Vim shortcuts

For random files that do not have standard extension names you can apply known markup highlighting.

:set syntax=html

Other handy commands

vertical split

:vsp

Navigate vertical split

ctrl-w, l # move right lower case L
ctrl-w, h # move left

Fix fatal error: Python.h: No such file or directory

Do you have this error in your when trying to pip install certain packages? (In my case pycrypto)

fatal error: Python.h: No such file or directory

Fix it by installing Python development libraries.

Ubuntu

sudo apt-get install python2.7-dev

Will probably also work for other versions of python (i.e. python2.X-dev)

Via Alex Sleat

Syndicate content