- Create file named git-push-wh with the following content and add it to your path
#!/bin/sh
GIT_DIR_="$(git rev-parse --git-dir)"
BRANCH="$(git rev-parse --symbolic --abbrev-ref $(git symbolic-ref HEAD))"| <?php | |
| add_filter( 'rewrite_rules_array', 'cache_frontend_ajax_rules' ); | |
| /** | |
| * Rewrite rules filter to add rules for front end ajax calls | |
| * | |
| * @param array $rewrite_rules | |
| * | |
| * @return array | |
| */ |
| <?php | |
| /* | |
| Plugin Name: Custom WordPress Avatars | |
| Plugin URI: http://c3mdigital.com | |
| Description: Adds a custom avatar uploader in the user profile to replace gravatars with a custom avatar | |
| Version: 1.0 | |
| Author: Chris Olbekson | |
| Author URI: http://c3mdigital.com/ | |
| License: GPL v2 | |
| */ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <code_scheme name="WordPress"> | |
| <option name="USE_SAME_INDENTS" value="true" /> | |
| <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> | |
| <option name="OTHER_INDENT_OPTIONS"> | |
| <value> | |
| <option name="INDENT_SIZE" value="4" /> | |
| <option name="CONTINUATION_INDENT_SIZE" value="8" /> | |
| <option name="TAB_SIZE" value="4" /> | |
| <option name="USE_TAB_CHARACTER" value="true" /> |
| <?php | |
| /** | |
| * WordPress Chosen Taxonomy Metabox | |
| * Author: Helen Hou-Sandi | |
| * | |
| * Use Chosen for a replacement taxonomy metabox in WordPress | |
| * Useful for taxonomies that aren't changed much on the fly and are | |
| * non-hierarchical in nature, as Chosen is for flat selection only. | |
| * You can always use the taxonomy admin screen to add/edit taxonomy terms. | |
| * Categories need slightly different treatment from the rest in order to |
| <?php | |
| /* Plugin Name: Damn Vulnerable WordPress Plugin | |
| * Description: Intentionally vulnerable plugin for plugin author education | |
| * Version: 0.1 | |
| * Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
| * Author: Jon Cave | |
| * Author URI: http://joncave.co.uk | |
| * License: GPLv2+ | |
| * | |
| * DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
| /** | |
| * Micro Cache Purge PHP Class | |
| * Sends a request header to nginx to purge the microcache when post are created or updated | |
| * Include this file at plugins_loaded or in theme functions.php | |
| */ | |
| new Micro_Cache_Purge(); | |
| class Micro_Cache_Purge { |
| <?php | |
| $args = array( | |
| 'post_type' => array( 'type1', 'type2', 'type3' ), | |
| 'posts_per_page' => -1 | |
| ); | |
| $myquery = new WP_Query( $args ); | |
| $type1 = 0; $type2 = 0; $type3 = 0; $count = 0; | |
| while ( $myquery->have_posts() ) : $myquery->the_post(); |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( |
| #!/bin/bash | |
| # | |
| # provision.sh | |
| # | |
| # This file is specified in Vagrantfile and is loaded by Vagrant as the primary | |
| # provisioning script whenever the commands `vagrant up`, `vagrant provision`, | |
| # or `vagrant reload` are used. It provides all of the default packages and | |
| # configurations included with Varying Vagrant Vagrants. | |
| # By storing the date now, we can calculate the duration of provisioning at the |