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)
Verifying that +kernelcurry is my openname (Bitcoin username). https://onename.com/kernelcurry |
SET @oldsite='http://oldsite.com'; | |
SET @newsite='http://newsite.com'; | |
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); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* @package Hello_Dolly_OOP | |
* @version 0.1 | |
*/ | |
/* | |
Plugin Name: Hello Dolly OOP | |
Plugin URI: http://kernelcurry.com/blog/object-oriented-wordpress-plugin | |
Description: This plugin is an object oriented version of Matt Mullenweg's Hello Dolly plugin. | |
Version: 0.1 |
/*! | |
* Mirror Attack JS | |
* Twitter: @KernelCurry | |
* http://www.kernelcurry.com | |
* @link https://gist.github.com/michaelcurry/7576007 | |
* | |
* Include to mirror a web page. jQuery not required. Happy trolling. | |
* | |
*/ |
/** | |
* @link https://gist.github.com/michaelcurry/5855818 | |
*/ | |
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; |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<style> | |
body{ | |
padding:0; | |
margin:0; | |
} | |
.screen{ | |
width: 600px; |