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
{ | |
"phabricator.uri" : "/url/to/phabricator/instance", | |
"load" : [ | |
"../path/to/below/phabricator/module" | |
], | |
"lint.engine" : "PreCommitLintEngine" | |
} |
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
mysql -u $user -p$password -h $host -NBe "SHOW TABLE STATUS;" $db | while read name engine version rowformat rows avgrowlength datalength maxdatalength indexlength datafree autoincrement createtime updatetime checktime collation checksum createoptions comment ; do | |
if [ "$datafree" -gt 0 ] ; then | |
fragmentation=$(($datafree * 100 / $datalength)) | |
echo "$database.$name is $fragmentation% fragmented." | |
fi | |
done |