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/sh | |
EXITCODE=0; | |
for file in `find . -path ./vendor -prune -o -name "*.php"` | |
do | |
RESULTS=`php -l $file` | |
if [ "$RESULTS" != "No syntax errors detected in $file" ] | |
then | |
EXITCODE=1; |
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 | |
DATE=$(date +"%Y-%m-%d"); | |
TIME=$(date +"%I.%M.%S"); | |
AMPM=$(date +"%p"); | |
FILENAME=Paste\ $DATE\ at\ $TIME\ $AMPM.txt; | |
# You can export you DROPBOX_USER_ID in your .bash_profile | |
# or hardcode it here by replacing YOURDROPBOXUSERID | |
DB_USER_ID=${DROPBOX_USER_ID-YOURDROPBOXUSERID}; |
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 | |
DATE=$(date +"%Y-%m-%d"); | |
TIME=$(date +"%I.%M.%S"); | |
AMPM=$(date +"%p"); | |
FILENAME=Screen\ shot\ $DATE\ at\ $TIME\ $AMPM.png; | |
# You can export you DROPBOX_USER_ID in your .profile | |
# or hardcode it here by replacing YOURDROPBOXUSERID | |
DB_USER_ID=${DROPBOX_USER_ID-YOURDROPBOXUSERID}; |
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 | |
// Acme/DemoBundle/Twig/Extension/DateTimeTimeZone.php | |
namespace Acme\DemoBundle\Twig\Extension; | |
use Symfony\Component\Security\Core\SecurityContext; | |
use Acme\DemoBundle\Document\User as User; | |
class DateTimeTimeZone extends \Twig_Extension |
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 | |
/** | |
* backupTask provides a method to dump your database to Amazon's S3 for a symfony application. | |
* The S3 php class used: http://undesigned.org.za/2007/10/22/amazon-s3-php-class | |
* | |
* @author Jason Bouffard | |
*/ | |
class backupTask extends sfBaseTask |