Hit Tab to get a Coke.
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/sh -x | |
httpd -f /Users/burke/github/svn_apache/httpd.conf -k `basename $0` |
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
def process(pull, attributes) | |
pull.review_comments.find_each do |comment| | |
rewrite_urls_in_model_body(comment) | |
comment.updated_at = comment.created_at # fix for referred_at | |
quiesce(comment, :ensure_synced_with_pull) do | |
comment.save | |
end | |
end | |
issue_post_processor.process(pull.issue, attributes) |
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
# To demonstrate what a "Bank of Dad" would be like | |
require "date" | |
INTEREST_PER_MONTH = 0.1 | |
birthday = Date.today # replace this with the child's birthday | |
twentyone = 21.times.inject(birthday) { |d, _| d.next_year } | |
balance = 0.0 |
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
#/ Usage: sudo ruby docker-aufs-fsck.rb | |
#/ Your docker aufs storage will be checked for orphaned or missing layers. | |
def main | |
aufs_root = find_aufs_root | |
die "Could not find aufs root!" if aufs_root.nil? | |
fsck = Fsck.new({ | |
:images => `docker images -a -q --no-trunc`.split(/\s+/), | |
:containers => `docker ps -a -q --no-trunc`.split(/\s+/), |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<info> | |
<entry | |
kind="dir" | |
path="svn" | |
revision="14"> | |
<url>http://svn.dev/svn</url> | |
<repository> | |
<root>http://svn.dev/svn</root> | |
<uuid>35a824d2-2e84-4826-9201-d644594cceb1</uuid> |
I hereby claim:
- I am spraints on github.
- I am spraints (https://keybase.io/spraints) on keybase.
- I have a public key whose fingerprint is 5D65 6C96 2103 C534 1282 4BEC 02AC 7D12 4E49 60B7
To claim this, I am signing this object:
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
source "https://rubygems.org" | |
gem "nokogiri" | |
gem "typhoeus", ">= 0.6.7" |
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
{"log": {"entries": [{"startedDateTime": "2014-03-07T12:26:48.955008+00:00", "cache": {}, "request": {"cookies": [], "postData": {"mimeType": "text/xml", "text": "<?xml version=\"1.0\" encoding=\"utf-8\"?><D:options xmlns:D=\"DAV:\"><D:activity-collection-set/></D:options>", "params": []}, "url": "http://svn.dev/svn/trunk", "queryString": [], "headers": [{"name": "User-Agent", "value": "SVN/1.7.13 neon/0.30.0"}, {"name": "Connection", "value": "TE"}, {"name": "TE", "value": "trailers"}, {"name": "Host", "value": "svn.dev"}, {"name": "Content-Type", "value": "text/xml"}, {"name": "Accept-Encoding", "value": "gzip"}, {"name": "DAV", "value": "http://subversion.tigris.org/xmlns/dav/svn/depth"}, {"name": "DAV", "value": "http://subversion.tigris.org/xmlns/dav/svn/mergeinfo"}, {"name": "DAV", "value": "http://subversion.tigris.org/xmlns/dav/svn/log-revprops"}, {"name": "Content-Length", "value": "104"}, {"name": "Accept-Encoding", "value": "gzip"}], "headersSize": 379, "bodySize": 104, "method": "OPTIONS", "httpVe |
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 python | |
import binascii, sys, json | |
from libmproxy import version, tnetstring, flow | |
from datetime import datetime | |
def create_har(flows): | |
return { | |
"log":{ |