I hereby claim:
- I am sbfaulkner on github.
- I am sbfaulkner (https://keybase.io/sbfaulkner) on keybase.
- I have a public key ASAruii5NVpwMfUCErOCDNIeJpyQ7PP6hrcWrOSjzTdKeAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| openssl s_client -showcerts -connect $1:443 </dev/null | openssl x509 -noout -text | grep DNS: |
| require 'rubygems' | |
| require 'base64' | |
| require 'encryptor' | |
| require 'builder' | |
| # private_key = OpenSSL::PKey::RSA.new(2048) | |
| # public_key = private_key.public_key | |
| # test data from TST | |
| # key = Base64.decode64("NxQLMrUXaSKZYm0Ef3Ab1siRevbOxF5HLpvCKXPdZh4=") |
| # DOMAIN='example.com' | |
| # PASSWORD='my secure pass phrase goes here' | |
| # | |
| # KEYFILE = "#{DOMAIN}.key" | |
| # CSRFILE = "#{DOMAIN}.csr" | |
| # | |
| ################################################################################ | |
| # create a new key | |
| # key = OpenSSL::PKey::RSA.new 2048 | |
| # |
| #!/usr/bin/env ruby | |
| require 'openssl' | |
| require 'base64' | |
| require 'builder' | |
| require 'securerandom' | |
| require 'faker' | |
| tests = %i(rsa) | |
| I18n.enforce_available_locales = true |
| require 'rubygems' | |
| require 'faraday' | |
| require 'faraday_middleware' | |
| cas = Faraday.new(:url => 'http://cas.dev') do |faraday| | |
| faraday.request :url_encoded | |
| faraday.response :logger | |
| faraday.response :xml, :content_type => /\bxml$/ | |
| faraday.adapter Faraday.default_adapter |
| # CLOSURES IN RUBY Paul Cantrell http://innig.net | |
| # Email: username "cantrell", domain name "pobox.com" | |
| # I recommend executing this file, then reading it alongside its output. | |
| # | |
| # Alteratively, you can give yourself a sort of Ruby test by deleting all the comments, | |
| # then trying to guess the output of the code! | |
| # A closure is a block of code which meets three criteria: | |
| # |
| require 'openssl' | |
| def gen_key(name) | |
| key = OpenSSL::PKey::RSA.new 1048 | |
| file = File.new(name, "w") | |
| file.write(key) | |
| file.close | |
| end | |
| def get_key(name) |
| #!/bin/sh | |
| # Install ImageMagick on Snow Leopard: by kain, improved by mislav and samsoffes | |
| # http://www.icoretech.org/2009/08/install-imagemagick-in-leopard-snow-leopard/ | |
| # Work with 64bit kernel mode | |
| set -e | |
| PREFIX=/usr/local | |
| # Passenger users: amend your Apache global configuration with the following directive | |
| # SetEnv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin |
| #!/usr/bin/env ruby | |
| # | |
| # check google serp for multiple sites using provided queries | |
| # | |
| require 'rubygems' | |
| require 'mechanize' | |
| SITES = [ | |
| 'moneyworks.ca', |