This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use the log Luke! | |
less /var/log/apt/term.log | |
# 2014-09-24 | |
# also in: | |
less /var/log/apt/history.log | |
less /var/log/dpkg.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
dpkg -i puppetlabs-release-precise.deb | |
apt-get update | |
apt-get install puppet puppetmaster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modprobe nbd max_part=63 | |
qemu-nbd -c /dev/nbd0 /var/lib/libvirt/images/vm.qcow2 | |
mkdir /tmp/x && mount /dev/nbd0p1 /tmp/x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get -t lenny-backports install -y puppet | |
wget http://apt.puppetlabs.com/puppetlabs-release-squeeze.deb | |
dpkg -i puppetlabs-release-squeeze.deb | |
apt-get update | |
apt-get -t puppetlabs install -y puppet | |
apt-get -y autoremove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crm ra meta ocf:heartbeat:RESOURCE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBoxManage modifyvm "vm" --hostonlyadapter5 vboxnetX | |
VBoxManage modifyvm "vm" --nic5 hostonly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.auth.models import User | |
users = User.objects.all() | |
u = users[0] | |
u.set_password('sergio') | |
u.save() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you have to create a file called /etc/machine-info which should have the following content: | |
PRETTY_HOSTNAME=the device name you want |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl --write-srt --skip-download http://www.youtube.com/watch?v=5hO3MrzPa0A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add-apt-repository ppa:cwchien/gradle | |
apt-get update | |
apt-get install gradle |