Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block reifman

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 w3tc-settings-example.php
return array(
'version' => '',
'cluster.messagebus.debug' => false,
'cluster.messagebus.enabled' => false,
'cluster.messagebus.sns.region' => '',
'cluster.messagebus.sns.api_key' => '',
'cluster.messagebus.sns.api_secret' => '',
'cluster.messagebus.sns.topic_arn' => '',
reifman / Parse query string via javascript
Last active Feb 27, 2017
Javascript to parse query string variables from URL
View Parse query string via javascript
function getQueryVariable(variable) {
var query =;
var vars = query.split("&amp;");
for (var i=0;i&lt;vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
reifman / varnish
Created Jan 28, 2013
Example Varnish configuration file e.g. /etc/default/varnish
View varnish
# Configuration file for varnish
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
# Should we start varnishd at boot? Set to "no" to disable.
# Maximum number of open files (for ulimit -n)
reifman / default.vcl
Last active Feb 22, 2019
Example Varnish VCL Configuration e.g. /etc/varnish/default.vcl
View default.vcl
# Default backend definition. Set this to point to your content server.
backend default {
.host = "";
.port = "8080";
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
.max_connections = 800;
reifman /
Last active Dec 11, 2015
Apache Site Configuration for WordPress e.g. e.g. /etc/apache2/sites-available
<VirtualHost *:8080>
ServerAlias *
DocumentRoot /var/www/your-domain-wordpress-directory-install/
You can’t perform that action at this time.