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
colorscheme:symfony | |
cs_re:cyan:^\[....-..-.. ..:..:..\] | |
cs_re:blue: .*\.(INFO|NOTICE).* | |
cs_re:red: .*\.(ERROR|CRITICAL).* | |
cs_re:blue: \{[^}]+\} |
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
$login = $client->post("/rest/login", array("Content-Type" => "application/json"), '', array('debug' => true)); | |
$login->setBody("{'username':'stuart.grimshaw','password':'strongpassword'}"); | |
$login->send(); |
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
#!/bin/bash | |
PLATFORM='unknown' | |
UNAMESTR=`uname` | |
XARGS_EXIT=1 | |
if [[ "$UNAMESTR" == 'Linux' ]]; then | |
PLATFORM='linux' | |
XARGS_EXIT=123 | |
elif [[ "$UNAMESTR" == 'FreeBSD' ]]; then | |
PLATFORM='freebsd' |
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
INFO global: Vagrant version: 1.2.2 | |
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/box/plugin.rb | |
INFO manager: Registered plugin: box command | |
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/destroy/plugin.rb | |
INFO manager: Registered plugin: destroy command | |
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/halt/plugin.rb | |
INFO manager: Registered plugin: halt command | |
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/init/plugin.rb | |
INFO manager: Registered plugin: init command | |
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/package/plugin.rb |
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 | |
require_once __DIR__ . '/bootstrap.php.cache'; | |
require_once __DIR__ . '/AppKernel.php'; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; |
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 | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
$bundles = array( |
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
exec {"load-crm-fixtures": | |
command => "mysql -u db_user -ppassword db_name < *.sql", | |
cwd => "${rootDir}/sites/${siteDirectory}/db/crm/fixtures/", | |
path => ['/usr/bin'], | |
require => Exec['clean-crm-db'], | |
logoutput => true | |
} |
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
# Running in folder: /Users/stuart/Projects/lpsite/modules/recurring_payments/tests | |
$ phpunit -c phpunit.xml /Users/stuart/Projects/lpsite/modules/recurring_payments/tests/recurring_payments/RecurringPaymentErrorTest.php | |
-c: phpunit: command not found |
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
YUI.add('fc_cone', function(Y) | |
{ | |
Y.ConeIcon = Y.Base.create("coneIcon", Y.Shape, [Y.Circle], {}, { | |
ATTRS: { | |
radius: { | |
value: 5 | |
}, | |
stroke: { | |
weight: 2, | |
color: '#fff' |
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
" DIRTY! | |
" For some reason, Macvim hangs when trying to insert a new line when editing | |
" mysql & javascript file. | |
" | |
" You can work around that by switching to another filetype that doesn't have | |
" the problem, then back again, hence these two hacks. | |
" | |
augroup mysqlhack | |
au! |