Skip to content

Instantly share code, notes, and snippets.

View ampedandwired's full-sized avatar

Charles Blaxland ampedandwired

  • Sydney, Australia
View GitHub Profile
@ampedandwired
ampedandwired / myservice
Last active August 29, 2015 14:10
Generic sysv init
#!/bin/bash
service_name=`basename $0`
# Load default variables. Provides a way to configure the service
# differently in different environments.
if [ -f /etc/default/${service_name} ]; then
source /etc/default/${service_name}
fi
@ampedandwired
ampedandwired / README.md
Created August 5, 2014 12:19
Chef Intro Workshop

Chef Workshop

This workshop will take you through the very basics of creating and running Chef recipes with chef-solo.

This workshop assumes you're running on a Mac or Linux. If you're running Windows best to set up a Linux VM to run this workshop.

Getting Started

@ampedandwired
ampedandwired / NumberSpec.js
Created July 11, 2014 01:57
Webpack mocha loader runs multiple times
expect = require('chai').expect;
describe('arithmetic', function() {
it("adds numbers", function() {
expect(1 + 1).to.eql(2);
});
});