Keybase proof
I hereby claim:
- I am tizzo on github.
- I am tizzo (https://keybase.io/tizzo) on keybase.
- I have a public key whose fingerprint is 4F62 22CB B58A B0D2 FAA3 C9F9 AB76 7A52 8616 8F6F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env node | |
var prettyjson = require('prettyjson'); | |
var someDataStructure = { | |
firstLevelA: { | |
secondLevel1: { | |
thirdLevelA: 'foo', | |
thirdLevelB: [] | |
} |
node_modules | |
*.sw* |
var http = require('http'); | |
var exec = require("child_process").exec; | |
http.createServer(function (req, res) { | |
var duration = req.url.substr(1); | |
exec("sleep " + duration, function (error, stdout, stderr) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('I have slept for ' + duration + ' seconds!\n'); | |
}); | |
).listen(1337, "192.168.56.136"); |
VERSION=`VBoxManage -v | sed 's/\(.*\)r\([0-9]*\)/\1/'` | |
if [ $RELEASE = "precise" ]; then | |
TEMPLATE="ubuntu-12.04.1-server-i386" | |
fi | |
if [ $RELEASE = "lucid" ]; then | |
TEMPLATE="ubuntu-10.04.4-server-i386" | |
fi | |
BOX_NAME="$RELEASE-vbox-$VERSION" | |
BOX_PATH="boxes/$RELEASE-vbox-$VERSION.box" | |
if [ `VBoxManage list runningvms | grep -c $BOX_NAME` -eq 1 ]; then |
console.log 'started' | |
options = | |
viewportSize: | |
width: 1900 | |
height: 1000 | |
snapshot = (width, height, path)-> | |
clip = | |
top: 0 |
file { '/some/path': | |
ensure => 'file', | |
}-> | |
service { 'some-service': | |
ensure => 'running', | |
enable => true, | |
} |
A sample implementation.
The code is still being pupulated.
node_modules |
node_modules |