Skip to content

Instantly share code, notes, and snippets.


Andrey Chernykh andreychernih

View GitHub Profile
View application_with_config.rb
# needs the "hashie" gem in Gemfile
require 'erb'
module Movies
class Application < Rails::Application
settings ='../settings.yml', __FILE__))).result
mash =[Rails.env.to_s])
mash.each do |key, value|
andreychernih / log.txt
Created Aug 19, 2012 — forked from steveklabnik/log.txt
IAMA shorthand junkie
View log.txt
$ 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

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