This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# script to start/keep iTunes running after mount.sh | |
# call from mount.sh | |
myProcess="/Applications/iTunes.app" | |
# sleep 5 | |
ps ax | grep -v grep | grep -v iTunesHelper | grep $myProcess > /dev/null && exit 0 | |
echo "opening $myProcess" | |
open -g $myProcess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* vim: set expandtab tabstop=4 shiftwidth=4: */ | |
/** | |
* @package Email-Users-Custom-List | |
* @version 1.3 | |
*/ | |
/* | |
Plugin Name: Email Users Custom List | |
Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/email-users-custom-list/ | |
Description: This plugin shows how a custom meta filter can be used in conjunction with the Email Users plugin to address a Custom List of Users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'tribe_ical_properties', 'tribe_ical_outlook_modify', 10, 2 ); | |
function tribe_ical_outlook_modify( $content ) { | |
$properties = preg_split ( '/$\R?^/m', $content ); | |
$searchValue = "X-WR-CALNAME"; | |
$fl_array = preg_grep('/^' . "$searchValue" . '.*/', $properties); | |
$key = array_values($fl_array); | |
$keynum = key($fl_array); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'tribe_events_after_the_title', 'my_category_description' ); | |
function my_category_description() { | |
global $wp_query; | |
if( !isset( $wp_query->query_vars['post_type'] ) or !isset( $wp_query->query_vars['eventDisplay'] ) or !isset( $wp_query->queried_object ) ) return; | |
if( $wp_query->query_vars['post_type'] === 'tribe_events' or $wp_query->query_vars['post_type'][0] === 'tribe_events' and $wp_query->query_vars['eventDisplay'] === 'upcoming' ) | |
echo '<div style="text-align:center;">' . $wp_query->queried_object->description . '</div>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//this belongs in {THEME}/tribe-events/pro/widgets/ | |
/** | |
* Events Pro List Widget Template | |
* This is the template for the output of the events list widget. | |
* All the items are turned on and off through the widget admin. | |
* There is currently no default styling, which is highly needed. | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/widgets/list-widget.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Events List Widget Template | |
* This is the template for the output of the events list widget. | |
* All the items are turned on and off through the widget admin. | |
* There is currently no default styling, which is needed. | |
* | |
* This view contains the filters required to create an effective events list widget view. | |
* | |
* You can recreate an ENTIRELY new events list widget view by doing a template override, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Default Events Template | |
* This file is the basic wrapper template for all the views if 'Default Events Template' | |
* is selected in Events -> Settings -> Template -> Events Template. | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php | |
* | |
* @package TribeEventsCalendar | |
* @since 3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('activated_plugin','save_error'); | |
function save_error(){ | |
update_option('plugin_error', ob_get_contents()); | |
} | |
echo get_option('plugin_error'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function sumobi_edd_downloads_query( $query, $atts ) { | |
global $wp_query; | |
if ( 'insert_page_slug_here' === $wp_query->query_vars['pagename'] ) { | |
$query['meta_key'] = '_tribe_eddticket_for_event'; | |
} | |
return $query; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Admin User Can | |
Plugin URI: https://gist.github.com/afragen/97ac1e349316f51fd40c | |
Author: Andy Fragen | |
Author URI: http://thefragens.com/ | |
Description: A plugin to show that an admin user really can do anything. | |
Version: 0.0.1 | |
License: GNU General Public License v2 | |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |