Skip to content

Instantly share code, notes, and snippets.

Tom Taylor t0mtaylor

Block or report user

Report or block t0mtaylor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sc.sh
#!/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"
View gist:a22c13adf17f75e6c84c
#build-pipeline-plugin-content {
background-color: none;
border-radius: 0;
}
#build-pipeline-plugin-content h1 {
display: none;
}
tbody.pipelineGroup {
View ZendOpcache + APCu
# 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
@t0mtaylor
t0mtaylor / gist:e9f8188b311328352035
Last active Aug 29, 2015
SSL Secure Ciphers 2014 for Apache 2.4+
View gist:e9f8188b311328352035
<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
View scrubber.php
<?
chdir( dirname ( realpath(__DIR__) ) );
chdir( 'tmp/' );
$days = 0;
$hours = 3;
$root = getcwd()."/cache/";
View foreachloop.js
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!
View disable_pointer_events.js
/**
* 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) {
@t0mtaylor
t0mtaylor / jshint-config.json
Last active Dec 19, 2015 — forked from rtircher/jshint-runner.js
Include external json config file for JSHINT Options, also added XML Checkstyle output for use with CI such as Jenkins - create a task to merge the start and end xml files with the output data from jshint to create your checkstyle report (see comments)
View jshint-config.json
{
"smarttabs" : true,
"-W099" : true
}
You can’t perform that action at this time.