Skip to content

Instantly share code, notes, and snippets.

View gelias's full-sized avatar

Guilherme Elias gelias

View GitHub Profile
<error-page>
<error-code>404</error-code>
<location>/404.html</location>
</error-page>
@gelias
gelias / a_h_top_and_most.sh
Created October 17, 2012 15:13
Script bash to download and install using yum service some helper tools to manage S.O.
#!/bin/bash
# Create temp folder to download rpms
mkdir /tmp/rpms
cd /tmp/rpms
# Download HTOP, ATOP, MOST
yum install htop atop most -y
@gelias
gelias / cardapiaria_setup.sh
Created September 1, 2012 12:09
Cardapiaria Setup
#!/bin/bash
clear
echo -e "Preparing to start ...\n"
cd /Users/gelias/workspace/ruby
echo -e "removing oldest version ... \n"
rm -rf /Users/gelias/workspace/ruby/cardapiaria
echo -e "using ruby version 1.9.3 and Rails 3.2"
rvm 1.9.3@rails32
@gelias
gelias / text_field_spec.rb
Created July 19, 2012 05:21
Preenchendo um campo do tipo text
require 'rubygems'
require 'watir-webdriver'
require 'rspec'
describe "Look for browser elements" do
FIRST_NAME = 'Guilherme'
before(:each) {puts 'inicou'}
after(:each) {@firefox.close unless @firefox.nil?}
@gelias
gelias / watirwebdriver_sample.rb
Created July 16, 2012 01:37
Sample ruby script using watir-webdriver
require 'watir-webdriver'
firefox_instance = Watir::Browser.new :firefox
firefox_instance.goto 'http://bit.ly/M1mjNB'
firefox_instance.close