Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bryanroth on github.
  • I am broth (https://keybase.io/broth) on keybase.
  • I have a public key ASBCtBu8S7u3PVozpTlC9VDM5d5Bpyp94P6dfs9APwppDgo

To claim this, I am signing this object:

@bryanroth
bryanroth / gist:976516
Created May 17, 2011 14:01
This is a script that copies a MySQL database to another server.
mysqldump -u root -p<password> <database-name> | ssh -p <optional-port-number> <user>@<server-ip-address> mysql -u root -p<password> <database-name>
@bryanroth
bryanroth / gist:645573
Created October 25, 2010 19:35
Closure
var myObject = function () {
var value = 0;
return {
increment: function (inc) {
value += typeof inc === 'number' ? inc : 1;
},
getValue: function () {
return value;
}