Enabling larger uploads in WordPress

To increase the size limit on file uploads in PHP/WordPress, set two PHP config variables inside the <VirtualHost>:

  # ...
   upload_max_filesize 50M
   post_max_size 50M
  # ...

Git checkout previously checked out branch

To quickly switch to your previously checked out branch without explicity naming it, run git checkout -.

$ git branch
* master
$ git checkout fix-header
Switched to branch 'fix-header'
$ git checkout -
Switched to branch 'master'

This was useful to me as I was testing the effects of some undeployed code on master while also checking how things worked on an earlier commit.

To switch branches, all I had to type was Ctrl+P and hit enter. This pulled up git checkout - and I was able to quickly bounce back-and-forth between revisions.