Skip to content

Instantly share code, notes, and snippets.

michaelcurry /
Created Sep 29, 2016
RFC Template [Markdown]

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

View gist:2b5050a4ef3aa6d1b77d
Verifying that +kernelcurry is my openname (Bitcoin username).
michaelcurry / gist:90cf637f0f72118d8e8a
Created Sep 24, 2014
Change WordPress URL MySQL Query
View gist:90cf637f0f72118d8e8a
SET @oldsite='';
SET @newsite='';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);

Keybase proof

I hereby claim:

  • I am michaelcurry on github.
  • I am michaelcurry ( on keybase.
  • I have a public key whose fingerprint is E0BC 49E5 0BA7 404D 4DB2 7246 1571 A4CD FC45 0C22

To claim this, I am signing this object:

michaelcurry / hello_dolly_oop.php
Last active Jan 3, 2017
This is an object-oriented sample Wordpress plugin. Blog Post:
View hello_dolly_oop.php
* @package Hello_Dolly_OOP
* @version 0.1
Plugin Name: Hello Dolly OOP
Plugin URI:
Description: This plugin is an object oriented version of Matt Mullenweg's Hello Dolly plugin.
Version: 0.1
michaelcurry / mirrorAttack.js
Last active Dec 28, 2015
Include to mirror a web page. jQuery not required. Happy trolling.
View mirrorAttack.js
* Mirror Attack JS
* Twitter: @KernelCurry
* @link
* Include to mirror a web page. jQuery not required. Happy trolling.
michaelcurry / csv to array with key as header
Last active Dec 18, 2015
Simple CSV to array function. if Header == NULL then the first row will be the header.
View csv to array with key as header
* @link
function csv_to_array($filename, $delimiter = ',', $header = NULL){
$array = array();
$rows = file($filename);
foreach($rows as $line) {
$tmp = str_getcsv($line, $delimiter);
if( ! $header ) {
$header = $tmp;
michaelcurry / jQuery Diagonal Grid Fill
Last active Dec 11, 2015
jQuery Diagonal Grid Fill Algorithm used to slide animations and menus. This code is NOT commented right now, but will be edited in the future.
View jQuery Diagonal Grid Fill
<script src=""></script>
width: 600px;