Skip to content

Instantly share code, notes, and snippets.

@thinkspill
thinkspill / MajorityValues.php
Last active July 11, 2018 21:03
Calculates Majority Values
<?php
$a = 1;
$b = 10;
$c = 100;
$d = 1000;
$v[] = '0000000';
#!/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 $?`
}
@thinkspill
thinkspill / phanalyze.sh
Last active December 14, 2016 21:45
Shortcut to running phan on a subdirectory of php files
#!/usr/bin/env bash
time /web/ee2/vendor/bin/phan -y 10 -q -j 4 | tee /dev/tty | wc -l