This file contains hidden or 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
def pattern_link(pattern_name, link_name = nil) | |
pages = sitemap.resources.select{ | page | page.url.start_with?('/patterns/') and page.data.title == pattern_name} | |
if pages.empty? | |
puts "Need to write a pattern for " + pattern_name | |
return '<span class="pending_pattern">' + pattern_name + '</span>' | |
else | |
if pages.length > 1 | |
puts "Warning: more than one pattern page for " + pattern_name | |
end |
This file contains hidden or 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
--- | |
- hosts: all | |
sudo: yes | |
user: ubuntu | |
gather_facts: no | |
connection: ssh | |
tasks: | |
- action: shell sudo aptitude update | |
- apt: name={{ item }} state=installed | |
with_items: |
This file contains hidden or 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
#!/bin/bash | |
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
wget http://bit.ly/aws-ec2id | |
nohup bash aws-ec2id & |
This file contains hidden or 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
#!/bin/bash | |
# Edit /etc/sysconfig/network to change the hostname - keep the 'lmuk.local ending | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm | |
wget http://tmz.fedorapeople.org/repo/puppet/epel/puppet.repo -O /etc/yum.repos.d/puppet.repo | |
yum install -y puppet-2.6.6 | |
yum install -y git | |
easy_install pycrypto==2.3 |
This file contains hidden or 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.box = "lucid32" | |
config.vm.provisioner = :chef_solo | |
config.chef.cookbooks_path = "cookbooks" | |
config.chef.add_recipe("vagrant_main") | |
config.vm.define :web1 do |web_config| |
This file contains hidden or 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.box = "lucid32" | |
config.vm.provisioner = :chef_solo | |
config.chef.cookbooks_path = "cookbooks" | |
config.chef.add_recipe("vagrant_main") | |
#config.vm.forward_port("web", 80, 4567) |
This file contains hidden or 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
(ns com.thoughtworks.loganalysis.loganalysis | |
(:use | |
midje.semi-sweet | |
incanter.core | |
incanter.charts | |
clojure.test | |
clojure.contrib.str-utils | |
[clojure.contrib.duck-streams :only (read-lines)]) | |
(:import org.joda.time.format.DateTimeFormat)) |
This file contains hidden or 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
(ns com.thoughtworks.loganalysis.loganalysis | |
(:use | |
midje.semi-sweet | |
incanter.core | |
incanter.charts | |
clojure.test | |
clojure.contrib.str-utils | |
[clojure.contrib.duck-streams :only (read-lines)]) | |
(:import org.joda.time.format.DateTimeFormat)) |