Skip to content

Instantly share code, notes, and snippets.

@peteroyle
peteroyle / Boxgrinder Log
Created June 27, 2011 23:26
Centos 5 JEOS Config
# Logfile created on Mon Jun 27 01:15:29 -0400 2011 by logger.rb/22285
D, [2011-06-27T01:15:29.938660 #891] DEBUG -- : Launching new BoxGrinder build...
T, [2011-06-27T01:15:29.940555 #891] TRACE -- : Used configuration: --- !map:BoxGrinder::Config
:file: /root/.boxgrinder/config
:force: false
:platform_config: {}
:log_level: :info
:delivery_config: {}
@peteroyle
peteroyle / boxgrinder.log
Created June 28, 2011 00:35
Boxgrinder Trace Building CentOS 5 in Micro AMI, LIBGUESTFS_MEMSIZE=300
D, [2011-06-27T20:22:18.002567 #11811] DEBUG -- : Launching new build...
T, [2011-06-27T20:22:18.041218 #11811] TRACE -- : Used configuration: --- !map:BoxGrinder::Config
:file: /root/.boxgrinder/config
:force: false
:platform_config: {}
:log_level: :info
:delivery_config: {}
:additional_plugins: []
@peteroyle
peteroyle / boxgrinder.log
Created June 28, 2011 00:53
Boxgrinder Trace Building CentOS 5 in Micro AMI, LIBGUESTFS_MEMSIZE=200
D, [2011-06-27T20:36:31.186312 #12764] DEBUG -- : Launching new build...
T, [2011-06-27T20:36:31.226962 #12764] TRACE -- : Used configuration: --- !map:BoxGrinder::Config
:file: /root/.boxgrinder/config
:force: false
:platform_config: {}
:log_level: :info
:delivery_config: {}
:additional_plugins: []
@peteroyle
peteroyle / boxgrinder.log
Created June 28, 2011 01:52
CentOS 5 Jeos from BG nightly on Micro AMI in Singapore (AMI: boxgrinder-meta/fedora/15/1.6/x86_64 (ami-c8671f9a))
# Logfile created on Mon Jun 27 21:21:26 -0400 2011 by logger.rb/22285
D, [2011-06-27T21:21:26.810527 #869] DEBUG -- : Launching new build...
T, [2011-06-27T21:21:26.850591 #869] TRACE -- : Used configuration: --- !map:BoxGrinder::Config
:file: /root/.boxgrinder/config
:force: true
:platform_config: {}
:log_level: :info
:delivery_config: {}
name: dev_java
summary: Tools for developing Java apps
appliances:
- dev_common
- java_common
files:
"/opt":
- "http://apache.mirror.aussiehq.net.au//maven/binaries/apache-maven-3.0.3-bin.tar.gz"
- "http://bit.ly/pYsNJV"
packages:
D, [2011-09-07T08:28:01.489667 #20442] DEBUG -- : Loading os plugins...
D, [2011-09-07T08:28:01.490619 #20442] DEBUG -- : We have 4 os plugin(s) registered
D, [2011-09-07T08:28:01.491476 #20442] DEBUG -- : - centos plugin for CentOS.
D, [2011-09-07T08:28:01.492418 #20442] DEBUG -- : - rhel plugin for Red Hat Enterprise Linux.
D, [2011-09-07T08:28:01.493452 #20442] DEBUG -- : - sl plugin for Scientific Linux.
D, [2011-09-07T08:28:01.494406 #20442] DEBUG -- : - fedora plugin for Fedora.
D, [2011-09-07T08:28:01.495450 #20442] DEBUG -- : Plugins loaded.
D, [2011-09-07T08:28:01.496466 #20442] DEBUG -- : Loading platform plugins...
D, [2011-09-07T08:28:01.497424 #20442] DEBUG -- : We have 3 platform plugin(s) registered
D, [2011-09-07T08:28:01.498449 #20442] DEBUG -- : - virtualbox plugin for VirtualBox.
@peteroyle
peteroyle / BundledHelpersTest.java
Created September 8, 2011 23:22
Approach for bundeling string helpers into templates in Seam Render
public class BundledHelpersTest {
@Test
public void testStringUtils() throws Exception {
testBundledHelper("TheInpu...", "@{render.abbreviate('TheInputString', 10)}");
testBundledHelper("...putSt...", "@{render.abbreviate('TheInputString', 5, 11)}");
testBundledHelper("TheInputString", "@{render.capitalize('TheInputString')}");
testBundledHelper(" TheInputString ", "@{render.center('TheInputString', 20)}");
testBundledHelper("TheInputString", "@{render.defaultString('TheInputString', 'BlahBlah')}");
testBundledHelper("BlahBlah", "@{render.defaultString('', 'BlahBlah')}");
@peteroyle
peteroyle / myapp_app
Created December 20, 2011 02:56
Boxgrinder Embedded Ordering Samples
name: myapp_app
summary: Common configuration for running the C-Rex platform (just the application host)
post:
base:
- "echo ---- Creating home directory structures"
- "mkdir -p /home/myapp/stuff"
- "echo ---- Installing application and setting permissions"
- "chown -R myapp:myapp /home/myapp"
@peteroyle
peteroyle / Main
Created February 16, 2012 23:10
Rotating Sun In Codea
-- CircleMask class courtesy of Simeon (http://twolivesleft.com/Codea/Talk/profile/3/Simeon)
-- Use this function to perform your initial setup
function setup()
    print("Hello World!")
    -- params: width, sides in mesh, texture detail, image resolution, rotation speed
    sun = Sun(WIDTH*0.5, 128, 580, 52, 0.4)
end
-- This function gets called once every frame
@peteroyle
peteroyle / Noise Works
Created April 12, 2012 11:53
Noise Works Codea Project
--# CircleMask
CircleMask = class()
function CircleMask:init(rad, sides)
-- you can accept and set parameters here
self.mesh = mesh()
local verts = {}