Skip to content

Instantly share code, notes, and snippets.

View rcorreia's full-sized avatar

Ryan Thomas Correia Ortega rcorreia

View GitHub Profile
@rcorreia
rcorreia / pr.md
Created March 27, 2013 17:58 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

class default_node {
package { 'apache2':
ensure => installed
}
service { 'apache2':
ensure => true,
enable => true,
require => Package['apache2'],
}
}
#!/usr/bin/ruby
##
# Classifies a puppet node based on its EC2 security group.
# Requires the AWS gem.
# Also requires a node_groups.yml file which specifies security groups
# and the classes/params that should be applied, in the following
# format (additionally keyed by security group name).
# http://docs.puppetlabs.com/guides/external_nodes.html
#
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0333)
#
# ## Advisory
#
# https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/1h2DR63ViGo
#
# ## Caveats
#
curl -H "Content-Type:text/json" -s -X PUT -d '{"passed": true}' http://$USERNAME:$KEY@saucelabs.com/rest/v1/$USERNAME/jobs/$JOBID
"all-platforms": [
["Windows 2003", "firefox", "2"],
["Windows 2003", "firefoxproxy", "2"],
["Windows 2003", "firefox", "3.0"],
["Windows 2003", "firefoxproxy", "3.0"],
["Windows 2003", "firefox", "3.5"],
["Windows 2003", "firefoxproxy", "3.5"],
["Windows 2003", "firefox", "3.6"],
["Windows 2003", "firefoxproxy", "3.6"],
["Windows 2003", "firefox", "4"],
from threading import Thread
from selenium import selenium
import time
try:
import json
except ImportError:
import simplejson as json
USERNAME = "USERNAME"
ACCESS_KEY = "ACCESS-KEY"
@rcorreia
rcorreia / Procfile
Created November 20, 2012 14:13 — forked from dvdsgl/Procfile
Automated Jenkins Comments on GitHub Pull Requests
web: node server.js
@rcorreia
rcorreia / dbranch.sh
Created November 19, 2012 17:18 — forked from pierrel/dbranch.sh
Delete all merged branches
#!/bin/bash
# Deletes all branches already merged with master
git checkout master
git pull
for BRANCH in `git branch`; do
git branch -d ${BRANCH}
done
@rcorreia
rcorreia / dbranch.sh
Created September 14, 2012 22:57 — forked from pierrel/dbranch.sh
Delete all merged branches
#!/bin/bash
# Deletes all branches already merged with master
git checkout master
git pull
for BRANCH in `git branch`; do
git branch -d ${BRANCH}
done