Friday, August 29, 2014

perl -c equivalent in python

You actually need to compile the file like in:
python -m py_compile toto.py

Wednesday, August 6, 2014

Mavericks: mount network drive at startup

  1. Go to System Preferences > Users & Groups
  2. Push "Login Items" tabbed button
  3. Drag the network drive from desktop into the "Login Items" list (e.g. Public here)
Finally, drag the network drive from desktop into the Finder left pane to make it available from Finder.

Friday, August 1, 2014

CentOS: yum hangs on "Loading mirror speeds from cached hostfile"

> sudo yum install cpan
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...
Disable this behavior with:
> vi /etc/yum/pluginconf.d/fastestmirror.conf
enable=0