brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
<?php | |
/** | |
* Post-order traversal of the dom starting at given node. Remove any | |
* nodes that have no children and no attributes. Nodes named in the | |
* AMP_Rule_Spec::node_types_to_allow_empty array will not be removed. | |
*/ | |
private function remove_empty_descendants( $node ) { | |
$stack = array(); | |
$next_traversal = 'child'; | |
$nodes_to_remove = array(); |
pushd `dirname $0` > /dev/null | |
SCRIPT_DIR=`pwd` | |
popd > /dev/null |
for file in /dir/* | |
do | |
# command | |
done |
$args = array( | |
'posts_per_page' => 1, | |
'order' => 'ASC', | |
'post_mime_type' => 'image', | |
'post_parent' => $post_id, | |
'post_status' => null, | |
'post_type' => 'attachment', | |
); | |
$attachments = get_children( $args ); | |
foreach( $attachments as $attachment ) { |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
<?php | |
/** | |
* @package Jetpack_Test | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Jetpack Test | |
Description: Allows certain Jetpack modules that would otherwise require a connection to WordPress.com to be run in a local development environment. | |
Author: Del Putnam |
find . -name "*.unison.tmp" -delete |
svn diff > ~/my-awesome-diff.diff | |
patch -p0 < ~/my-awesome-diff.diff |
svn status | grep ^\? | cut -c9- | xargs -d \\n rm -r |
openssl genrsa -out private.pem 2048 | |
openssl rsa -in private.pem -outform PEM -pubout -out public.pem |