This file contains hidden or 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 | |
if (!function_exists('\bcmul')) { | |
printf("PHP bc module is needed\n"); | |
exit; | |
} | |
if (!isset($argv[1])) { | |
printf("Usage: %s file\n", $argv[0]); | |
exit; |
This file contains hidden or 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 | |
// Configuration start | |
$gdocUrl = 'https://docs.google.com/spreadsheets/d/DOCUMENT_ID_HERE/export?format=csv'; | |
$numbers = [ | |
'Name 1' => 'number 1', | |
'...' => '...', | |
'Name n' => 'number n', | |
]; |
This file contains hidden or 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
Journée des droits des femmes : un 8 mars revendicatif pour l’égalité salariale | |
Pour la première fois, féministes et syndicats appellent à la grève mercredi à 15 h 40. | |
LE MONDE | 07.03.2017 à 17h52 • Mis à jour le 08.03.2017 à 08h59 | Par Gaëlle Dupont | |
« On en a marre des mots, on veut des actions. » Les propos de Raphaëlle Rémy-Leleu, porte-parole d’Osez le féminisme (OLF), résument bien la tonalité nouvelle de la prochaine Journée internationale des droits des femmes, le 8 mars. Pour la première fois, trois syndicats (CGT, FSU, Solidaires), de nombreuses associations féministes et des organisations étudiantes appellent à la grève, mercredi à 15 h 40. « Ce 8 mars est totalement inédit, affirme Suzy Rojtman, porte-parole du Collectif national pour les droits des femmes (CNDF). Nous voulons lui redonner son caractère revendicatif originel. » | |
L’égalité des salaires et des carrières est la principale exigence. « Les femmes de France sont toujours payées 26 % de moins que les hommes. C’est comme si elles arrêta |
This file contains hidden or 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
11. L’Antelope Canyon dans l’Arizona, Etats-Unis | |
12. « Cliff Of Moher », Irlande | |
22. Les chutes d’Athabasca dans la province d’Alberta, Canada | |
28. Les plages paradisiaques de l’île de La Digue, Seychelles | |
35. Les chutes Victoria, Zimbabwe | |
41. Le Grand Canyon, Arizona, Etats-Unis (d'ailleurs sur la photo c'est Horseshoe Bend, qui est bien plus loin !) | |
45. La balançoire « Au Bout du Monde » à Banos, Equateur (je n'ai pas fait cette balançoire mais je suis bien allé à Banos) | |
52. Cascade dans le parc du Yosemite en Californie, Etats-Unis | |
53. Hvitserkur, Iceland | |
74. Toscane, Italie |
This file contains hidden or 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
# Récupération des committers | |
$ svn log --xml svn_repository | grep author | sort -u | sed 's/.*>\(.*\)<.*/\1/g' | |
Mise en forme pour créer un fichier users.txt avec le format suivant : | |
schacon = Scott Chacon <[email protected]> | |
# On clone le dépôt SVN avec Git | |
$ git svn clone http://srv-tux1/svn/urgbox/site --authors-file=../authors.txt --no-metadata -s dpu |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
var sfWebDebugdbCategory = function () { | |
return { | |
init: function (categoriesPatterns) { | |
if (!$("#sfWebDebugdbDetails")) { | |
return ; | |
} | |
var categoryInfos = {}; | |
var sqlInfosRegexp = /time: (.*) sec/; |
This file contains hidden or 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
I only needed notification in one long running task with multiple sfTasks called inside. | |
So I added a 'notify' option and put the following code in the beginning of my execute() method : | |
if ($options['notify']) | |
{ | |
try | |
{ | |
$fs = new sfFilesystem(); | |
$fs->execute('which notify-send'); |
This file contains hidden or 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 | |
class sfSearchTask extends sfCommandApplicationTask | |
{ | |
/** | |
* @see sfTask | |
*/ | |
protected function configure() | |
{ | |
$this->addArguments(array( |