This file contains hidden or 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
mp4tomov() { | |
FILENAME=$(basename -- "${1}") | |
FILE_EXTENSION="${FILENAME##*.}" | |
FILENAME_ONLY="${FILENAME%.*}" | |
FILENAME_OUTPUT="${2}${FILENAME_ONLY}.mov" | |
if [ ! -d "${2}" ]; then | |
echo "Second parameter must be a directory" | |
return |
This file contains hidden or 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 | |
/* Lots of code */ | |
$full_command_path = $base_path.' api:generate:all-place-images '.$sub_dir->getBasename(). ' --worker'; | |
$Command = new Process($full_command_path); | |
$Command->run(); | |
$output->write('Uploading place '.$sub_dir->getBasename(). ''); |
This file contains hidden or 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 | |
namespace ChefsClub\ApiBundle\Component\Doctrine\DQL; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\AST\InputParameter; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\Parser; | |
use Doctrine\ORM\Query\SqlWalker; |
This file contains hidden or 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 | |
namespace ChefsClub\ApiBundle\Entity; | |
use ChefsClub\ApiBundle\Security\Exception\ActiveTokenNotFoundException; | |
use Doctrine\ORM\EntityRepository; | |
use Exception; | |
/** | |
* TokenRepository |