knife cookbook site vendor -d ntp
Use chef-solo to launch ntp...
# Setup the prompt so that it shows the current branch when in a git directory. | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
source /usr/local/etc/bash_completion.d/git-prompt.sh | |
function setup_prompts_for_git | |
{ | |
local BLUE="\[\e[0;34m\]" | |
local RED="\[\e[0;31m\]" | |
local YELLOW="\[\e[0;33m\]" | |
local PURPLE="\[\e[0;35m\]" | |
local CLR_RESET="\[\e[0m\]" |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
Start the demo by launching three EC2 instances then tell the audience that this will take about 3 minutes. Also explain that we not only starting the instances we are also bootstrapping it with the Chef client (Easy Peasy)...
./setupDemo.sh
Sample Script
/////// RopeNode.h | |
#import "cocos2d.h" | |
#import "ObjectiveChipmunk.h" | |
struct RopeNodeParticle; | |
@interface RopeNode : CCNode { | |
ChipmunkBody *_body1, *_body2; | |
cpVect _offset1, _offset2; |
def mnemlog(message): | |
import datetime | |
mnemlog = open("/Users/mnem/mnemlog","a+",0) | |
mnemlog.write(str(datetime.datetime.now()) + " " + message + "\n") | |
mnemlog.close() | |
mod = __import__("__builtin__"); | |
mod.mnemlog = mnemlog | |
mnemlog("It has been done") |
# First verify the version of Java being used is not SunJSK. | |
java -version | |
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm | |
# Rename the file downloaded, just to be nice | |
mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm | |
# Install Java |
#!/bin/bash | |
################ | |
# Uncomment if you want the script to always use the scripts | |
# directory as the folder to look through | |
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPOSITORIES=`pwd` | |
IFS=$'\n' |
# Emulate pbcopy and pbpaste for copying to and from the pasteboard/clipboard | |
# | |
# via: http://whereswalden.com/2009/10/23/pbcopy-and-pbpaste-for-linux/ | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' |