A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
rsync (Everyone seems to like -z, but it is much slower for me)
| /** | |
| * This casper scipt checks for 404 internal links for a given root url. | |
| * | |
| * Usage: | |
| * | |
| * $ casperjs 404checker.js http://mysite.tld/ | |
| * $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
| */ | |
| /*global URI*/ |
| <?php | |
| protected function execute(InputInterface $input, OutputInterface $output) | |
| { | |
| $progress = $this->getHelperSet()->get('progress'); | |
| $ctx = stream_context_create(array(), array('notification' => function ($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) use ($output, $progress) { | |
| switch ($notification_code) { | |
| case STREAM_NOTIFY_FILE_SIZE_IS: | |
| $progress->start($output, $bytes_max); | |
| break; |
| #!/bin/bash | |
| # Put this file at: .git/hooks/post-checkout | |
| # and make it executable | |
| # You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
| PREV_COMMIT=$1 | |
| POST_COMMIT=$2 | |
| NOCOLOR='\e[0m' |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| <ul class="nav navbar-nav"> | |
| {% set navbar_active = navbar_active|default(null) %} | |
| {% set navbar_menu = navbar_menu|default([ | |
| { | |
| 'show': app.user and is_granted('ROLE_ADMIN'), | |
| 'active': navbar_active == 'design', | |
| 'label': 'Design', | |
| 'href': path('admin_design'), | |
| }, | |
| { |