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
backend default { | |
.host = "127.0.0.1"; | |
.port = "80"; | |
.connect_timeout = 600s; | |
.first_byte_timeout = 600s; | |
.between_bytes_timeout = 600s; | |
} | |
acl purge { | |
"localhost"; |
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 | |
/** | |
* @file | |
* local.settings.php (Drupal 6.x) | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |
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
/* | |
* At the end of the settings.php file for drupal add these lines | |
*/ | |
/* | |
* Settings file routing | |
*/ | |
if (file_exists(dirname(__FILE__) . '/local.settings.php')) { | |
include dirname(__FILE__) . '/local.settings.php'; | |
} |
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 | |
$mem = new Memcached("pool"); | |
$mem->setOption(Memcached::OPT_BINARY_PROTOCOL, true); | |
$mem->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT); | |
$mem->setOption(Memcached::OPT_LIBKETAMA_COMPATIBLE, true); | |
$mem->setOption(Memcached::OPT_NO_BLOCK, true); | |
$mem->setOption(Memcached::OPT_SERVER_FAILURE_LIMIT, 1); | |
$mem->setOption(Memcached::OPT_RETRY_TIMEOUT, 30); | |
$mem->setOption(29, 2); |
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
require 'cgi' | |
require 'digest/md5' | |
require 'net/https' | |
require 'uri' | |
module Jekyll | |
class GistTag < Liquid::Tag | |
def initialize(tag_name, text, token) | |
super | |
@text = text |