Skip to content

Instantly share code, notes, and snippets.

@yieldthought
yieldthought / install-vnc.sh
Created November 11, 2011 11:06
Install VNC
apt-get install metacity
apt-get install tightvncserver
vncserver -geometry 1024x768 :5
set -o vi
alias s="screen -DRe^Xx work"
alias t="screen -DRe^Xx yt"
export DISPLAY=:5
# ...
# my ubuntu .bashrc needed the following section modifying for xterm-256color support:
# set a fancy prompt (non-color, unless we know we "want" color)
export TERM=xterm-256color
@yieldthought
yieldthought / .screenrc
Created November 11, 2011 10:42
My .screenrc
#
# Example of a user's .screenrc file
#
# This is how one can set a reattach password:
# password ODSJQf.4IJN7E # "1234"
# no annoying audible bell, please
vbell on
@yieldthought
yieldthought / install-vim.sh
Created November 11, 2011 10:26
Install Vim
apt-get install mercurial
apt-get build-dep vim
hg clone https://vim.googlecode.com/hg/ vim
cd vim
./configure --enable-rubyinterp --enable-pythoninterp --with-features=big
make
make install
@yieldthought
yieldthought / .vimrc
Created November 11, 2011 09:27
YieldThought's .vimrc
"Set Mapleader
let mapleader = ","
let g:mapleader = ","
"Theme
colo zenburn
"NERDTree
map <Leader>, :NERDTreeToggle<cr>
@yieldthought
yieldthought / gist:1334618
Created November 2, 2011 19:25
screen status line
hardstatus alwayslastline
hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR} (%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}] %{=b C}[ %m/%d %c ]%{W}'