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\Event\GetResponseForExceptionEvent; | |
/** | |
* a vim exception handler | |
* | |
* Commands a remote vim instance to display the stacktrace in a quickfix list | |
* | |
* @author Florian Klein <florian.klein@free.fr> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="video-js/video.js" type="text/javascript" charset="utf-8"></script> | |
<link rel="stylesheet" href="video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8" /> | |
</head> | |
<body> | |
<!-- Begin VideoJS --> | |
<div class="video-js-box"> | |
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody --> |
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
find . -type f -name "*.html.twig" | xargs perl -pi -e "s/>([^\s<{>].*?)</>{{ '\1'|trans }}</g" |
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 | |
$callback = function($data = null) { | |
if (empty($data)) { | |
return new \PropelObjectCollection(); | |
} | |
return $data; | |
}; | |
$builder | |
->appendClientTransformer(new CallbackTransformer($callback, $callback)); |
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
watch -n 3600 'STATUS=`curl -sL -w "%{http_code}\\n" https://mobile.free.fr/souscription/jsCartValidation -o /dev/null`; test $STATUS -ne 502 && mail -s "yahoo" example@example.com' |
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 | |
mkdir -p "$basedir/../etc/$version/conf.d" | |
etcbasedir="`readlink -f "$basedir/../etc/$version"`" | |
configoptions="\ | |
--with-config-file-path=$etcbasedir | |
--with-config-file-scan-dir=$etcbasedir/conf.d | |
--enable-debug \ |
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
./Symfony/Component/Process/Exception/RuntimeException.php | |
./Symfony/Component/Process/Exception/ProcessFailedException.php | |
./Symfony/Component/Serializer/Exception/RuntimeException.php | |
./Symfony/Component/Serializer/Exception/UnsupportedException.php | |
./Symfony/Component/Serializer/Exception/Exception.php | |
./Symfony/Component/Serializer/Exception/UnexpectedValueException.php | |
./Symfony/Component/Serializer/Exception/InvalidArgumentException.php | |
./Symfony/Component/Serializer/Exception/LogicException.php | |
./Symfony/Component/DependencyInjection/Exception/RuntimeException.php |
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 | |
namespace App\Mongo\Repository; | |
use \MongoDB; | |
use \MongoCursor; | |
use \MongoId; | |
use \MongoDate; | |
use \DateTime; | |
use \ArrayIterator; |
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 | |
trait TestTrait | |
{ | |
public function getKernel() | |
{ | |
} | |
} | |
class BaseTest |
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 -ad auto_prepend_file=cli | |
<?php | |
set_time_limit(0); | |
require_once __DIR__.'/autoload.php'; | |
require_once __DIR__.'/AppKernel.php'; | |
Symfony\Component\Debug\Debug::enable(); |