Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrey Chernykh andreychernih

View GitHub Profile
View self-signed-certificate-with-custom-ca.md

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
@andreychernih
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
View application_with_config.rb
# 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|
You can’t perform that action at this time.