Skip to content

Instantly share code, notes, and snippets.

View tizzo's full-sized avatar
💭
:shipit: 🚀 📦

Howard Tyson tizzo

💭
:shipit: 🚀 📦
View GitHub Profile
@tizzo
tizzo / keybase.md
Created October 8, 2014 14:54
keybase.md

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:

@tizzo
tizzo / example.js
Created November 12, 2014 03:55
Node.js Enable/disable colors based on process.itTTY
#! /usr/bin/env node
var prettyjson = require('prettyjson');
var someDataStructure = {
firstLevelA: {
secondLevel1: {
thirdLevelA: 'foo',
thirdLevelB: []
}
@tizzo
tizzo / .gitignore
Last active August 29, 2015 14:27
Node.js Streams 2 buffer data and stream all data submitted to date along with new data
node_modules
*.sw*
@tizzo
tizzo / sleepy.js
Created September 16, 2011 21:15
A service to take a nap
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");
@tizzo
tizzo / veeweebuild.sh
Created November 12, 2012 17:46
Jenkins Veewee Build Script
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
@tizzo
tizzo / casper-responsive-snapshots.coffee
Created December 11, 2012 17:48
Quick gist to demonstrate taking screenshots at different resolutions
console.log 'started'
options =
viewportSize:
width: 1900
height: 1000
snapshot = (width, height, path)->
clip =
top: 0
@tizzo
tizzo / example.pp
Created December 4, 2015 15:36
Puppet -> and ~> syntax
file { '/some/path':
ensure => 'file',
}->
service { 'some-service':
ensure => 'running',
enable => true,
}
@tizzo
tizzo / README.md
Last active December 16, 2015 10:39

Pet Carousel Redux

A sample implementation.

The code is still being pupulated.

@tizzo
tizzo / .gitignore
Last active December 17, 2015 21:07
Node.js streams example
node_modules
@tizzo
tizzo / .gitignore
Last active March 11, 2016 22:34
migrate_build_size_and_status
node_modules