Skip to content

Instantly share code, notes, and snippets.

View omphe's full-sized avatar

Branden Faulls omphe

View GitHub Profile
@omphe
omphe / Conferences.md
Last active December 8, 2016 10:31
A list of relevant/interesting conferences usually discovered on the day, via Twitter
  • Craftconf
  • WWDC
  • Scale Summit
  • Ansible Fest
  • AWS Summit
  • Pipeline
  • Lead Dev
  • Container camp
  • GCP Next
  • Google IO
@omphe
omphe / gollapser.rb
Created September 5, 2014 19:10
GoPro timelapse renamer
#!/usr/bin/env ruby
directory = ARGV[0]
ARGV.clear
puts "This will rename all *.JPG files in " + directory
print "Are you sure? [y/n]: "
confirm = gets.chomp
@omphe
omphe / gist:8302060
Created January 7, 2014 16:35
Play Framework 2.2 Upstart config
description "Play Framework Config"
author "Branden Faulls"
version "1.0"
env USER=username
env GROUP=username
env HOME=/your/project/root
env PORT=8080
env ADDRESS=127.0.0.1
env PROJECT=your_play_project
@omphe
omphe / deploy.rb
Created December 5, 2013 09:05 — forked from nhoffmann/deploy.rb
set :application, "My Static Content"
set :servername, 'test.example.com'
# no git? simply deploy a directory
set :scm, :none
set :repository, "." # the directory to deploy
# using git? deploy from local git repository
# set :scm, :git
# set :repository, 'file//.' # path to local git repository
@omphe
omphe / rexml.xml
Created December 22, 2011 14:27
Sample xml (may contain unicorns)
<inventory title="OmniCorp Store #45x10^3">
<section name="health">
<item upc="123456789" stock="12">
<name>Invisibility Cream</name>
<price>14.50</price>
<description>Makes you invisible</description>
</item>
<item upc="445322344" stock="18">
<name>Levitation Salve</name>
<price>23.99</price>
@omphe
omphe / cdw_document.rb
Created December 22, 2011 14:27
CDW - Transformation document classes
require 'json'
require 'nori'
require 'open-uri'
class CDWDocument
attr_accessor :doc
def initialize(uri)
@uri = uri
@omphe
omphe / cdw_plus.rb
Created December 22, 2011 14:25
CDW-Plus Sinatra
# XML Transformation Prototype
# Branden Faulls <branden.faulls@clockworkrobot.co.uk
# http://www.clockworkrobot.co.uk
require 'rubygems'
require 'sinatra'
require_relative 'cdw_document.rb'
helpers do
def display_doc(doc)
if(doc.errors?)