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
#!/bin/bash | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get install -qy curl git-core lsb-release chef | |
mkdir ~/cookbooks | |
cd ~/cookbooks | |
echo '*~' > .gitignore | |
git init | |
git add . | |
git commit -am 'Initial commit' |
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
#!/bin/bash | |
mkdir -p ~/.dotfiles | |
git clone git://git.grml.org/grml-etc-core.git ~/.dotfiles/grml-etc-core | |
cd ~/.dotfiles/grml-etc-core | |
export LAST_RELEASE=$(git describe) | |
git checkout $LAST_RELEASE | |
ln -sf ~/.dotfiles/grml-etc-core/etc/grml/screenrc_generic ~/.screenrc | |
ln -sf ~/.dotfiles/grml-etc-core/etc/vim/vimrc ~/.vimrc | |
ln -sf ~/.dotfiles/grml-etc-core/etc/zsh/zshrc ~/.zshrc | |
touch ~/.zshrc.local |
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
(defun macosx-p() | |
(string= "darwin" system-type)) | |
(when (macosx-p) | |
(setq mac-option-key-is-meta nil) | |
(setq mac-command-key-is-meta t) | |
(setq mac-command-modifier 'meta) | |
(setq mac-option-modifier nil) | |
(set-default-font "Menlo-Regular-14") | |
(blink-cursor-mode 1) |
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
require 'irb/completion' | |
require 'irb/ext/save-history' | |
require 'pp' | |
# Load the readline module. | |
IRB.conf[:USE_READLINE] = true | |
# Remove the annoying irb(main):001:0 and replace with >> | |
IRB.conf[:PROMPT_MODE] = :SIMPLE |
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
playrar () { unrar p -inul $* | mplayer -noidx -cache 30000 - } | |
alias spindown="sdparm --flexible --command=stop" | |
alias diff2html="pygmentize -f html -O full,style=emacs -l diff" | |
alias wdiff2html="pygmentize -f html -O full,style=emacs -l wdiff" |
NewerOlder