This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker logs nginx 2>&1 | grep "127." | |
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This is v0.6 of the custom script for AlfredApp for iTerm 2.9+ | |
-- Please see https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/ | |
-- for the latest changes. | |
-- Please note, if you store the iTerm binary in any other location than the Applications Folder | |
-- please ensure you update the two locations below (in the format of : rather than / for folder dividers) | |
-- this gets around issues with AppleScript not handling things well if you have two iTerm binaries on your system... which can happen :D | |
on alfred_script(q) | |
if application "iTerm2" is running or application "iTerm" is running then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Base\Doctrine\DBAL; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\DBAL\Driver\Connection as DriverConnection; | |
/** | |
* Connection wrapper sharing the same db handle across multiple requests | |
* | |
* Allows multiple Connection instances to run in the same transaction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo\CoreBundle\Form\EventListener; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormInterface; | |
/** | |
* Changes Form->bind() behavior so that it treats not set values as if they |