Skip to content

Instantly share code, notes, and snippets.

View srogier's full-sized avatar

Sébastien Rogier srogier

View GitHub Profile
<?php
namespace jubianchi {
class foo {
public function __construct($foo, $bar) {
echo $foo . '-' . $bar;
}
}
}
namespace tests\units\jubianchi {
@ratibus
ratibus / gist:3952552
Created October 25, 2012 13:29
Nettoyage de dépôt Git
# On clone le dépot tout frais pour avoir un fichier pack complet pour l'analyse (c'est + simple)
git clone --mirror ...
# On se déplace dans le répertoire du clone
# On fait l'état des lieux initial
git count-objects -v > count-objects-init.txt
# On exporte le verify-pack (ça prend du temps ça)
git verify-pack -v objects/pack/pack*.idx > verify-pack.txt
@jubianchi
jubianchi / lime.php
Created August 24, 2012 10:49
A tiny hacky loop mode for Lime
#!/usr/bin/env php
<?php
if(count($_SERVER['argv']) === 1 || null === getPath()) {
fwrite(STDOUT, "---> \033[0;31mUsage :\033[0m lime [--quiet] [--no-loop] <path/to/[test_file.php|test_directory]>" . PHP_EOL);
exit(1);
}
function getPath() {
$index = count($_SERVER['argv']) - 1;
@ziadoz
ziadoz / awesome-php.md
Last active July 13, 2024 05:29
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.