- reset \033[0
Text Colors
# Find the process ID | |
ps -ax | grep Safari | |
# Pause the process | |
kill -STOP 1234 | |
# Resume the process | |
kill -CONT 1234 |
<?php | |
/* | |
* $Id: Mssql.php 5804 2009-06-02 19:52:42Z jwage $ | |
* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
<?php | |
/** | |
* Simple autoloader that follow the PHP Standards Recommendation #0 (PSR-0) | |
* @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md for more informations. | |
* | |
* Code inspired from the SplClassLoader RFC | |
* @see https://wiki.php.net/rfc/splclassloader#example_implementation | |
*/ | |
spl_autoload_register(function($className) { |
# 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. |