Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am pau on github.
  • I am pau ( on keybase.
  • I have a public key whose fingerprint is C16B 4E06 3873 E32B 7548 53C7 B043 EAF0 F80F 0269

To claim this, I am signing this object:

root@nginx-luameter-demo:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.2 LTS
Release:	14.04
Codename:	trusty
View gist:ef1d11056daf47254a8f
# apt-get install jq moreutils
cat file.json | jq . | sponge file.json
pau / gist:08871c0540113b5e0508
Last active Aug 29, 2015
Amazon mp3 Download and Play on Linux
View gist:08871c0540113b5e0508
* Buy mp3 and download *.amz file.
* Install clamz to download mp3 files in clamz.
* Play files using nvlc.
pau / gist:c7c868617ad5e3b16463
Created Apr 11, 2015
Clone Virtualbox New MAC Address Issue
View gist:c7c868617ad5e3b16463
sudo rm /etc/udev/rules.d/70-persistent-net.rules
pau / gist:243ff09d8092ed0dc6e1
Created Apr 11, 2015
Ubuntu 12.04 Fresh Install Hash Sum Error
View gist:243ff09d8092ed0dc6e1
sudo rm /var/lib/apt/lists/*
pau /
Created Jul 16, 2012
Building and Running Salt
vagrant@lucid32$ cd ~
vagrant@lucid32$ mkdir virtualenvs
vagrant@lucid32$ cd virtualenvs
vagrant@lucid32$ virtualenv salt-dev
vagrant@lucid32$ . salt-dev/bin/activate
(salt-dev)vagrant@lucid32$ cd ~
(salt-dev)vagrant@lucid32$ sudo aptitude install swig g++ python-dev uuid-dev make
(salt-dev)vagrant@lucid32$ wget
(salt-dev)vagrant@lucid32$ tar xzvf zeromq-2.2.0.tar.gz
pau /
Created Jul 16, 2012
Installing Virtual Box and Vagrant
$ cd /tmp
$ wget
$ sudo dpkg -i virtualbox-4.1_4.1.18-78361~Ubuntu~precise_amd64.deb
$ wget
$ sudo dpkg -i vagrant_1.0.3_x86_64.deb
$ sudo ln -s /opt/vagrant/bin/vagrant /usr/local/bin/
$ vagrant box add lucid32
pau /
Created Jul 9, 2012
Upgrade All PyPI Packages
# pip freeze to list packages
# grep -v '\-e' to exclude packages in edit mode
# cut -d= -f1 to get the package name only
# xargs pip install -U to upgrade all packages
$ pip freeze | grep -v '\-e' | cut -d= -f1 | xargs pip install -U
pau / gist:1148444
Created Aug 16, 2011
Ubuntu 10.04 LTS 64-bit Flash Install
View gist:1148444
sudo add-apt-repository ppa:sevenmachines/flash && sudo apt-get update && sudo apt-get install flashplugin64-installer