This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I had a lot of fun doing this one! The following code makes | |
# the tests at https://gist.github.com/6ea0a0ba5702824075ab pass. | |
# | |
# NOTE: I normally would DRY some of this code up, but it's just a | |
# fun challenge and would never be deployed to production. :) | |
module MethodInstrumenter | |
def self.instrument_path(path) | |
@path = path | |
@instrumenting = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: node server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H "Content-Type:text/json" -s -X PUT -d '{"passed": true}' http://$USERNAME:[email protected]/rest/v1/$USERNAME/jobs/$JOBID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class default_node { | |
package { 'apache2': | |
ensure => installed | |
} | |
service { 'apache2': | |
ensure => true, | |
enable => true, | |
require => Package['apache2'], | |
} | |
} |
OlderNewer