I hereby claim:
- I am oestrich on github.
- I am ericoestrich (https://keybase.io/ericoestrich) on keybase.
- I have a public key ASDfZSNUBY96XScRjsdNmXpz6nHJ0y1XhfVA6MnxOGUG2Qo
To claim this, I am signing this object:
| curl -H "Accept: application/json" https://midmud.com/ | |
| curl -H "Accept: application/hal+json" https://midmud.com/ | |
| curl -H "Accept: application/vnd.siren+json" https://midmud.com/ | |
| curl -H "Accept: application/vnd.collection+json" https://midmud.com/ | |
| curl -H "Accept: application/vnd.mason+json" https://midmud.com/ |
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "$$hashKey": "object:174", | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", |
| Code.require_file("router.exs") | |
| defmodule Commands.User do | |
| @behaviour Router.PreParser | |
| @impl Router.PreParser | |
| def call(state) do | |
| %{state | assigns: Map.put(state.assigns, :user, %{id: 10})} | |
| end | |
| end |
I hereby claim:
To claim this, I am signing this object:
| private_key = "..." | |
| client_email = "..." | |
| bucket = "..." | |
| path = "..." | |
| full_path = "/#{bucket}/#{path}" | |
| expiration = 5.minutes.from_now.to_i | |
| signature_string = [ | |
| "GET", |
| require 'openssl' | |
| require 'benchmark' | |
| data = "Hello, world!" | |
| Benchmark.bm do |x| | |
| x.report do | |
| private_key = OpenSSL::PKey::RSA.new 4096 | |
| public_key = private_key.public_key |
| require 'faraday' | |
| require 'json' | |
| def hash_password_for_private_key(password, sha_klass = OpenSSL::Digest::SHA256) | |
| sha256 = sha_klass.new | |
| 1000.times.inject(password) do |hash, _| | |
| sha256.hexdigest(hash) | |
| end | |
| end |
| class ParallelTestAdapter < Faraday::Adapter::Test | |
| self.supports_parallel = true | |
| def self.setup_parallel_manager | |
| OpenStruct.new | |
| end | |
| end |
| ActiveSupport::Notifications.subscribe(/my_class$/) do |*args| | |
| event = ActiveSupport::Notifications::Event.new(*args) | |
| Rails.logger.warn "%7.2fms %s" % [event.duration, event.name] | |
| end |