- reset \033[0
Text Colors
# Track changes from a GIT repository as snapshots into SVN | |
SVN_REPOS=<svn_repos> | |
GIT_REPOS=<git_repos> | |
GIT_BRANCH=<branch> | |
git svn clone $SVN_REPOS repos | |
cd repos | |
git remote add origin $GIT_REPOS | |
git fetch origin |
function refreshIframeHeight(id) { | |
parent.window.document.getElementById(id).height = document.body.offsetHeight ; | |
} |
{ | |
"name": "jerometamarelle/redirect", | |
"require": { | |
"silex/silex": "dev-master" | |
}, | |
"authors": [ | |
{ | |
"name": "Jérôme Tamarelle", | |
"email": "jerome@tamarelle.net" | |
} |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD* 150,000 ns 0.15 ms |
# 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} |
<?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. |
<?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'); |
<?php | |
namespace Security\Encoder; | |
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; | |
/** | |
* Implements symfony1 password encoding | |
* | |
* @see PluginsfGuardUser::checkPasswordByGuard() |