peteshadbolt.co.uk

OS & GUI

Pretty much endlessly using these:

Text editing

Vim with as few plugins as possible. Ctrl-P, NeoSnippet and NeoComplete. Colorscheme is a tweaked version of “jellybeans”.

Vim must be built from source to link with Python, Lua, Ruby etc. Here’s the recipe:

# Install dependencies
apt-get -y install libncurses5-dev python-dev libperl-dev ruby-dev lua5.2 lua5.2-dev liblua5.2-dev

# Download vim source
wget https://github.com/vim/vim/archive/v8.0.0688.tar.gz
tar xzvf v8.0.0688.tar.gz
cd vim-8.0.0688

# Configure the build
./configure                   \
    --prefix=/usr             \
    --enable-luainterp=yes    \
    --enable-perlinterp=yes   \
    --enable-pythoninterp=yes \
    --enable-rubyinterp=yes   \
    --enable-cscope           \
    --disable-netbeans        \
    --enable-multibyte        \
    --enable-largefile        \
    --enable-gui=no           \
    --with-features=huge      \

# Make and install
make install

Webservers

Every time:

This tutorial is decent.

Push-to-deploy post-receive hook:

#!/bin/sh
GIT_WORK_TREE=/home/www/flask_project git checkout -f

Misc

~/.ssh/config entries are hella useful:

Host example
    User example
    IdentitiesOnly yes
    Hostname example.com
    IdentityFile ~/.ssh/id_rsa.pub

Then ssh example or ssh user@example.