Skip to content

Instantly share code, notes, and snippets.

View kevn's full-sized avatar

Kevin E. Hunt kevn

View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'xmlrpc/client'
require 'yaml'
require 'termios'
require 'pp'
module Jira
end
#!/usr/bin/env ruby
# encoding: ascii-8bit
require 'rubygems'
require 'mail'
puts "Ruby version: #{RUBY_VERSION}"
puts "Mail gem version: #{Mail::VERSION::STRING}"
address = "josé.cuervo@cactus.com"
#!/bin/sh
#
# This script is an adaptation from http://www.sqlite.org/cvstrac/wiki?p=ConverterTools
# It expects stdin input from mysqldump with the following params:
# mysqldump --skip-extended-insert --add-drop-table --compatible=ansi --skip-add-locks --skip-comments --skip-disable-keys --skip-set-charset
# Note: Don't use --skip-quote-names as this script expects quoted names
#
# Note: This script imports boolean values as they are stored in Mysql, e.g., as the integers 0 and 1.
# As a result, boolean fields need to be further normalized after this transform step
# such that false field values are 'f' and true field values are 't', which is
# File: roles/common.rb
name "common"
description "Applied to all servers"
recipes "users"
default_attributes(
:groups => {
:admins => {:gid => 900},
},
:users => {
:kevn => { :password => "*", :comment => "Kevin", :uid => 1001, :group => :admins },