## Steps
-
Creation of
Halleck45/tmp-migration
-
Creation of
README.md
with# tmp-migration fgh
## Steps
Creation of Halleck45/tmp-migration
Creation of README.md
with
# tmp-migration
fgh
#!/usr/bin/php -q | |
<?php | |
ini_set('display_errors', 1); | |
function get_memory() { | |
foreach (file('/proc/meminfo') as $ri) { | |
$m[strtok($ri, ':')] = strtok(''); | |
} | |
return 100 - round(($m['MemFree'] + $m['Buffers'] + $m['Cached']) / $m['MemTotal'] * 100); | |
} |
#!/bin/bash | |
## v1.0.6 | |
## this script will gernerate css stats | |
### example output | |
# CSS STATS | |
# ---------- | |
# Floats: 132 |
<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 ); |
<?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)); |
<?php | |
/** | |
* Class SecurityException | |
*/ | |
class SecurityException extends Exception {}; | |
/** | |
* Class Csrf | |
* |
#!/bin/bash | |
# author: Jean-François Lépine | |
# Ruby | |
# ----------------------- | |
curl -L get.rvm.io | bash -s stable | |
source /etc/profile.d/rvm.sh | |
rvm reload | |
rvm install 2.1.0 |
#!/bin/bash | |
# Usage | |
# ./profiler.sh /path/to/phpfile.php arg1 arg2 ... | |
if [ ! -f tracefile-analyser.php ] | |
then | |
echo get tracefile-analyser | |
wget https://raw.github.com/derickr/xdebug/master/contrib/tracefile-analyser.php | |
fi |