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 | |
for ($x = 1; $x <= 5; $x++) { | |
echo "The value of x is: " . $x . "\n"; | |
} |
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
curl -I -H 'Accept-Encoding: gzip,deflate' http://www.example.com |
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
# Enable gzip compression in nginx (Ref: http://kb.odin.com/en/122628) | |
# Add this to /etc/nginx/conf.d/gzip.conf: | |
gzip on; | |
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml; | |
gzip_vary on; | |
# Or dial it up a bit: | |
gzip on; |
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
# How to install the hhvm package using yum on CentOS 6.6 with Plesk 11.5 | |
# Note that you can also install hhvm from source. For that check the official guides here: | |
# https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-CentOS-6.6#13-install-ocaml | |
cd /etc/yum.repos.d | |
sudo wget http://www.hop5.in/yum/el6/hop5.repo | |
yum clean all |