Skip to content

Instantly share code, notes, and snippets.

@bryanjswift
bryanjswift / ec2-dns.rb
Created December 2, 2010 04:55
Print out useful information about running ec2 instances
#!/usr/bin/env ruby
#
# This ruby script will print out useful information about running ec2
# instances
#
# Reads AWS access and secret keys from environment variables
#
# Requires the amazon-ec2 gem (gem install amazon-ec2)
#
# Author: Bryan J Swift (bryan.j.swift@gmail.com)
@bryanjswift
bryanjswift / UAgentInfo.java
Created March 1, 2010 09:43
User Agent detection in Java
/* *******************************************
// LICENSE INFORMATION
// The code, "Detecting Smartphones Using PHP"
// by Anthony Hand, is licensed under a Creative Commons
// Attribution 3.0 United States License.
//
// Updated 01 March 2010 by Bryan J Swift
// - Remove un-needed if statements instead just returning the boolean
// inside the if clause
//