Code Dump

foreach thought as blah

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Tetrada
  • Toy Store
  • About

Post navigation

← Older posts

Building Growl

Posted on November 13, 2011 by linchear

Like Growl? Too cheap to pay $1.99 for the latest update?

GO HERE

Posted in Uncategorized

Spring JSON @RequestBody

Posted on July 14, 2011 by linchear

What I learned today:

http://forum.springsource.org/showthread.php?85532-HttpMediaTypeNotSupportedException-amp-JSON

 

Spring/Jackson JSON un/marshalling does not work with inner-classes.

Posted in Hax

mysqldump without table locks and single line inserts

Posted on June 16, 2010 by linchear

Since I always forget:

mysqldump  –extended-insert=false –host <host>  –skip-lock-tables -u <user> –password <database> <table> > file.sql

Posted in Code Dump | Tagged mysql

SSH Tunnelling

Posted on June 15, 2010 by linchear

ssh -f user@HOST -L from_port:to_ip:to_port  -N

eg:

ssh -f blah@home.chear.ca -L 8080:192.168.1.1:80  -N

Posted in Uncategorized

Simple MySQL export/import

Posted on February 25, 2010 by linchear

mysql -e 'SELECT * FROM table' > out.txt

load data local infile 'out.txt' into table 'some_table'
Posted in Code Dump | Tagged mysql, SQL

Post navigation

← Older posts

Archives

  • November 2011
  • July 2011
  • June 2010
  • February 2010
  • April 2009
  • March 2009

Meta

  • Log in
Proudly powered by WordPress