Skip to content

Instantly share code, notes, and snippets.

services:
my.login_listener:
class: Setfive\DemoBundle\Listener\LoginListener
tags:
- { name: kernel.event_listener, event: security.switch_user, method: onSecuritySwitchUser }
#!/bin/bash
SQL_FILE="$(date +%m-%d-%y).sql"
mysqldump -ubackupuser -p'backupuser-password' --all-databases > "$SQL_FILE"
RC = $?
if [[ $RC != 0 ]] ; then
echo "Failure, mysqldump failed to dump"
exit $RC;
fi
gzip "$SQL_FILE"
$ s3cmd mb s3://setfive-test
Bucket 's3://setfive-test/' created
$ s3cmd del s3://setfive-db/tester-1.jpg
File s3://setfive-db/tester-1.jpg deleted
$ s3cmd put tester-1.jpg s3://setfive-db/tester-1.jpg
tester-1.jpg -> s3://setfive-db/tester-1.jpg [1 of 1]
6312 of 6312 100% in 0s 33.98 kB/s done
$ s3cmd ls
2013-03-08 19:45 s3://setfive-db
$grid = $this->getContainer()->get('grid');
$out->writeln(spl_object_hash($grid));
$out->writeln(spl_object_hash($this->getContainer()->get('grid')));
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
$ php app/console cache:clear --env=prod
Clearing the cache for the prod environment with debug true
PHP Fatal error: Cannot redeclare class EnhancedProxy_19abbe87dfe07b1a52563cac33dd823f08c79506\__CG__\Setfive\XXBundle\Controller\AwesomeController in /home/sf/sf/app/cache/pro_/jms_diextra/proxies/Setfive-XXBundle-Controller-AwesomeController.php on line 46