Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mikegrace on github.
  • I am mikegrace (https://keybase.io/mikegrace) on keybase.
  • I have a public key whose fingerprint is 0FED 79F4 D975 E762 665F F937 2B7F 4784 C71F 45E9

To claim this, I am signing this object:

/**
* Optimize WooCommerce Scripts
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages.
*/
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@MikeGrace
MikeGrace / setup-statsd.sh
Created August 18, 2011 22:14 — forked from jasonroelofs/setup-statsd.sh
Turn an Ubuntu 10.10 EC2 into a StatsD/Graphite server
# install git
sudo apt-get update
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
@MikeGrace
MikeGrace / help-me-focus-kynetx-app.krl
Created December 11, 2010 01:47
puts focus in desired input boxes on sites that are being lame
ruleset a60x475 {
meta {
name "help-me-focus"
description <<
puts focus in desired input boxes on sites that are being lame
>>
author "Mike Grace"
logging on
}
@MikeGrace
MikeGrace / getglue-onetruefan-play-nice.krl
Created December 4, 2010 22:37
GetGlue and OneTrueFan extension conflict resolver
ruleset a60x459 {
meta {
name "getglue-onetruefan-conflict-resolver"
description <<
getglue-onetruefan-conflict-resolver
>>
author "Mike Grace"
logging on
}
ruleset a60x447 {
meta {
name "persistant-trail-test"
description <<
persistant-trail-test
>>
author "Mike Grace"
logging on
}
ruleset a60x442 {
meta {
name "array-passing-test"
description <<
array-passing-test
>>
author "Mike Grace"
logging on
}
@MikeGrace
MikeGrace / twitter-addon-stream-item-clicked.krl
Created November 30, 2010 02:53
Example Twitter addon using KRL, subscribing to the stream_item_clicked event
ruleset a60x436 {
meta {
name "example-staf-app"
description <<
example-staf-app
>>
author "Mike Grace"
logging on
}
@MikeGrace
MikeGrace / client-array-to-server.krl
Created November 20, 2010 02:46
Process client side array in KRL raised to Kynetx app
ruleset a60x426 {
meta {
name "client-side-array-to-server"
description <<
client-side-array-to-server
>>
author "Mike Grace"
logging on
}