Skip to content

Instantly share code, notes, and snippets.

@ktec
ktec / ssl_puma.sh
Created January 17, 2017 13:43 — 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
@ktec
ktec / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ktec
ktec / gist:467980
Created July 8, 2010 13:13 — forked from vlado/formtastic_mark_it_up_editor.rb
added markitup viewhelpers and force output to a string
module FormtasticExtensions
module Formtastic
module MarkItUpEditor
include MarkItUp::ViewHelpers
def self.included(base)
base.class_eval do
@mark_it_up_dependencies_included = false
end
end