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 | |
// Based on the hard work of Mitchel Haan | |
// https://haanenterprises.com/2013/04/host-your-own-dynamic-dns-using-php-and-cpanel-apis/ | |
// | |
// usage: | |
// http://username:[email protected]/dyndns.php?hostname=remote&myip=192.168.1.1 | |
// | |
// per the settings below, the above will update the IP remote.example.com to 192.168.1.1 | |
// myip is not required, will default to the remote IP calling the 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
#!/bin/bash | |
# StatusCake Auto IPs | |
# Author: @t0mtaylor, @HKirste | |
# Origin: https://github.com/hkirste/CloudFlare-auto-IPs | |
# Date: 25/10/2016 | |
# Version 0.2 | |
# wget -q https://gist.githubusercontent.com/t0mtaylor/d36d482be8284fb4cc4866eb05d53d97/raw/sc.sh -O sc.sh && chmod +x sc.sh && ./sc.sh | |
TYPE="allow" | |
CRON="/etc/cron.d/sc.cron" | |
LOCATION="/usr/local/sc" |
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
#build-pipeline-plugin-content { | |
background-color: none; | |
border-radius: 0; | |
} | |
#build-pipeline-plugin-content h1 { | |
display: none; | |
} | |
tbody.pipelineGroup { |
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
# http://pecl.php.net/package/APCu | |
# http://pecl.php.net/package/ZendOpcache | |
# Install ZendOpcache | |
sudo pecl install ZendOpcache-beta | |
sudo -i | |
cat > /etc/php5/mods-available/opcache.ini << EOF | |
zend_extension=/usr/lib/php5/20100525/opcache.so | |
opcache.memory_consumption=128 | |
opcache.interned_strings_buffer=8 |
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 mod_fcgid.c> | |
FcgidMaxRequestLen 1073741824 | |
</IfModule> | |
SSLProtocol -SSLv2 -SSLv3 +TLSv1.2 +TLSv1.1 +TLSv1 | |
#+SSLv3 #Disable SSL 3.0, only IE6/XP uses it - POODLE! https://www.openssl.org/~bodo/ssl-poodle.pdf | |
SSLCompression off | |
SSLHonorCipherOrder on | |
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA128:DHE-RSA-AES128-GCM-SHA384:DHE-RSA-AES128-GCM-SHA128:ECDHE-RSA-AES128-SHA384:ECDHE-RSA-AES128-SHA128:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA384:AES128-GCM-SHA128:AES128-SHA128:AES128-SHA128:AES128-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4 |
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
<? | |
chdir( dirname ( realpath(__DIR__) ) ); | |
chdir( 'tmp/' ); | |
$days = 0; | |
$hours = 3; | |
$root = getcwd()."/cache/"; |
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
for (var i = 0; i < allImgs.length; i++) | |
//shorthand | |
for(var i in allImgs) | |
//cache | |
var i, allImgsLen = allImgs.length; | |
for (i = 0; i < allImgsLen i++) | |
//quick reverse << FAST! |
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
/** | |
* Disable and enable event on scroll begin and scroll end. | |
* | |
* Quick tidy, auto for active hover styles, and set in self executing method | |
* Check for addEventListener, don't bother with IE8 and older browsers | |
* Tom Taylor - 03/06/14 - http://tommytaylor.co.uk | |
* | |
* @see http://www.thecssninja.com/javascript/pointer-events-60fps | |
*/ | |
(function(w, d) { |
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
{ | |
"smarttabs" : true, | |
"-W099" : true | |
} |