Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Halleck45's full-sized avatar

Jean-François Lépine Halleck45

View GitHub Profile
@Halleck45
Halleck45 / cache-composer.php
Last active February 24, 2020 14:14
This tool generate local cache of your dependencies and install satis server to use it
#!/usr/bin/php
<?php
$cacheDestination = isset($argv[1]) ?$argv[1] : null;
$satisDestination = isset($argv[2]) ?$argv[2] : null;
$composerFile = 'server-satis.json';
if (in_array($cacheDestination, array('--help', null))) {
die(sprintf('Accelerator for composer
This tool generate local cache of your dependencies,
@Halleck45
Halleck45 / install-ubuntu.sh
Last active August 16, 2018 09:16
install-ubuntu.sh
#!/bin/bash
function pause(){
read -p "$*"
}
# Common packages
sudo apt-get install -y vim wget git nodejs npm curl php terminator
# IDE
wget https://download.jetbrains.com/webide/PhpStorm-2017.3.2.tar.gz -O phpstorm.tar.gz
@Halleck45
Halleck45 / youbora1.php
Created September 12, 2017 08:19
Youbora support
<?php
// This file concerns Youbora support
$secretKey = 'mysecret';
$system = 'system'
$url = '/quality/top?system='.$system.'&timezone=Europe/Paris&type=&asc=true&orderBy=plays&startDate=&endDate=';
$expirationTime = round(microtime(true) * 1000) + 1800000;
$preurl = $url . "&dateToken=".$expirationTime;
@Halleck45
Halleck45 / rf-profil-dev.md
Last active September 11, 2017 13:24
Fiche de poste développeur assurance qualité

Nous recherchons un développeur web pour aider notre équipe qualité dans son travail quotidien et l’accompagner dans le développements de solutions spécifiques.

Mission :

  • Développements d’outils et de solutions spécifiques pour l’équipe assurance qualité
  • Aider et conseiller les équipes d’industrialisation
  • Aider et accompagner les équipes de développement (PHP, NodeJs, Android et IOS)

Environnent technique :

@Halleck45
Halleck45 / travis-jenkins-docker.sh
Created May 28, 2014 14:57
.travis.yml avec Jenkins et Docker
#!/bin/bash
EXIT_STATUS=0
echo "#!/bin/bash" > ./docker-travis-test.sh
cat .travis.yml | shyaml get-values before_script >> ./docker-travis-test.sh
cat .travis.yml | shyaml get-values script >> ./docker-travis-test.sh
PHP_VERSIONS=`cat .travis.yml | shyaml get-values php`
for PHP_VERSION in $PHP_VERSIONS
@Halleck45
Halleck45 / npm-debug.log
Created February 2, 2017 15:06
spark-install-error
04:01:07 /var/www$ cat /var/www/spark/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'dev' ]
2 info using npm@2.15.1
3 info using node@v0.12.15
4 verbose node symlink /usr/bin/node
5 verbose run-script [ 'predev', 'dev', 'postdev' ]
6 info predev @
7 info dev @
8 verbose unsafe-perm in lifecycle true
@Halleck45
Halleck45 / phing-audit.xml
Created September 27, 2012 14:34
Mini audit de code avec phing
<?xml version="1.0" ?>
<project name="audit" basedir="." default="audit">
<property name="style" value="ZEND" />
<property name="test" value="${source}/../test" />
<property name="test-bootstrap" value="" />
<target name="prepare">
<mkdir dir="${out}" />
</target>
@Halleck45
Halleck45 / php-grep.sh
Created November 25, 2015 15:20
php-grep.sh
#!/bin/bash
# Metrics for PHP
#
# author: Jean-François Lépine
echo "PHPMetrics, by Jean-François Lépine"
echo
@Halleck45
Halleck45 / behat.yml
Created July 30, 2013 14:01
ex de config behat
default:
paths:
features: ../src/Hal/Manage/Crm/UiApi/Features/
bootstrap: %behat.paths.features%/Context
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.manage
@Halleck45
Halleck45 / phpmetrics.js
Last active December 1, 2015 12:29 — forked from devosc/phpmetrics.js
//http://slimerjs.org/
var page = require('webpage').create();
page.viewportSize = { width:1280, height:800 };
page.open('http://localhost/phpmetrics.html')
.then(function(){
window.setTimeout(function() {