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
# Configuration file for varnish | |
# | |
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this | |
# shell script fragment. | |
# | |
# Maximum number of open files (for ulimit -n) | |
NFILES=131072 | |
# Locked shared memory (for ulimit -l) |
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
# https://www.varnish-cache.org/trac/wiki/LoadBalancing | |
backend server1 { | |
.host = "localhost"; | |
.port = "8080"; | |
.first_byte_timeout = 300s; | |
.connect_timeout = 300s; | |
.between_bytes_timeout = 300s; | |
# http://www.lullabot.com/articles/varnish-multiple-web-servers-drupal for status.php | |
.probe = { .url = "/status.php"; .interval = 15s; .timeout = 5s; .window = 8;.threshold = 3; } | |
} |
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
# https://www.varnish-cache.org/lists/pipermail/varnish-misc/2011-March/020182.html | |
/* A backend that will always fail. */ | |
backend failapp { | |
.host = "127.0.0.1"; | |
.port = "9000"; | |
.probe = { | |
.url = "/hello/"; | |
.interval = 12h; | |
.timeout = 1s; | |
.window = 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
<?php | |
abstract class BaseTest extends PHPUnit_Extensions_SeleniumTestCase { | |
protected $autoStop = FALSE; | |
protected function setUp() { | |
$this->setBrowserUrl('http://www.example.com'); | |
} | |
/** |
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 | |
class ColorTest extends BaseTest { | |
/** | |
* @test | |
*/ | |
public function links() { | |
$this->init(); | |
// Test links | |
$this->assertEquals("Link Text", $this->getText("xpath=//div[@id='exampleId']/h2/a")); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Example Test Suite" default="build"> | |
<property environment="env"/> | |
<target name="build" depends="prepare,phpunit,stop-selenium" /> | |
<target name="clean" description="Cleanup build artifacts"> | |
<delete dir="${basedir}/build/logs" /> | |
</target> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit> | |
<testsuites> | |
<testsuite name="Example Selenium Test Suite"> | |
<directory>Selenium1Tests</directory> | |
</testsuite> | |
</testsuites> | |
<selenium> | |
<browser name="Firefox on Linux" browser="*firefox /usr/lib/firefox/firefox" | |
host="localhost" port="4444" timeout="30000" /> |
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 | |
* example drush commands. | |
*/ | |
/** | |
* Implementation of hook_drush_command(). | |
* |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description>Simple Selenium Driver</description> | |
<logRotator> | |
<daysToKeep>-1</daysToKeep> | |
<numToKeep>10</numToKeep> | |
<artifactDaysToKeep>-1</artifactDaysToKeep> | |
<artifactNumToKeep>-1</artifactNumToKeep> | |
</logRotator> |
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
/** | |
* Implements hook_url_outbound_alter(). | |
*/ | |
function MODULE_url_outbound_alter(&$path, &$options, $original_path) { | |
preg_match('@^search/(.+)@', $path, $matches); | |
// Only tack on a color nid facet if there isn't one already selected. | |
if (FALSE === strpos($matches[1],'/')) { | |
// The alias path will be the letter 'c' | |
$path .= '/c/' . color_selector($_COOKIE['color']); | |
} |
OlderNewer