most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| #!/bin/sh | |
| # ------------------------------------------------------------------------------ | |
| # SOME INFOS : fairly standard (debian) init script. | |
| # Note that node doesn't create a PID file (hence --make-pidfile) | |
| # has to be run in the background (hence --background) | |
| # and NOT as root (hence --chuid) | |
| # | |
| # MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
| # INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
| # INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
| <?php | |
| class sdzDoctrineGenerateMigrationsDiffTask extends sfDoctrineBaseTask | |
| { | |
| /** | |
| * @see sfTask | |
| */ | |
| protected function configure() | |
| { | |
| $this->addOptions(array( |
| <?php | |
| namespace Acme\DemoBundle\Listener; | |
| use Acme\DemoBundle\Security\Authorization\Voter; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\HttpKernel\HttpKernelInterface; | |
| use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
| use Symfony\Component\Security\Core\SecurityContextInterface; | |
| use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
| <?php | |
| namespace FooBar\FooBundle\Security\Authorization\Voter; | |
| use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface; | |
| use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; | |
| use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; | |
| /** | |
| * @author Henrik Bjornskov <[email protected]> |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| <?php | |
| use JMS\DiExtraBundle\Annotation as DI; | |
| use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
| /** @DI\Service */ | |
| class QSAListener | |
| { | |
| private $blacklist; |