Skip to content

Instantly share code, notes, and snippets.

View ajc's full-sized avatar
👋

Andrew J. Cosgriff ajc

👋
View GitHub Profile
@mrinalwadhwa
mrinalwadhwa / make_osx_vagrant_box.sh
Created June 19, 2013 18:47
Create an OSX Vagrant Box
# Create an OSX Vagrant Box
# Run this script from the directory that has InstallESD.dmg in it
# Get InstallESD.dmg using the method described on this link
# http://hints.macworld.com/article.php?story=20110831105634716
# Setup a vagrant box
# http://garylarizza.com/blog/2013/01/20/using-veewee-to-build-os-x-vms/
git clone git://github.com/jedi4ever/veewee.git
@aussiegeek
aussiegeek / tramtracker.rb
Created July 25, 2013 01:19
Job to get tram data for dashing
require "rexml/document"
SCHEDULER.every '1m', :first_in => 0 do |job|
stop_no = 1819
url = URI.parse('http://ws.tramtracker.com.au/pidsservice/pids.asmx')
request =Net::HTTP::Post.new(url.path)
request.body = %Q{<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<PidsClientHeader xmlns="http://www.yarratrams.com.au/pidsservice/">
@geekle
geekle / makeiso.sh
Created January 19, 2014 00:27
Create bootable CoreOS ISO from the master PXE images.
#!/bin/bash
# Creates a bootable ISO from CoreOS' PXE images.
# Also adds a run script to the OEM partition and converts the ISO so it can boot from USB media.
# Based heavily off https://github.com/nyarla/coreos-live-iso - Thanks Naoki!
set -e
# Default configurations
SYSLINUX_VERSION="6.02"