Skip to content

Instantly share code, notes, and snippets.

Shubhendu shubhendusaurabh

Block or report user

Report or block shubhendusaurabh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
shubhendusaurabh / wordpress.php
Created Jan 28, 2017
wordpress helpful functions
View wordpress.php
// 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');
shubhendusaurabh / pg
Created Jun 27, 2015
Clean and import postgres
View pg
pg_dump -d top10songs -U shubhu --clean | pg_restore --verbose --clean --no-acl --no-owner -h localhost -U shubhu -d top10songs ../latest.dump
View synchronous
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];
shubhendusaurabh / gist:0286d7059b5bfb971e02
Created Jan 12, 2015
A Replacement for the setTimeout Function
View gist:0286d7059b5bfb971e02
function wait(timeout){
var deferred = $.Deferred();
setTimeout(deferred.resolve, timeout);
return deferred.promise();
console.log('Timeout fired!');
You can’t perform that action at this time.