Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Grace MikeGrace

View GitHub Profile
View keybase.md

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:

View woocommerce-optimize-scripts.php
/**
* 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' ) );
View install-graphite-ubuntu-10.04.sh
####################################
# 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 Aug 18, 2011 — forked from jasonroelofs/setup-statsd.sh
Turn an Ubuntu 10.10 EC2 into a StatsD/Graphite server
View setup-statsd.sh
# 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 Dec 11, 2010
puts focus in desired input boxes on sites that are being lame
View help-me-focus-kynetx-app.krl
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 Dec 4, 2010
GetGlue and OneTrueFan extension conflict resolver
View getglue-onetruefan-play-nice.krl
ruleset a60x459 {
meta {
name "getglue-onetruefan-conflict-resolver"
description <<
getglue-onetruefan-conflict-resolver
>>
author "Mike Grace"
logging on
}
View persistant-trail-kynetx-example.krl
ruleset a60x447 {
meta {
name "persistant-trail-test"
description <<
persistant-trail-test
>>
author "Mike Grace"
logging on
}
View pass-array-from-client-to-kns.krl
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 Nov 30, 2010
Example Twitter addon using KRL, subscribing to the stream_item_clicked event
View twitter-addon-stream-item-clicked.krl
ruleset a60x436 {
meta {
name "example-staf-app"
description <<
example-staf-app
>>
author "Mike Grace"
logging on
}
@MikeGrace
MikeGrace / client-array-to-server.krl
Created Nov 20, 2010
Process client side array in KRL raised to Kynetx app
View client-array-to-server.krl
ruleset a60x426 {
meta {
name "client-side-array-to-server"
description <<
client-side-array-to-server
>>
author "Mike Grace"
logging on
}
You can’t perform that action at this time.