Skip to content

Instantly share code, notes, and snippets.

View a-chernykh's full-sized avatar

Andrey Chernykh a-chernykh

View GitHub Profile

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@a-chernykh
a-chernykh / log.txt
Created August 19, 2012 18:18 — forked from steveklabnik/log.txt
IAMA shorthand junkie
$ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30
681 gs
84 ll
84 gc
80 gd
80 gca
66 ga .
60 gb
48 cd ..
43 gp
# needs the "hashie" gem in Gemfile
require 'erb'
module Movies
class Application < Rails::Application
settings = ERB.new(IO.read(File.expand_path('../settings.yml', __FILE__))).result
mash = Hashie::Mash.new(YAML::load(settings)[Rails.env.to_s])
mash.each do |key, value|