Instantly share code, notes, and snippets.

View MajorityValues.php
<?php
$a = 1;
$b = 10;
$c = 100;
$d = 1000;
$v[] = '0000000';
View waitForSql.sh
#!/usr/bin/env bash
slowFortune() {
/usr/games/fortune -l > ./fortune && while ! sqlIsListening && read line; do echo $line; sleep 1 ; done < ./fortune
printf "\n~ fin...? ~\n\n"
}
sqlIsListening() {
return `lsof -i | grep LISTEN | grep -qs sqlservr; echo $?`
}
View phanalyze.sh
#!/usr/bin/env bash
time /web/ee2/vendor/bin/phan -y 10 -q -j 4 | tee /dev/tty | wc -l