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] | |
apc.coredump_unmap=0 | |
apc.enable_cli=0 | |
apc.enabled=1 | |
apc.entries_hint=1024 | |
apc.gc_ttl=600 | |
apc.mmap_file_mask=/tmp/apc.XXXXXX | |
apc.preload_path="" | |
apc.rfc1867=0 | |
apc.rfc1867_freq=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
[OPCache] | |
opcache.enable=1 | |
opcache.enable_cli=0 | |
opcache.memory_consumption=128 | |
opcache.interned_strings_buffer=8 | |
opcache.max_accelerated_files=2000 | |
opcache.max_wasted_percentage=5 | |
opcache.use_cwd=1 | |
opcache.validate_timestamps=0 | |
opcache.revalidate_freq=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
curl -v -3 -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"data1": "data1", "data2":"data2"}' https://domain.com/path |
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
30 01 * * * cd /home/username; /bin/bash -l -c -x 'source .bash_profile; path/to/command/command.sh' > /dev/null 2>&1 |
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
/* Sticky footer styles | |
-------------------------------------------------- */ | |
html { | |
position: relative; | |
min-height: 100%; | |
} | |
body { | |
/* Margin bottom by footer height */ | |
margin-bottom: 60px; | |
} |
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
LoadModule ssl_module modules/mod_ssl.so | |
Listen 443 | |
SSLPassPhraseDialog exec:/usr/bin/ssl_passphrase.sh | |
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000) | |
SSLSessionCacheTimeout 300 | |
SSLMutex default | |
SSLRandomSeed startup file:/dev/urandom 256 | |
SSLRandomSeed connect builtin | |
SSLCryptoDevice builtin | |
NameVirtualHost *:443 |
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
find . -type f -print0 | xargs -0 chmod 664 -- add group write permission for files | |
find . -type d -print0 | xargs -0 chmod 775 -- add group write permission for directories |
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 | |
$cache_expire = 60*60*24*365; | |
header("Pragma: public"); | |
header("Cache-Control: max-age=".$cache_expire); | |
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); | |
?> | |
<script type="text/javascript">document.domain = "domain.com";</script> | |
<script src="//connect.facebook.net/en_US/all.js"></script> |
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
$usaStates = array( | |
'' => 'Select State', | |
'AL' => "Alabama", | |
'AK' => "Alaska", | |
'AZ' => "Arizona", | |
'AR' => "Arkansas", | |
'CA' => "California", | |
'CO' => "Colorado", | |
'CT' => "Connecticut", | |
'DE' => "Delaware", |
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
<Directory /> | |
<IfModule mod_deflate.c> | |
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/ | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding | |
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding | |
</IfModule> | |
</IfModule> | |
# Compress all output labeled with one of the following MIME-types |
OlderNewer