This file contains 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
for dir in apparmor apt ConsoleKit cups dist-upgrade fsck gdm installer news ntpstats samba unattended-upgrades ; do | |
if [ ! -e /var/log/$dir ] ; then | |
mkdir /var/log/$dir | |
fi | |
done |
This file contains 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
tmpfs /var/log tmpfs defaults 0 0 | |
tmpfs /tmp tmpfs defaults 0 0 | |
tmpfs /var/tmp tmpfs defaults 0 0 |
This file contains 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
require 'rubygems' | |
require 'nokogiri' | |
doc = Nokogiri::HTML::Document.new | |
doc.encoding = 'UTF-8' | |
# We added a contextual fragment method for the 1.4.2 release. This *might* | |
# work in 1.4.1. If you want to mess with 1.4.2, build from my github, or | |
# grab one of our nightly builds: | |
# |
This file contains 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
vim .ssh/config | |
Host foo | |
Hostname foo.bar.de | |
User joe | |
--> ssh foo |
This file contains 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
require 'rubygems' | |
require 'wirble' | |
require 'bond' | |
Wirble.init | |
Wirble.colorize | |
Bond.start |
This file contains 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
set keyboard layout to "Germany Dead grave accurate" |
This file contains 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
global setting - edit ~/.Xmodmap and put the following in it: | |
!! No Caps Lock | |
clear lock | |
!! Make Caps_lock an escape key. | |
keycode 0x42 = Escape | |
without global setting: | |
enable during current session: | |
xmodmap -e "clear lock" |
This file contains 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
Find your debian-sys-maint password in /etc/mysql/debian.cnf. | |
Then login to mysql (mysql -u root) and execute | |
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION; | |
Replace <password> with your debian-sys-maint password. |
This file contains 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
123344 |