git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 | |
| indent_style = space | |
| insert_final_newline = true | |
| max_line_length = 120 | |
| tab_width = 4 | |
| trim_trailing_whitespace = true | |
| ij_continuation_indent_size = 8 |
| svn status --ignore-externals | grep ! | tr -s ' ' | cut -d ' ' -f2 | xargs svn rm |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| openssl genrsa -out private.pem 2048 | |
| openssl rsa -in private.pem -outform PEM -pubout -out public.pem |
| svn status | grep ^\? | cut -c9- | xargs -d \\n rm -r |
| svn diff > ~/my-awesome-diff.diff | |
| patch -p0 < ~/my-awesome-diff.diff |
| find . -name "*.unison.tmp" -delete |
| <?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 |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| $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 ) { |