- 397g tin of sweetened condensed milk. Don't confuse this with evaporated milk.
- 200ml milk
- 1kg sugar
- A piece of butter around the size of a walnut
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 | |
| ####################################### | |
| # Simple script to add VPN users to your chap-secrets file. For details | |
| # on setting up a VPN on EC2, see: | |
| # | |
| # http://noiseandheat.com/blog/2012/01/vpn-with-amazon-ec2-or-saving-your-phone-from-promiscuity/ | |
| # | |
| # | |
| # (c) Copyright 2011 David Wagner. | |
| # |
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
| # Will generate passwords up to 76 characters long. | |
| # | |
| # Change the 20 at the end to change the length. | |
| dd if=/dev/urandom count=1 2> /dev/null | base64 | sed -ne 2p | cut -c-20 |
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
| #!/usr/bin/env ruby | |
| require "fileutils" | |
| output_folder_name = "_ipad_selection" | |
| output = File.expand_path File.join(Dir.pwd, output_folder_name) | |
| selected = [] | |
| # Gather folders to look at | |
| folders = Dir.glob(%w{*/*.epub */*.pdf}).map {|file| File.dirname file} | |
| folders.delete_if { | item | item.match(/^#{output_folder_name}/)} |
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
| # 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' |
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 | |
| ################ | |
| # 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' |
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
| # 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 |
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 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") |
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
| /////// RopeNode.h | |
| #import "cocos2d.h" | |
| #import "ObjectiveChipmunk.h" | |
| struct RopeNodeParticle; | |
| @interface RopeNode : CCNode { | |
| ChipmunkBody *_body1, *_body2; | |
| cpVect _offset1, _offset2; |
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