Create a gist now

Instantly share code, notes, and snippets.

@timfel /bashrc
Created Feb 22, 2012

What would you like to do?
export PATH=/usr/bin:/bin
require 'rubygems'
require 'sinatra'
get '/' do
host = ENV['VMC_APP_HOST']
port = ENV['VMC_APP_PORT']
"<h1>XXXXX Hello from the Cloud! via: #{host}:#{port}</h1>"
end
get '/env' do
res = ''
ENV.each do |k, v|
res << "#{k}: #{v}<br/>"
end
res
end
@rkh

This comment has been minimized.

Show comment Hide comment
@rkh

rkh Feb 23, 2012

Dude, indentation.

Ok.

rkh commented Feb 23, 2012

Dude, indentation.

Ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment