Skip to content

Instantly share code, notes, and snippets.

View tgalopin's full-sized avatar

Titouan Galopin tgalopin

View GitHub Profile

Système – Architecture Client / Serveur

I. Création d'une socket

int socket(int domaine, int type, int protocole)
  • domaine: famille de protocole, méthode d'adressage (AF_INET, AF_UNIX) ;
  • type: type de communication à établir parmi ;
@tgalopin
tgalopin / OptimizedPathMappingRepository.php
Created June 26, 2015 11:57
OptimizedPathMappingRepository.php
<?php
/*
* This file is part of the puli/repository package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@tgalopin
tgalopin / OptmizedPathMappingRepositoryPath.php
Created June 26, 2015 11:58
OptmizedPathMappingRepositoryPath.php
<?php
/*
* This file is part of the puli/repository package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
FFFFFFFFFFFFF................................................. 62 / 767 ( 8%)
.......................EE..................................... 124 / 767 ( 16%)
.............................................................. 186 / 767 ( 24%)
...............................................SSSSSSSSSSSSSSS 248 / 767 ( 32%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 310 / 767 ( 40%)
SSSSSS........................................................ 372 / 767 ( 48%)
.............................................................. 434 / 767 ( 56%)
.............................................................. 496 / 767 ( 64%)
.........F..........................F.F....FFF..F............. 558 / 767 ( 72%)
.............................................................. 620 / 767 ( 80%)
@tgalopin
tgalopin / puli-cli-faliures
Last active August 29, 2015 14:28
puli-cli-faliures
.............................................................. 62 / 227 ( 27%)
.............................................................. 124 / 227 ( 54%)
............FFFFFFFFFFF........F.............................. 186 / 227 ( 81%)
........................................F
Time: 5.9 seconds, Memory: 20.00Mb
There were 13 failures:
1) Puli\Cli\Tests\Handler\PackageCommandHandlerTest::testListPackages
@tgalopin
tgalopin / puli-composer-plugin-failures
Created August 24, 2015 17:04
puli-composer-plugin-failures
.FFSSF.FFFF......FFFFFFF..FF.FFFF.F.FF..FF
Time: 1.66 seconds, Memory: 7.75Mb
There were 25 failures:
1) Puli\ComposerPlugin\Tests\PuliPluginTest::testInstallNewPuliPackages with data set #0 ('post-install-cmd')
Expectation failed for method name is equal to <string:run> when invoked at sequence index 1
Parameter 0 for invocation Puli\ComposerPlugin\PuliRunner::run('package --install "C:/Users/t...poser"') does not match expected value.
Failed asserting that two strings are equal.
@tgalopin
tgalopin / gist:33cd1f54286b7c7f59b5
Created August 24, 2015 17:19
webmozart-console-failures
............................................................ 60 / 1497 ( 4%)
............................................................ 120 / 1497 ( 8%)
............................................................ 180 / 1497 ( 12%)
............................................................ 240 / 1497 ( 16%)
............................................................ 300 / 1497 ( 20%)
............................................................ 360 / 1497 ( 24%)
............................................................ 420 / 1497 ( 28%)
............................................................ 480 / 1497 ( 32%)
............................................................ 540 / 1497 ( 36%)
............................................................ 600 / 1497 ( 40%)
@tgalopin
tgalopin / puli-manager-failures
Created August 24, 2015 18:57
puli-manager-failures
............................................................ 60 / 1400 ( 4%)
............................................................ 120 / 1400 ( 8%)
FF..FFF..................................................... 180 / 1400 ( 12%)
............................................................ 240 / 1400 ( 17%)
............................................................ 300 / 1400 ( 21%)
............................................................ 360 / 1400 ( 25%)
............................................................ 420 / 1400 ( 30%)
.......F.................................................... 480 / 1400 ( 34%)
....................F..................F...F................ 540 / 1400 ( 38%)
................................FFFF........................ 600 / 1400 ( 42%)
@tgalopin
tgalopin / webmozart-key-value-store-failures
Created August 24, 2015 19:01
webmozart-key-value-store-failures
.............................................................. 62 / 516 ( 12%)
.............................................................. 124 / 516 ( 24%)
......................................F....EEEF..F..F..F..FFFE 186 / 516 ( 36%)
F............................................................. 248 / 516 ( 48%)
.........SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 310 / 516 ( 60%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 372 / 516 ( 72%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 434 / 516 ( 84%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 496 / 516 ( 96%)
SSSSSSSSSSSSSSS.....
@tgalopin
tgalopin / puli-test-all-installation.php
Last active August 29, 2015 14:28
puli-test-all-installation
<?php
$repositories = [
'puli/cli',
'puli/composer-plugin',
'puli/discovery',
'puli/manager',
'puli/repository',
'puli/symfony-bridge',
'puli/twig-extension',