Skip to content

Instantly share code, notes, and snippets.

@ilyakatz
ilyakatz / ssl_puma.sh
Created October 27, 2016 18:06 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Phone = #777
ISDN = 0
Password = yourpassword
Username = XXX-XXX-XXXX
Modem = /dev/ttyUSB1
Baud = 921600
Stupid Mode = on
@ilyakatz
ilyakatz / factory_girl_cache.rb
Created August 20, 2012 21:20 — forked from sobrinho/factory_girl_cache.rb
Object caching for factory girl
module FactoryGirl
module Strategy
class Cache
def association(runner)
runner.run(:cache)
end
def result(evaluation)
r = Repository.instance.read(evaluation)
if r