Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Rodriguez feelobot

View GitHub Profile
@mgoodness
mgoodness / kube-dns-rbac.md
Last active Jun 7, 2019
kube-dns RBAC setup for K8s v1.6+ (tested on minikube)
View kube-dns-rbac.md
kubectl -n kube-system create sa kube-dns
kubectl -n kube-system patch deploy/kube-dns -p '{"spec": {"template": {"spec": {"serviceAccountName": "kube-dns"}}}}'
@feelobot
feelobot / rails_demo_beanstalk.md
Created Apr 15, 2014
Setting up Rails on Beanstalk
View rails_demo_beanstalk.md

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
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@santiycr
santiycr / TestingUploadSe2Sauce.java
Created Dec 22, 2011
Remote File Upload using Selenium 2's FileDetectors
View TestingUploadSe2Sauce.java
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;
View 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')
View lighthouse.bin.growl.rb
#!/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"