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
{ | |
"require": { | |
"symfony/http-foundation": "2.5.3", | |
"symfony/http-kernel": "2.5.3", | |
"twig/twig": "1.16.0" | |
} | |
} |
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
package main | |
import ( | |
"strconv" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"fmt" | |
"encoding/json" | |
"time" |
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
<IfModule filter_module> | |
<IfVersion >= 2.4> | |
FilterDeclare COMPRESS | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/html|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/html|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/css|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/plain|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/xml|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/x-component|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^application/javascript|" |
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
<global> | |
... | |
<cache> | |
<backend>apc</backend> | |
<prefix>MAGE_</prefix> | |
</cache> | |
... | |
</global> |
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
<global> | |
... | |
<cache> | |
<backend>memcached</backend> | |
<memcached> | |
<servers> | |
<server> | |
<host><![CDATA[127.0.0.1]]></host> | |
<port><![CDATA[11211]]></port> | |
<persistent><![CDATA[1]]></persistent> |
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
apc.max_file_size = 10M | |
apc.shm_size = 128M |
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
$ php test.php |
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
$ php cli.php arg1 arg2 |
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
<?php | |
echo "There are {$argc} passed: ".PHP_EOL; | |
foreach($argv as $k=>$v){ | |
echo "Argument {$k}: {$v}".PHP_EOL; | |
} |
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
$ php test.php < test.txt |
OlderNewer