Generate openssl keys:
openssl req -x509 -nodes -newkey rsa:2048 -keyout mysqldump-key.priv.pem -out mysqldump-key.pub.pem
Create a mysql default file:
# ~/.mysqldump
[mysqldump]
host = host.here.com
Generate openssl keys:
openssl req -x509 -nodes -newkey rsa:2048 -keyout mysqldump-key.priv.pem -out mysqldump-key.pub.pem
Create a mysql default file:
# ~/.mysqldump
[mysqldump]
host = host.here.com
// Based on: http://unscriptable.com/2009/03/20/debouncing-javascript-methods/ | |
function debounce(callback, wait, immediate) { | |
var timeout; | |
return function() { | |
var self = this, | |
args = arguments; | |
if (timeout) { | |
clearTimeout(timeout); | |
} else if (immediate) { | |
callback.apply(self, args); |
// vanilla jQuery.one | |
document.addEventListener("click", function h(e) { | |
// do stuff, then remove listener | |
document.removeEventListener("click", h); | |
}); |
<pre style='font-size: 12px;font-family: monospace;'> | |
{{ dump()| | |
replace({ | |
"=>\n": ":", | |
"[\"": "", | |
"\"]": "" | |
})| | |
replace({ | |
": ": ": " | |
})| |