Tuesday, January 19, 2010

mysqldump to comma delimited file

mysqldump -u username --password=pass -h hostip -t -T./ dbname tablename --fields-enclosed-by=\" --fields-terminated-by=,

Sunday, January 17, 2010

syntax reminder on how to send mail from the command line

I always forget the params for this stuff

mail -s "subject" -c "person.to.cc.to@blah.com another.person.to.cc.to@blah.com" person.for.to.address@blah.com < /path/to/message/contents/text/file.txt

Sunday, January 03, 2010

page up down in vi in mac os terminal

Move up or down in “vi” from Mac OS X terminal:

Then CTRL-B and CTRL-F should do the trick.

.vimrc settings

These are my current vim settings

let mysyntaxfile = "/Users/jessesanford/.vim/go.vim"
syntax on
set nu
set ai
set tabstop=4
set ruler
set laststatus=2
set showmode
set expandtab
let loaded_matchparen=1