Applying a Patch from drupal.org in 2 Seconds or Less
I used to apply patches from drupal.org by goeing to the issue page where the patch has been posted, downloading the patch to my desktop (or wherever) and then applying it using
git apply /path/to/file.patch. Today I figured out a better way.
Open your favorite terminal application <cough>iterm2</cough> and cd to the git repository to which you want to apply the patch. Then type this:
curl http://drupal.org/files/file.patch | git apply.
I feel like this is one of those tips that everyone else has known about forever and I'm just now having that aha! moment but in even if that's true, pretty nifty, huh?