Skip to content

Instantly share code, notes, and snippets.

Robert McFrazier rmcfrazier

Block or report user

Report or block rmcfrazier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View notes on oozie setup
sudo tar xzf apache-maven-3.0.5-bin.tar.gz -C /usr/local
cd /usr/local
sudo ln -s apache-maven-3.0.5 maven
mkdir libext
cd libext
export DSE_LIB=/usr/share/dse
rmcfrazier / pending_review_notifier.php
Created Jul 21, 2012
Use this class to create a plugin that will send an email when a post goes into pending review status. It should be noted that auto-save has to be turned off, if not multiple emails will be sent. The class handles turning off auto-save.
View pending_review_notifier.php
class PendingReviewNotifier
private $_email_sent_flag = false;
public function run()
// add notification action to save_post hook
add_action('save_post', array(&$this, 'send_pending_review_notice'));
// add disable autosave hook
rmcfrazier / rsync.xml
Created Jul 3, 2012
Ant builder to rsync on save in eclipse
View rsync.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="Rsync On Save" basedir="." default="rsync">
<description>Builder for eclipse to rsync on save for OSX.</description>
<!-- local source directory for rsync (read from this directory) -->
<property name="rsync.source.dir" value="${basedir}"/>
<!-- remote rsync host -->
<property name="" value=""/>
You can’t perform that action at this time.