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
services: | |
my.login_listener: | |
class: Setfive\DemoBundle\Listener\LoginListener | |
tags: | |
- { name: kernel.event_listener, event: security.switch_user, method: onSecuritySwitchUser } |
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 | |
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" |
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
$ s3cmd mb s3://setfive-test | |
Bucket 's3://setfive-test/' created |
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
$ s3cmd del s3://setfive-db/tester-1.jpg | |
File s3://setfive-db/tester-1.jpg deleted |
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
$ 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 |
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
$ s3cmd ls | |
2013-03-08 19:45 s3://setfive-db |
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
$grid = $this->getContainer()->get('grid'); | |
$out->writeln(spl_object_hash($grid)); | |
$out->writeln(spl_object_hash($this->getContainer()->get('grid'))); |
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
<?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
$ 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 | |