Skip to content

Instantly share code, notes, and snippets.

View asgeo1's full-sized avatar

Adam George asgeo1

View GitHub Profile
@asgeo1
asgeo1 / hax0r.vim
Created January 5, 2012 23:54 — forked from scrooloose/hax0r.vim
NERDTree custom mappings to make i and s reuse existing windows
let g:NERDTreeCustomReuseWindows = '1'
call NERDTreeAddKeyMap({
\ 'key': 'w',
\ 'scope': 'all',
\ 'callback': 'NERDTreeCustomToggleReuse',
\ 'quickhelpText': 'Toggle use existing windows' })
function! NERDTreeCustomToggleReuse()
let g:NERDTreeCustomReuseWindows = g:NERDTreeCustomReuseWindows ? 0 : 1

Setup Rails application production environment on Ubuntu

Add deploy user

ssh root@YOURDOMAIN
adduser deploy
# set default editor for visudo to vim 
update-alternatives --set editor /usr/bin/vim.tiny
visudo # Add deploy ALL=(ALL) ALL

Stored format

Qty over Unit price
1** 30
5 20
8 10

Display format

Quantity Unit price (each)