Skip to content

Instantly share code, notes, and snippets.

View gMagicScott's full-sized avatar

Scott Lesovic gMagicScott

View GitHub Profile
http://davidfarr.com/click/all-night-graduation-parties.php?email=%$email$%&Name=%$name$%&Company=%$company$%&Workphone=%$workphone$%&Homephone=%$homephone$%&City=%$city$%&field9=%$custom:field9$%&field2=%$custom:field2$%&auto=yes
@gMagicScott
gMagicScott / filename-based-cache-busting.php
Last active December 16, 2015 07:39 — forked from BenSampo/filename-based-cache-busting.php
Bustin' up cache's in WordPress. Doing it H5BP style, and without a build script.
<?php
/**
* Plugin Name: Filename Based Cache Busting
* Plugin URI: https://gist.github.com/gMagicScott/5400268
* Description: Bustin' up cache's in WordPress. Doing it H5BP style, and without a build script.
* Author: Scott Lesovic, forked from Ben Sampo
* Author URI:
* Version: 0.2-dev
*/
@gMagicScott
gMagicScott / vagrant-box-update-all.sh
Last active August 9, 2018 15:40 — forked from thom8/vagrant-box-update-all.sh
Update all your vagrant base boxes
#!/bin/bash
# Find all boxes which have updates
AVAILABLE_UPDATES=`vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2`
if [ ! ${#AVAILABLE_UPDATES[@]} -eq 0 ]; then
for box in $AVAILABLE_UPDATES ; do
echo "Found an update for $box"
<?php
//* Do NOT include the opening php tag
//* Add JS to allow elements to be faux anchors
add_action( 'wp_footer', 'bg_script_clickable' );
function bg_script_clickable() {
echo '<script type="text/javascript">jQuery(document).ready(function($){$(".content .entry").click(function(){window.open($("a",this).attr("href"), "_blank");});});</script>';
}