Tuesday, August 12, 2014

Install Acrobat Reader in Ubuntu

cd ~/Downloads && wget -c http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb

sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb

For 64 bit, you also need compatibility libs:
sudo apt-get install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libstdc++6:i386

Tuesday, July 22, 2014

Checking Out GitHub PRs

Example .git/config

[remote "upstream"]                                                            
    url = https://github.com/scikit-learn/scikit-learn                         
    fetch = +refs/heads/*:refs/remotes/upstream/*                              
    fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*

Tuesday, July 8, 2014

Saturday, June 7, 2014

Force google-chrome to start new session

This command will force Google Chrome to start a new session, and disables any proxy settings you currently have

google-chrome --user-data-dir=/tmp --no-proxy-server

Thursday, June 5, 2014

Data portals

http://data.gov

SOCKS proxy with firefox about:config and ssh

A simple socks proxy can be made as follows

First, open Firefox and type about:config in the address bar

change the following items

network.proxy.socks localhost
network.proxy.socks_port 4321

network.proxy.type 1
network.proxy.socks_remote_dns true

ssh to your favorite machine with the -D flag
i.e.

ssh -D 4321 root@myserver.com

This will setup a SOCKS proxy to myserver.com and also protect your DNS requests

Links:
http://bityard.blogspot.fr/2009/01/make-openssh-socks-proxy.html

Unmount busy filesystem and find process linux

sudo umount /mntumount: /mnt: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

lsof /mntCOMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bash            19005       user  cwd DIR   8,17        4096         2           /mnt


sudo kill -9 19005