ActiveRecord reconnect to database
// my Merb consoles drop the db connection after the mysql timeout; I'd rather not reload the whole environment
ActiveRecord::Base.connection.reconnect!
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
ActiveRecord::Base.connection.reconnect!
ssh username@win2000server -i privatekey
query session SESSIONNAME USERNAME ID STATE TYPE DEVICE >console 0 Conn wdcon rdp-tcp 65536 Listen rdpwd rdp-tcp#7 fakeuser 1 Active rdpwd
tsdiscon 1 /v Disconnecting sessionID 1 from sessionname RDP-Tcp#7
$ script/console Loading development environment. >> ..do stuff here.. then modify your model code.. then.. >> Dispatcher.reset_application!