This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get Rid of WP Version Footprint Throughout Site | |
function ryu_remove_version() { | |
return ''; | |
} | |
add_filter('the_generator', 'ryu_remove_version'); | |
// Remove Footprints and Search Engine Confusion from wp_head Function | |
remove_action('wp_head', 'wlwmanifest_link'); | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wp_generator'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_dump -d top10songs -U shubhu --clean | pg_restore --verbose --clean --no-acl --no-owner -h localhost -U shubhu -d top10songs ../latest.dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function synchronously(tasks){ | |
var i, task, func, | |
promise = $.Deferred().resolve().promise(), // | |
makeRunner = function(func, args){ // | |
return function(){ | |
return func.apply(null, args).promise(); | |
}; | |
}; | |
for (i = 0; i < tasks.length; i++){ | |
task = tasks[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wait(timeout){ | |
var deferred = $.Deferred(); | |
setTimeout(deferred.resolve, timeout); | |
return deferred.promise(); | |
} | |
wait(500).done(function(){ | |
console.log('Timeout fired!'); | |
}); |