Skip to content

Instantly share code, notes, and snippets.


Daniel Steiner steini

View GitHub Profile
steini /
Last active Jan 7, 2020
import RDS certificates to java keystore on alpine / osx
#!/usr/bin/env sh
if [ -z "$CACERTS_FILE" ]; then
mkdir /tmp/rds-ca && cd /tmp/rds-ca
steini / play.rb
Last active Aug 29, 2015
install play framework version 2.1.1 through brew
View play.rb
# Recipe for play-2.1.1-RC2
require 'formula'
class Play < Formula
homepage ''
url ''
sha1 '3b1a0c3ca23dde36113d935b85d7f4d45f05923b'
version '2.1.1'
View gist:6942428
(html/defsnippet list-loop "test.html" [:ul :li] [items]
(html/clone-for [item items]
[:li] (html/content item)))
(list-loop ["a" "b" "c"])
View gist:6940523
# config/environment.rb
SWITCHES = YAML::load("#{File.join(RAILS_ROOT,"config","switches.yml")}"))[RAILS_ENV]
View gist:6925978
(html/defsnippet list-loop "test.html" [:ul :li] [items]
[item items]
[:li] (html/content item))
(list-loop ["a" "b" "c"])
steini / gist:1080282
Created Jul 13, 2011
get files in a subfolder using fog
View gist:1080282
storage =
:provider => 'AWS',
:aws_access_key_id => 'acces_key_id',
:aws_secret_access_key => 'secret_access_key'
puts storage.directories.get('bucket', :prefix => 'folder').files.inspect
You can’t perform that action at this time.