I hereby claim:
- I am outlawandy on github.
- I am outlawandy (https://keybase.io/outlawandy) on keybase.
- I have a public key ASAqItY0cNuDB37SChPSnJ1DKEQjuo7_Ar4q_UxpDlOy9Ao
To claim this, I am signing this object:
| class ObjectComparator < BasicObject | |
| include ::Enumerable | |
| extend ::Forwardable | |
| def initialize(*members) | |
| @members = members.flatten(1) | |
| end | |
| def_delegators :@members, :to_a, :each, :<=>, :==, :eql?, :hash |
| require 'openssl' | |
| class KeyGen | |
| def initialize | |
| @pkey = OpenSSL::PKey::RSA.new(2048) | |
| @cipher = OpenSSL::Cipher.new('AES-256-CBC') | |
| end | |
| def public_key = @pkey.public_key | |
| def secure_key(password) = @pkey.export(@cipher, password) |
| import { Controller } from "@hotwired/stimulus" | |
| export default class extends Controller { | |
| static targets = ['dialog'] | |
| static values = { | |
| shouldOpen: Boolean, | |
| isOpen: Boolean, | |
| } | |
| connect() { |
| module TrixAttachmentHelper | |
| def attach_to_rich_text_area(trix_editor_id, file:, wait: 1) | |
| page.execute_script(attach_temp_file_input) | |
| find('#temp-file-input').attach_file(file) | |
| page.execute_script(attach_file_to_trix, trix_editor_id) | |
| # this 'expect' ensures that Capybara will wait for the Trix javascript to execute | |
| expect(page).to have_content file.basename | |
| # allow for direct upload to complete, if your app is doing that. | |
| sleep wait |
I hereby claim:
To claim this, I am signing this object:
| How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS | |
| Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing). | |
| The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here: | |
| * Heroku Hostname SSL | |
| * GoDaddy Standard SSL Certificate | |
| * Zerigo DNS |
[ Launch: boomstick_motion_wcolor_coffee ] 11473093 by OutlawAndy[ Launch: boomstick_motion_wcolor_coffee ] 11463531 by OutlawAndy[ Launch: boomstick_motion_wcolor_coffee ] 6379220 by zeffii[ Launch: boomstick_motion_wcolor ] 6376715 by zeffii[ Launch: boomstick_motion2 ] 6365156 by zeffii[ Launch: boomstick_motion ] 6364686 by zeffii[ Launch: boomstick ] 6364584 by zeffii[ Launch: zeffii default ] 6364028 by zeffii[ Launch: zeffii default ] 5033869 by zeffii
[ Launch: boomstick_motion_wcolor_coffee ] 11463531 by OutlawAndy[ Launch: boomstick_motion_wcolor_coffee ] 6379220 by zeffii[ Launch: boomstick_motion_wcolor ] 6376715 by zeffii[ Launch: boomstick_motion2 ] 6365156 by zeffii[ Launch: boomstick_motion ] 6364686 by zeffii[ Launch: boomstick ] 6364584 by zeffii[ Launch: zeffii default ] 6364028 by zeffii[ Launch: zeffii default ] 5033869 by zeffii
| <!doctype html> | |
| <head> | |
| <title>Stripe OAuth Example</title> | |
| </head> | |
| <body> | |
| <%= @access_token %> | |
| </body> | |
| </html> |
| require 'base64' | |
| require 'cgi' | |
| require 'hmac-sha1' | |
| require 'active_support/core_ext/numeric/time' | |
| class S3RequestBuilder | |
| @@access_key = ENV['AWS_ACCESS_KEY_ID'] | |
| @@secret_key = ENV['AWS_SECRET_ACCESS_KEY'] | |
| def initialize bucket, filename |