Skip to content

Instantly share code, notes, and snippets.

View AbhishekGhosh's full-sized avatar
🔒
Happy

Abhishek Ghosh AbhishekGhosh

🔒
Happy
View GitHub Profile
@AbhishekGhosh
AbhishekGhosh / wpms_blogid.php
Created January 13, 2015 17:31
WordPress Multisite ID Plugin
<?php
// must be placed under wp-content/mu-plugins/
// GNU GPL 3.0 Licence
// Digital Ocean created it, but WordPress is not their father's property
// hence DMCA safe harbour exists
// if they files DMCA, we will file a simple civil case for abusing law from Bombay High Court
// for abusing the Power of Law
// hence Github can not delete
// hence you should kiss me
// hence you might get hacked if you are not sure what it is
@AbhishekGhosh
AbhishekGhosh / Google-Sitelinks-JSON-LD.php
Created November 3, 2014 17:15
Google-Sitelinks-JSON-LD for AdSense
@mbostock
mbostock / .block
Last active March 17, 2021 18:54
Wilson’s Algorithm II
license: gpl-3.0
@kloon
kloon / deploy.sh
Last active December 4, 2020 14:05
Github to WordPress.org plugin repo deploy
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="camptix-payfast-gateway"
CURRENTDIR=`pwd`
MAINFILE="camptix-payfast.php" # this should be the name of your main php file in the wordpress plugin
# git config
.avatar:hover{
border-radius: 50% 50% 50% 50%;
transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-webkit-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-moz-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-o-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-ms-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
}
// How To Make Rounded Avatars http://wp.me/p1lTu0-9VQ
.avatar {
@thefuxia
thefuxia / defer-cf7-scripts.php
Last active March 21, 2021 20:59
Plugin: Defer Contact Form 7 Scripts
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Defer Contact Form 7 Scripts
* Description: Adds <code>defer='defer'</code> to enqueued javascripts.
* Version: 1.0
* Required: 3.3
* Author: Fuxia Scholz
* Author URI: https://fuxia.me
* License: GPL
* License URI: http://www.gnu.org/copyleft/gpl.html