jtamarelle@ox-dev-php ~/f/lexpress> phpunit tests/Routing/Matcher/ChainMatcherTest.php
PHPUnit 3.7.31 by Sebastian Bergmann.
Configuration read from /space/home/jtamarelle/front/lexpress/phpunit.xml.dist
.E...
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> | |
<title>{% block title %}{% endblock %}</title> | |
{% block head %} | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> | |
{% endblock %} | |
</head> | |
<body> | |
{% block header %}{% endblock %} |
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 | |
/** | |
* Clear APC opcode and user caches on deploy | |
* per directory and prefix. | |
* | |
* Store this file in your default APACHE/NGINX root (/home/www/apcclearcache.php) | |
* Call this file on deployment: | |
* | |
* php /home/www/apcclearcache.php <release_dir> <user_cache_prefix> |
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
$(document).ajaxComplete(function(event, XMLHttpRequest){ | |
var link = XMLHttpRequest.getResponseHeader('x-debug-token-link'); | |
if(link) { | |
$.get(link, function(data){ | |
$('.sf-toolbarreset').remove(); | |
$('body').append(data); | |
}); | |
} |
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
École du tech lead: Conversation autour de la dette technique | |
---- | |
TLDR de Cyrille Deruel @CyrilleDeruel | |
Les 3 phrases sur la dettes | |
- Pas dépuration de la dette sans refactoring et pas de refactoring sans tests automatisés | |
- Normalement tu n'as pas besoin d'aller chercher la dette, c'est la dette qui te trouve | |
- Ta dette tu la gères tous les jours |
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 | |
# Put this file at: .git/hooks/post-checkout | |
# and make it executable | |
# You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
PREV_COMMIT=$1 | |
POST_COMMIT=$2 | |
NOCOLOR='\e[0m' |
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 Security\Encoder; | |
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; | |
/** | |
* Implements symfony1 password encoding | |
* | |
* @see PluginsfGuardUser::checkPasswordByGuard() |
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 | |
function handler ($errno, $errstr, $errfile, $errline) | |
{ | |
echo "<div style=\"background: #ffe13b; color: black; position: fixed; bottom: 0; width: 100%; text-align: center; font-size: 13px; padding: 5px; box-shadow: 0 0 5px black;\">Erreur $errno $errstr in $errfile:$errline | |
</div>"; | |
} | |
set_error_handler('handler'); |
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 | |
/* | |
* This file is part of Satis. | |
* | |
* (c) Jordi Boggiano <j.boggiano@seld.be> | |
* Nils Adermann <naderman@naderman.de> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
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
# This commands to keep in sync a clone of a Git repository | |
ORIGIN=https://github.com/symfony/symfony.git | |
MIRROR=git@gitlab.xxx.com | |
BARE=~/mirror/symfony.git | |
# First clone | |
git clone --bare ${ORIGIN} ${BARE} | |
cd ${BARE} |