Skip to content

Instantly share code, notes, and snippets.

View idyll's full-sized avatar
👾
pushing bits.

Mark Madsen idyll

👾
pushing bits.
View GitHub Profile
@idyll
idyll / gist:4746611
Created February 9, 2013 19:07
./openssl s_client -connect rubygems.org:443 -debug -state -msg
CONNECTED(00000003)
write to 0x7f826b4267b0 [0x7f826b813600] (322 bytes => 322 (0x142))
0000 - 16 03 01 01 3d 01 00 01-39 03 03 51 16 9d f0 cc ....=...9..Q....
0010 - 18 c9 7d 16 6c 13 8f 1e-7a 4e 94 52 84 ab d2 15 ..}.l...zN.R....
0020 - 35 6f 9e dc 93 6e 1c 0a-fd 85 01 00 00 a0 c0 30 5o...n.........0
0030 - c0 2c c0 28 c0 24 c0 14-c0 0a c0 22 c0 21 00 a3 .,.(.$.....".!..
0040 - 00 9f 00 6b 00 6a 00 39-00 38 00 88 00 87 c0 32 ...k.j.9.8.....2
0050 - c0 2e c0 2a c0 26 c0 0f-c0 05 00 9d 00 3d 00 35 ...*.&.......=.5
0060 - 00 84 c0 12 c0 08 c0 1c-c0 1b 00 16 00 13 c0 0d ................
0070 - c0 03 00 0a c0 2f c0 2b-c0 27 c0 23 c0 13 c0 09 ...../.+.'.#....
@idyll
idyll / gist:4746394
Created February 9, 2013 18:12
bundle install (ruby2.0.0rc2 & bundler-1.3.0.pre.7)
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/madsen/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.pre.7/lib/bundler/fetcher.rb:170:in `load': dump format error for symbol(0x6) (ArgumentError)
from /Users/madsen/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.pre.7/lib/bundler/fetcher.rb:170:in `fetch_dependency_remote_specs'
from /Users/madsen/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.pre.7/lib/bundler/fetcher.rb:128:in `fetch_remote_specs'
from /Users/madsen/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.pre.7/lib/bundler/fetcher.rb:76:in `specs'
from /Users/madsen/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.pre.7/lib/bundler/source/rubygems.rb:225:in `block in remote_specs'
from /Users/madsen/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/bundler-1.3.0.p
## The quick-and-nasty CVE-2013-0156 Heroku inspector!
## Originally brought to you by @elliottkember with changes by @markpundsack @ Heroku
## Download and run using:
## ruby heroku-CVE-2013-0156.rb
`heroku list`.split("\n").each do |app|
app = app.strip
# Some "heroku apps" lines have === formatting for grouping. They're not apps.
next if app[0..2] == "==="
@idyll
idyll / pg91_to_92.md
Created December 19, 2012 19:28
Upgrading from PG 9.1 to PG 9.2 with PostgreSQL.app
@idyll
idyll / status_codes.md
Created July 28, 2012 21:01
HTTP Status Codes

Status Code Definitions

Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response.

Informational 1xx

This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. There are no required headers for this class of status code. Since HTTP/1.0 did not define any 1xx status codes, servers MUST NOT send a 1xx response to an HTTP/1.0 client except under experimental conditions.

A client MUST be prepared to accept one or more 1xx status responses prior to a regular response, even if the client does not expect a 100 (Continue) status message. Unexpected 1xx status responses MAY be ignored by a user agent.

@idyll
idyll / main.m
Created July 7, 2012 09:52
Objective-C Client for @tenderlove's housefire
//
// main.m
//
// Created by Mark Madsen on 2012-07-07.
// Copyright (c) 2012 AGiLE ANiMAL INC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFHTTPClient.h"
#import "AFHTTPRequestOperation.h"
@idyll
idyll / airbrake-deploy.sh
Created April 13, 2012 16:56
Deploy Airbrake to reset the active tickets.
bundle exec rake airbrake:deploy TO=production
@idyll
idyll / gist:2359166
Created April 11, 2012 13:00
Install Chef Solo (w/r 1.9.3p125) for Ubuntu EC2
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar xzvf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make