Skip to content

Instantly share code, notes, and snippets.

View feelobot's full-sized avatar

Felix Rodriguez feelobot

View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'growl'
require 'lighthouse/console'
Lighthouse.account = "thepoint"
Lighthouse.token = raise("Get your own key")
proj_id = "13151-support"
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@santiycr
santiycr / TestingUploadSe2Sauce.java
Created December 22, 2011 04:44
Remote File Upload using Selenium 2's FileDetectors
import junit.framework.Assert;
import junit.framework.TestCase;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.*;
import java.net.URL;
import java.util.concurrent.TimeUnit;
public class TestingUploadSe2Sauce extends TestCase {
private RemoteWebDriver driver;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 18, 2024 10:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@feelobot
feelobot / rails_demo_beanstalk.md
Created April 15, 2014 18:36
Setting up Rails on Beanstalk

Setup

  1. Make a new rails app and initilize through git
$ chruby 2.0.0
$ gem install rails
$ rails new myapp ~/src
$ cd ~/src/myapp
$ git init
  1. Install elastic beanstalk command line tools and initialize
@mgoodness
mgoodness / kube-dns-rbac.md
Last active June 7, 2019 18:33
kube-dns RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa kube-dns
kubectl -n kube-system patch deploy/kube-dns -p '{"spec": {"template": {"spec": {"serviceAccountName": "kube-dns"}}}}'