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/bash | |
RELEASE_CODE=`lsb_release -a | awk '/Codename/ { print $2 }'` | |
add-apt-repository "deb http://archive.canonical.com/ ${RELEASE_CODE} partner" | |
apt-get update | |
apt-get -y install -qq --no-install-recommends debconf-utils | |
echo "sun-java6-plugin shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections | |
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq sun-java6-jdk |
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
# install juju | |
$ sudo apt-get install juju charm-tools | |
configure your EC2 account... | |
$ juju | |
$ vi .juju/environments.yaml | |
add EC2 access/secret keys |
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
# Generated by juju | |
<% active_backends.each do |server_name, server_info| %> | |
backend <%= server_name %> { | |
.host = "<%= server_info[:address] %>"; | |
.port = "<%= server_info[:port] %>"; | |
} | |
<% end %> | |
director baz round-robin { |
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
# cheetah from the command line... | |
Template file: | |
hawk:~ $ cat junk.file | |
This is a file | |
With a $stupid_variable to expand | |
and maybe a common one like $HOME |
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/bash | |
echo "deploying stack" | |
deploy_ha_mysql() { | |
juju deploy mysql masterdb | |
juju deploy mysql slavedb -n2 | |
juju add-relation masterdb:master slavedb:slave | |
} |
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
# | |
# move the following into lib/state_machine.rb or something? | |
# Also, the state transitions are not really atomic... | |
# works fine for now, but should fix eventually | |
# | |
%w( | |
new | |
validating | |
valid | |
invalid |
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/bash | |
juju_root=$HOME | |
juju_env=${1:-"-ecanonical"} | |
### | |
echo "deploying stack" | |
juju bootstrap $juju_env |
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
# Our .tmux.conf file | |
# Setting the prefix from C-b to C-a | |
# START:prefix | |
set -g prefix C-a | |
set -g prefix2 C-b | |
# END:prefix | |
# Free the original Ctrl-b prefix keybinding | |
# START:unbind | |
unbind C-b |
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/bash | |
# hadoop | |
juju deploy hadoop hadoop-master | |
juju deploy hadoop hadoop-slave -n12 | |
juju add-relation hadoop-master:namenode hadoop-slave:datanode | |
juju add-relation hadoop-master:jobtracker hadoop-slave:tasktracker | |
# instrument hadoop-slave | |
juju deploy ganglia-node |
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'?> | |
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'> | |
<title>Mail Filters</title> | |
<% MAILING_LISTS = [ | |
{ | |
:name => "canonical-com", | |
:pattern => :list, | |
:base_name => "lists.canonical.com", | |
:lists => [ |
OlderNewer