- Ubuntu 12.04 64bit server with 16GB RAM
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
diff --git a/examples/dns-all.yml b/examples/dns-all.yml | |
index d7c27e6..1e614ec 100644 | |
--- a/examples/dns-all.yml | |
+++ b/examples/dns-all.yml | |
@@ -1,10 +1,10 @@ | |
--- | |
name: cf-services-contrib | |
-director_uuid: DIRECTOR_UUID # CHANGE | |
+director_uuid: 4dcab38b-3939-4d13-f3ad-dbb38c7b5c939 # CHANGE |
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
sudo apt-get -y install build-essential libreadline-dev libssl-dev zlib1g-dev git | |
git clone http://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
exec $SHELL -l | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install 1.9.3-p484 | |
rbenv global 1.9.3-p484 |
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
--- | |
properties: | |
domain: vcap.me | |
networks: | |
apps: default | |
management: default | |
nats: | |
user: nats |
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 'fileutils' | |
require 'pathname' | |
def ensure_relative_gitdir() | |
%x{git ls-files --error-unmatch --stage}.split("\n").each do |line| | |
value = line.split(" ") | |
if value[0] == "160000" | |
FileUtils.cd(value[3]) do |
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
with Ada.Text_IO; use Ada.Text_IO; | |
procedure Array_Test is | |
From_Array : array (1 .. 3) of Integer; | |
To_Array : array (1 .. 3) of Integer; | |
begin | |
From_Array := (1, 2, 3); | |
To_Array := From_Array; | |
From_Array := (others => 0); |
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
#!/bin/sh | |
cat <EOF >> /etc/bind/named.conf.local | |
zone "vcap.me" IN { | |
type master; file "vcap.me.zone"; allow-update { none; }; | |
}; | |
EOF | |
cat <EOF > /etc/bind/db/vcap.me.zone | |
$TTL 86400@ IN SOA localhost root ( | |
1 ; serial (d. adams) |
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
class PropertyChain | |
def initialize(value) | |
@value = value | |
end | |
def method_missing(action, *args) | |
if @value.key?(action) | |
PropertyChain.new(@value[action]) | |
else | |
nil | |
end |