Generate KEY and CSR:
openssl req -new -newkey rsa:2048 -nodes -keyout DOMAIN.key -out DOMAIN.csr
Echo the KEY in PEM format:
openssl rsa -in DOMAIN.key -outform PEM
Echo the CRT in PEM format:
module Celluloid | |
module Supervision | |
class Container | |
# Manages a fixed-size pool of actors | |
# Delegates work (i.e. methods) and supervises actors | |
# Don't use this class directly. Instead use MyKlass.pool | |
class Pool | |
def initialize(options={}) | |
@idle = [] | |
@busy = [] |
Generate KEY and CSR:
openssl req -new -newkey rsa:2048 -nodes -keyout DOMAIN.key -out DOMAIN.csr
Echo the KEY in PEM format:
openssl rsa -in DOMAIN.key -outform PEM
Echo the CRT in PEM format:
# http://www.evanmiller.org/bayesian-ab-testing.html implemented in ruby | |
# requires the distribution gem from https://github.com/clbustos/distribution (gem 'distribution', require: false) | |
def probability_b_beats_a(completed_a, total_a, completed_b, total_b) | |
require 'distribution/math_extension' | |
total = 0.0 | |
alpha_a = completed_a + 1 | |
beta_a = total_a - completed_a + 1 | |
alpha_b = completed_b + 1 |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.background { | |
fill: #fff; | |
} | |
.foreground { | |
fill: none; |