Skip to content

Instantly share code, notes, and snippets.

View getsource's full-sized avatar

Kira Schroder getsource

View GitHub Profile
xError: malformed Unicode character escape sequence
[Break On This Error]
__p+='\n\undefined\undefined<style type="text/css" id="'+
load-s...QogR.js (line 60, col 5)
SyntaxError: malformed Unicode character escape sequence
[Break On This Error]
@getsource
getsource / gist:4341152
Created December 19, 2012 22:33
Broken with PageSpeed.
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 wp-toolbar" lang="en-US">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" class="wp-toolbar" lang="en-US">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Add New Post &lsaquo; Second &#8212; WordPress</title>
@getsource
getsource / gist:4341196
Created December 19, 2012 22:37
Working
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 wp-toolbar" lang="en-US">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" class="wp-toolbar" lang="en-US">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Add New Post &lsaquo; Second &#8212; WordPress</title>
@getsource
getsource / pre-3.5.1-phpunit-single
Created January 24, 2013 20:35
Pre 3.5.1 PHPUnit tests - Single Site
Path: wordpress
URL: http://core.svn.wordpress.org/branches/3.5
Repository Root: http://core.svn.wordpress.org
Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revision: 23343
Node Kind: directory
Schedule: normal
Last Changed Author: nacin
Last Changed Rev: 23343
Last Changed Date: 2013-01-24 12:14:49 -0800 (Thu, 24 Jan 2013)
@getsource
getsource / secretplace.php
Created January 31, 2013 23:06
Make your dashboard your secret place.
<?php
/*
Plugin Name: Secret Place
Plugin URI: http://github.com/getsource
Description: Make your dashboard your secret place.
Author: Mike Schroder and Jason Cosper
Version: 0.1
Author URI: http://www.getsource.net/
*/
<?php
/*
Plugin Name: Bad Plugin
Plugin URI: http://github.com/wp-cli/wp-cli
Description: Creates a difficult to search-replace option
Author: Mike Schroder
Version: 0.1
Author URI: http://www.getsource.net/
*/
@getsource
getsource / heartbeat-comments.php
Last active December 21, 2015 05:08
Heartbeat Sample plugin
<?php
/*
Plugin Name: Heartbeat Comment Update
Description: Updates Comment Count on Dashboard with Heartbeat.
Author: Andrew Ozz, Mike Schroder
Version: 0.2
Author URI: http://www.getsource.net
*/
add_filter( 'heartbeat_received', 'wc_heartbeat_comment_count', 10, 3 );
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 14">
<link id=Main-File rel=Main-File
* Install VirtualBox
* Install Vagrant
* Copy VVV.zip to Local HD
* Pass Drive on
* Decompress ZIP, and from new VVV Folder:
* `vagrant box add ubuntu/trusty64 contributor.box`
* `vagrant plugin install vagrant-hostsupdater`