- Craftconf
- WWDC
- Scale Summit
- Ansible Fest
- AWS Summit
- Pipeline
- Lead Dev
- Container camp
- GCP Next
- Google IO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'nori' | |
require 'open-uri' | |
class CDWDocument | |
attr_accessor :doc | |
def initialize(uri) | |
@uri = uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |