Public Gists by fairchild

gist: 225288 modified from somewhere
Gravatar
Tue Nov 03 10:01:12 -0800 2009
1
2
3
# set title of tab in osx terminal
function set_window_and_tab_title
{
Gravatar
Mon Nov 02 19:20:18 -0800 2009
1
2
3
after a curl directly to
curl -i --header 'Transfer-Encoding: Chunked' 'http://174.129.189.106/asr?imei=hemant&grammar=qme.lm&resultFormat=json&audioFormat=au' --data-binary @./test/files/india.au
 
gist: 210790 simple zerigo DNS API inter...
Gravatar
Thu Oct 15 01:40:04 -0700 2009
1
2
3
require 'rubygems'
require 'httparty'
require 'pp'
Gravatar
Wed Oct 14 16:51:38 -0700 2009
1
2
3
#!/bin/bash
 
##CURL Request Directly to WATSON
Gravatar
Wed Oct 14 16:51:27 -0700 2009

      
Gravatar
Sun Oct 04 01:11:43 -0700 2009
1
2
3
    def create_autoscaling_group(opts={})
      as.delete_autoscaling_group(:autoscaling_group_name => cloud.proper_name) rescue nil
      as.create_autoscaling_group({
Gravatar
Sat Oct 03 22:34:37 -0700 2009
1
2
3
require File.dirname(__FILE__)+'/../lib/thin.rb'
$PP_VERBOSE=true
 
Gravatar
Mon Sep 14 19:07:35 -0700 2009
1
2
3
#!/bin/bash
 
BASE_DIR="/mnt/grammars"
Gravatar
Tue Sep 01 14:51:05 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Wed Aug 26 19:51:34 -0700 2009
1
2
3
require 'A'
class B < A
end
Gravatar
Tue Aug 25 16:04:20 -0700 2009
1
2
3
pool :sandbox do
  
  cloud :hello_world do
Gravatar
Tue Aug 11 18:19:27 -0700 2009
1
2
3
=begin rdoc
  Use any server you have root ssh access to as a cloud instance.
  You need to provide a list of hosts in your cloud using block and those hosts will
Gravatar
Fri Aug 07 17:36:31 -0700 2009
1
2
3
require 'rubygems'
require 'right_aws'
require 'yaml'
Gravatar
Fri Aug 07 11:00:16 -0700 2009
1
2
3
export JAVA_HOME=/Library/Java/Home #/usr on ubuntu
export EC2_HOME=~/opt/ec2
export PATH=$EC2_HOME/bin:$PATH
Gravatar
Sat Jul 25 00:03:08 -0700 2009
1
2
3
require 'sinatra'
 
EC2_HOME = '~/.ec2'
gist: 152635 gist_cloner github_username
Gravatar
Thu Jul 23 02:59:25 -0700 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'fileutils'
gist: 150855 content_type filter for sin...
Gravatar
Mon Jul 20 13:01:11 -0700 2009
1
2
3
CONTENT_TYPES = {:html => 'text/html', :css => 'text/css', :js => 'application/javascript'}
 
before do
Gravatar
Wed Jul 15 19:29:54 -0700 2009
1
2
3
#!/bin/bash
echo -n "Pick a color (blue, yellow, red ): "
read -e COLOR
gist: 144911 script to install eucalyptu...
Gravatar
Fri Jul 10 16:39:46 -0700 2009
1
2
3
#/bin/bash
 
# Install prerequisites
Gravatar
Fri Jul 10 11:32:44 -0700 2009
1
2
3
#!/bin/bash
# A basic firewall to share an internet connection