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
| http://www.refulz.com:8082/index.php#tab2?foo=123 | |
| Property Result | |
| ------------------------------------------- | |
| host www.refulz.com:8082 | |
| hostname www.refulz.com | |
| port 8082 | |
| protocol http | |
| pathname index.php |
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
| function show_status($done, $total, $size=30) { | |
| static $start_time; | |
| // if we go over our bound, just ignore it | |
| if($done > $total) return; | |
| if(empty($start_time)) $start_time=time(); | |
| $now = 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
| C:\> netstat -a -b |
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 | |
| date('Y-m-d H:i:s' ,rand(strtotime('now'), strtotime('+ 20 days'))); | |
| date('Y-m-d H:i:s', strtotime( '-'.mt_rand(0,3888000).' seconds')); | |
| date('Y-m-d', strtotime( '+'.mt_rand(0,30).' days')); |
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 vendor/propel/propel1/generator/bin/phing.php -f "vendor/propel/propel1/generator/build.xml" -Dproject.dir=app/config/propel main |
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
| #!/bin/sh | |
| ### gitcam for windows (start) ### | |
| NAME=`date +%Y%m%d%H%M%S` | |
| DIRECTORY="/IMAGES/TARGET/DIRECTORY" | |
| COMMANDCAMDIR="/PATH/TO/COMMANDCAM" | |
| BMP2JPGDIR="/PATH/TO/BMP2PG" | |
| if [ ! -d "$DIRECTORY" ]; then | |
| mkdir $DIRECTORY | |
| fi |
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
| ####################### | |
| # Windows Configuration | |
| Update-ExecutionPolicy Unrestricted | |
| Disable-InternetExplorerESC | |
| Disable-GameBarTips | |
| Disable-BingSearch | |
| Enable-RemoteDesktop | |
| Enable-MicrosoftUpdate |
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
| su -l apache -s /bin/bash |
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 CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;') | |
| FROM INFORMATION_SCHEMA.TABLES | |
| WHERE ENGINE='MyISAM' | |
| AND table_schema = 'mydatabase'; |
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
| mysql> SHOW VARIABLES LIKE "general_log%"; | |
| +------------------+----------------------------+ | |
| | Variable_name | Value | | |
| +------------------+----------------------------+ | |
| | general_log | OFF | | |
| | general_log_file | /var/run/mysqld/mysqld.log | | |
| +------------------+----------------------------+ | |
| mysql> SET GLOBAL general_log = 'ON'; |