Skip to content

Instantly share code, notes, and snippets.

Avatar

Jean-François Lépine Halleck45

View GitHub Profile
@Halleck45
Halleck45 / install-ubuntu.sh
Last active Aug 16, 2018
install-ubuntu.sh
View 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
View youbora1.php
<?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 Sep 11, 2017
Fiche de poste développeur assurance qualité
View rf-profil-dev.md

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 / npm-debug.log
Created Feb 2, 2017
spark-install-error
View npm-debug.log
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 / process.md
Last active Nov 28, 2015
Github migration results
View process.md

## Steps

  • Creation of Halleck45/tmp-migration

  • Creation of README.md with

    # tmp-migration
    fgh
    
View php-grep.sh
#!/bin/bash
# Metrics for PHP
#
# author: Jean-François Lépine
echo "PHPMetrics, by Jean-François Lépine"
echo
View 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() {
@Halleck45
Halleck45 / pick-iframe.html
Created Dec 22, 2014
pick Jenkins monitor table
View pick-iframe.html
<iframe id="frame-monitor" style="display:none; " src="http://jenkins.xxxx.fr/view/Administration/job/Administration%20-%20Monitoring/2/sitemonitor/"></iframe>
<div id="div-monitor"></div>
<script type="text/javascript">
var iframe = document.getElementById('frame-monitor');
iframe.onload = function() {
var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
var table = innerDoc.getElementById('files');
var container = document.getElementById('div-monitor');
container.appendChild (table);
iframe.parentNode.removeChild( iframe );
@Halleck45
Halleck45 / licenses-violations.php
Last active Aug 29, 2015
Check licenses violations
View licenses-violations.php
<?php
// Usage
// composer licenses --format=json > licenses.json
// php analyze.php --file=licenses.json
$options = getopt('', array('file'));
$file = $options['file'];
$json = json_decode(file_get_contents($file));
@Halleck45
Halleck45 / Csrf.php
Created Jul 28, 2014
Minimal protection against CRSF exploit without changing any file
View Csrf.php
<?php
/**
* Class SecurityException
*/
class SecurityException extends Exception {};
/**
* Class Csrf
*