This file contains 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
<?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> |
This file contains 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
#!/bin/bash | |
## v1.0.6 | |
## this script will gernerate css stats | |
### example output | |
# CSS STATS | |
# ---------- | |
# Floats: 132 |
This file contains 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
#!/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); | |
} |
This file contains 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
#!/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, |
This file contains 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
default: | |
paths: | |
features: ../src/Hal/Manage/Crm/UiApi/Features/ | |
bootstrap: %behat.paths.features%/Context | |
extensions: | |
Behat\MinkExtension\Extension: | |
base_url: http://dev.manage |
This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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 SecurityException | |
*/ | |
class SecurityException extends Exception {}; | |
/** | |
* Class Csrf | |
* |
This file contains 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 | |
// 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)); |
OlderNewer