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
config.project_name = 'sample' | |
config.repo_address = 'http://path/to/repo' | |
def server(): | |
config.fab_hosts = ['{ip address}'] | |
config.path = '/srv/sample' | |
config.fab_user = '{username}' | |
config.virtualhost_path = "configs/" | |
config.group = '{username}' | |
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
<VirtualHost *:80> | |
ServerName assets | |
FileETag none | |
ExpiresActive On | |
ExpiresByType image/x-icon "access plus 1 year" | |
ExpiresByType text/css "access plus 1 year" | |
ExpiresByType application/javascript "access plus 1 year" | |
ExpiresByType image/gif "access plus 1 year" |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'grit' | |
require 'nokogiri' | |
require 'open-uri' | |
# This is a pre-receive git hook designed to be part of a continuous | |
# deployment workflow using the Integrity continuous integration server |
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
#!/usr/bin/env ruby | |
require 'net/http' | |
# This is a post-receive git hook designed to tirgger a build in the | |
# Integrity continuous integration server | |
INTEGRITY = 'http://localhost:9292' | |
PROJECT = 'site' |
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
Feature: AMQP capacity | |
To make sure the rest of the system is in order | |
Our message queues must not be backed up | |
Scenario: Check queue status | |
Given I have a AMQP server on example.com | |
And I want to check on the fork queue | |
Then it should have less than 400 messages | |
Then it should have at least 5 consumers | |
Then it should have less than 50 messages per consumer |
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
Feature: localhost | |
To make sure the rest of the system is in order | |
Our database server should not be overloaded | |
Scenario: check running processes count | |
Given I have a MySQL server on localhost | |
And I use the username root | |
Then it should have less than 10 processes | |
Scenario: check queries per second |
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
<project name="{{ name }}" default="help" basedir="."> | |
<property name="username" value="{{ username }}"/> | |
<property name="host" value="{{ host }}"/> | |
<property name="dir" value="/srv/{{ path }}/"/> | |
<tstamp> | |
<format property="TODAY_UK" pattern="yyyyMMddhhmmss" locale="en,UK"/> | |
</tstamp> |
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
kwargs = {'%s' % foo: 'bar'} | |
MyModel.objects.filter(**kwargs) |
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
Vagrant::Config.run do |config| | |
config.vm.define :web do |web_config| | |
require 'ruby-debug' | |
debugger | |
web_config.vm.box = "lucid32" | |
web_config.vm.forward_port("http", 80, 8080) | |
end | |
config.vm.define :db do |db_config| | |
db_config.vm.box = "lucid32" |
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
data_source "garethr1" localhost |
OlderNewer