Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View knorrium's full-sized avatar

Felipe Knorr Kuhn knorrium

View GitHub Profile
#Para instalar as bibliotecas no Ubuntu, caso alguma falte:
# sudo apt-get install ruby1.8-dev
# sudo apt-get install libopenssl-ruby
# sudo apt-get install libxml2-dev
# sudo apt-get install libxslt-dev
# sudo gem install mechanize
require "rubygems"
require "mechanize"
//this demo uses
//to try to help @dckismet extracting cell text
package demo;
import org.testng.annotations.Test;
import common.BaseTest;
public class tables extends BaseTest {
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Wordpress extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("", "*chrome");
public void testJunit() throws Exception {"/wordpress/wp-login.php");
selenium.type("user_login", "admin");
package common;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
knorrium / following.rb
Created November 26, 2010 18:44
Lists all the people you are following
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.oauth_token = ""
config.oauth_token_secret = ""
knorrium /
Created February 15, 2011 16:03
[BASH] Processes every file in the directory
for i in *ext ; do command "$i" ; done
knorrium /
Created April 26, 2012 14:48
WebDriver Element focus test
from selenium import webdriver
driver = webdriver.Chrome()
element = driver.find_element_by_id("myAnchor")
focused_element = driver.switch_to_active_element()
knorrium / .gitignore
Created May 17, 2012 03:57 — forked from bergie/.gitignore
Node.js email handling examples
knorrium /
Created June 2, 2012 14:55 — forked from zspencer/
Bootstrapping like a boss
#symlink gcc to a non-llvm version installed xCode's CLI tools
if [ -f /usr/bin/gcc-4.2 ]; then
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
sudo rm /usr/bin/cc
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/cc
knorrium / polldaddy_v2.rb
Created July 23, 2012 20:10 — forked from kingbin/polldaddy_v2.rb
automate testing a web project :)
# Using the web automation driver (watir-webdriver) through the tor network
# Automates webpage actions & bypasses the voting limit on polldaddy
# Casts a vote every 3 seconds for a total of 1000 votes
require 'watir-webdriver'
profile =
profile.proxy = :http => ''
b = :firefox, :profile => profile
#b = :firefox
b.goto ''