Skip to content

Instantly share code, notes, and snippets.

Steady in the storm!

Dan Kozlowski dankozlowski

Steady in the storm!
  • Seattle, WA
View GitHub Profile
View write-secrets.lua
-- Script that writes secrets to k/v engine in Vault
-- Indicate number of secrets to write to secret/read-test path with "-- <N>"
local counter = 1
local threads = {}
function setup(thread)
thread:set("id", counter)
table.insert(threads, thread)
counter = counter + 1
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View want_to_chat_getter.rb
class WantToChatAnswerGetter
attr_accessor :answer
def initialize(answer)
@answer = get_answer(answer)
def get_answer(answer)
r = get_string_answer
View gist:d1843af4985d56a01a934ef0a68bc379
dankozlowski /
Created July 3, 2017 23:26 — forked from tadast/
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

Keybase proof

I hereby claim:

  • I am dankozlowski on github.
  • I am dankozlowski ( on keybase.
  • I have a public key whose fingerprint is 0578 A140 77AA 5128 8BCC C6A8 8288 2058 9FD2 4C2D

To claim this, I am signing this object:

dankozlowski /
Created October 24, 2015 01:00 — forked from blacktm/
A Bash script to install Ruby 2.2 on the Raspberry Pi (Raspbian).
# -----------------------------------------------------------------------
# Installs Ruby 2.2 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
# Run from the web:
# bash <(curl -s raw_script_url_here)
# -----------------------------------------------------------------------
# Set up variables
View gist:d72d6b4fa639140c5167
# Defines a new sequence
FactoryGirl.define do
sequence :email do |n|
generate :email
# => ""
View gist:6077415
<!doctype html>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
View gist:5223773
// Javascript that submits data:
function pushResults() {
type : "POST",
url : "/mindfulness_tutor",
beforeSend: function(jqXHR, settings) {
jqXHR.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'));
dataType: "text/plain",
data : "stats=" + serialize(resultsArray) + "&total=" + totalMeditationTime,