Nowadays, tools like rbenv or nvm manipulate your shell environment to provide specific versions of ruby, node, etc. If you add several of those scripts to your .bashrc or .zshrc it takes to long to spawn a new shell, at least for my taste.

The following functions can be added instead and initialize the environments only when the specific commands are invoced for the first time.

# for rbenv
function rbenv {
    echo "~~~ init rbenv ~~~"
    unset -f rbenv

    export PATH=$HOME/.rbenv/bin:$PATH
    eval "$(rbenv init -)"

    rbenv $@

# for nvm
function nvm {
    echo "~~~ init nvm ~~~"
    unset -f nvm

    export NVM_DIR="$HOME/.nvm"
    [ -s "/usr/local/opt/nvm/" ] && . "/usr/local/opt/nvm/"

    nvm $@

# for miniconda (using zsh)
function conda {
    echo "~~~ init conda ~~~"
    unset -f conda
    eval "$(conda shell.zsh hook)"

    conda $@


This is partially based on

First install Debian, preferably including System Tools and SSH, but without desktop environment. After installation install a minimal X server:

apt-get install xserver-xorg-core xinit
dpkg-reconfigure x11-common # and allow Anybody

Disable grubs timeout by setting GRUB_TIMEOUT=0 in /etc/default/grub. After that run update-grub.

If you have an Nvidia GPU, install the proprietary Nvidia drivers. For that, add contrib non-free to the following lines in /etc/apt/sources.list.

deb wheezy main contrib non-free
deb-src wheezy main contrib non-free

and install the driver:

apt-get install nvidia-kernel-dkms nvidia-xconfig

(Answer Yes in the dialogs.)

Reboot the machine.

Install xbmc and alsa:

apt-get install xbmc xbmc-standalone alsa-utils

Create a user for XBMC and add it to some groups:

useradd -m -c xbmc –s /bin/bash xbmc 
usermod -aG audio,disk,video xbmc

Create /home/xbmc/.xinitrc with the following content

exec /usr/bin/xbmc –standalone

Make it executable:

chmod +x /home/xbmc/.xinitrc

Edit /etc/rc.local and add:

su -c "/usr/bin/startx" xbmc

For HDMI audio a few more tweaks need to be done. Use aplay -l to find out the card and the device of your sound card (in my case 0 and 3). Then, edit /usr/share/alsa/alsa.conf for

defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 3

Reboot the machine again. That shoult be it.


Creating a single-color error tile for leaflet is quite simple using imagemagick. First create an empty white tile:

convert -size 256x256 xc:white error.png

Then change the white to the color you want:

convert error.png -fill '#606' -opaque white error.png


This is a list of the plugins for Sublime Text 2, which I commonly use:

First you need to install Package Control. Then you can install the packages by hitting ctrl-shift-p and typing Package Controll: Install or editing Preferences -> Package Settings -> Package Control -> Settings - User for:


into your Package Control.sublime-settings file.


Damit ich nicht immer nachschauen muss:


  • 250 g Nudeln
  • 150 g gekochter Schinken
  • 150 g geriebener Käse (Gouda)
  • 1 Bund Radieschen
  • 1/2 Gurke
  • 1 Bund Schnittlauch
  • 1 Bund Dill
  • 3 EL Mayo
  • 3 EL Weissweinessig
  • 3 EL Sonnenblumenöl
  • 3 EL Joghurt


  1. Nudeln kochen. Zutaten kleinschneiden.
  2. Soße aus Mayo, Essig, Joghurt und Öl zubereiten und mit Pfeffer und Salz würzen.
  3. Alles vermengen.