Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am pau on github.
  • I am pau (https://keybase.io/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:

View nginx-luameter-demo.md
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
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
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
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
pau / build-run-salt.sh
Created Jul 16, 2012
Building and Running Salt
View build-run-salt.sh
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 http://download.zeromq.org/zeromq-2.2.0.tar.gz
(salt-dev)vagrant@lucid32$ tar xzvf zeromq-2.2.0.tar.gz
@pau
pau / install-vbox-vagrant.sh
Created Jul 16, 2012
Installing Virtual Box and Vagrant
View install-vbox-vagrant.sh
$ cd /tmp
$ wget http://download.virtualbox.org/virtualbox/4.1.18/virtualbox-4.1_4.1.18-78361~Ubuntu~precise_amd64.deb
$ sudo dpkg -i virtualbox-4.1_4.1.18-78361~Ubuntu~precise_amd64.deb
$ wget http://files.vagrantup.com/packages/eb590aa3d936ac71cbf9c64cf207f148ddfc000a/vagrant_1.0.3_x86_64.deb
$ sudo dpkg -i vagrant_1.0.3_x86_64.deb
$ sudo ln -s /opt/vagrant/bin/vagrant /usr/local/bin/
$ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
@pau
pau / pip-upgrade-all.sh
Created Jul 9, 2012
Upgrade All PyPI Packages
View pip-upgrade-all.sh
# 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
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