I hereby claim:
- I am timh on github.
- I am timhin (https://keybase.io/timhin) on keybase.
- I have a public key whose fingerprint is DE53 F095 9174 7E25 E729 0BB6 0BF3 EF2C 4786 85BA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'uri' | |
require 'net/https' | |
NUM_PROCESSES = 10 | |
MAX_REDIRECTS = 5 | |
def visit_url(url) | |
original_url = url |
class Object | |
alias :old_require :require | |
def require(name) | |
puts "require #{name}" | |
if name == "generator" | |
begin | |
raise "" | |
rescue Object => e | |
puts "generator in this stacktrace:\n" + e.backtrace.join('\n') |
abstract (1.0.0) | |
actionmailer (2.2.2, 1.3.6) | |
actionpack (2.2.2, 1.13.6) | |
actionwebservice (1.2.6) | |
activerecord (2.2.2, 1.15.6) | |
activeresource (2.2.2) | |
activesupport (2.2.2, 1.4.4) | |
acts_as_ferret (0.4.3) | |
addressable (2.1.0, 2.0.2) | |
amqp (0.6.0) |
-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3zvZ2Lc4DldkVXFjhBXJ | |
h23z6Oz/25UGff8DqOY7pj6r4CvQCdqPxJPiLMDMAfuHIr9sTqQ2ROl+rJUM5lpm | |
XbUg02e1KtO/0upPHD8EOTtymIy6TvuwbC2cjM5cpRQFCRbXiWl21z69GSo+91Uy | |
l8ZJr6DYZ9xQh2FJwaW5ISTat4JF9RqwKMVpmaOaPth1MdAFxsiR0I/HHMbUjQkX | |
ZLIyH6HSoYq0Lie1d7LClXyKUukDZJf3RhPoEbdoVHxw82iRkOiD7FADfvh7VFTi | |
1WXZdFiQ53h49nrK2D0hSqUUyqdfhQNJxvOkB/6nNkx2GMmXOfuolMKGj95TGnEJ | |
uwIDAQAB | |
-----END PUBLIC KEY----- |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <openssl/pem.h> | |
int main(int argc, char ** argv) { | |
BIO * bio_pubkey = NULL; | |
EVP_PKEY * evp_pubkey = NULL; | |
RSA * rsa = NULL; | |
int fd = open("public.pem", O_RDONLY); |
timmbp-oc:~/devel/opscode tim$ cat couchdb-delete-dbs.rb | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'couchrest' | |
class CouchDbDeleter | |
def initialize() | |
@couch_client = CouchRest.new('http://localhost:5984') | |
end |
%% give pem_file_to_cert ca_cert.pem, we'll print out all the foo | |
pem_file_to_cert(Filename) -> | |
{ok, CertPemBin} = file:read_file(Filename), | |
io:format("~p Pem = ~p\n", [Filename, CertPemBin]), | |
pem_str_to_cert(CertPemBin). | |
pem_str_to_cert(CertPem) -> | |
{ok, [{cert, CertDer, not_encrypted}]} = public_key:pem_to_der(CertPem), |