Installing Supervisor on OS X is simple:
sudo pip install supervisor
This assumes you have pip. If you don't:
| check process rabbitmq-server matching "/usr/lib/erlang/erts-6.2/bin/beam" | |
| group rabbitmq | |
| start program = "/etc/init.d/rabbitmq-server start" | |
| stop program = "/etc/init.d/rabbitmq-server stop" | |
| if failed port 5672 type tcp then restart | |
| if 3 restarts within 3 cycles then timeout |
| <?php | |
| /** | |
| * Plugin Name: WP Minions Post Pusher | |
| * Description: Pushes all published posts to one blog using wp-minions | |
| * Version: 1.0 | |
| * Author: Thorsten ott | |
| * Author URI: http://thorsten-ott.de/ | |
| * License: GPLv2 or later | |
| */ |
| <?php | |
| function compareImages($imagePathA, $imagePathB, $accuracy){ | |
| //load base image | |
| $bim = imagecreatefromjpeg($imagePathA); | |
| //create comparison points | |
| $bimX = imagesx($bim); | |
| $bimY = imagesy($bim); | |
| $pointsX = $accuracy*5; | |
| $pointsY = $accuracy*5; | |
| $sizeX = round($bimX/$pointsX); |
#Installing ngrok on OSX
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory| /** | |
| * Remove the preview step for Job | |
| * @param array $steps | |
| * @return array | |
| */ | |
| if ( !function_exists( 'handyman_custom_submit_job_steps' ) ) { | |
| function handyman_custom_submit_job_steps( $steps ) { | |
| unset( $steps['preview'] ); | |
| return $steps; | |
| } |
| /** | |
| * Allow to remove method for an hook when, it's a class method used and class don't have variable, but you know the class name :) | |
| * @see https://github.com/herewithme/wp-filters-extras | |
| */ | |
| function remove_filters_for_anonymous_class( $hook_name = '', $class_name ='', $method_name = '', $priority = 0 ) { | |
| global $wp_filter; | |
| // Take only filters on right hook name and priority | |
| if ( !isset($wp_filter[$hook_name][$priority]) || !is_array($wp_filter[$hook_name][$priority]) ) | |
| return false; |
| function setup_past_application_nav() { | |
| global $bp; | |
| if ( ! class_exists( 'WP_Job_Manager' ) ) | |
| return; | |
| if ( ! class_exists( 'BP_Job_Manager' ) ) | |
| return; | |
| if ( ! class_exists( 'WP_Job_Manager_Applications' ) ) | |
| return; |
| /** | |
| * Allow to remove method for an hook when, it's a class method used and class don't have variable, but you know the class name :) | |
| */ | |
| function remove_filters_for_anonymous_class( $hook_name = '', $class_name ='', $method_name = '', $priority = 0 ) { | |
| global $wp_filter; | |
| // Take only filters on right hook name and priority | |
| if ( !isset($wp_filter[$hook_name][$priority]) || !is_array($wp_filter[$hook_name][$priority]) ) | |
| return false; | |
| // Loop on filters registered | |
| foreach( (array) $wp_filter[$hook_name][$priority] as $unique_id => $filter_array ) { |