This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # List all the (known) operations on each AWS service API. This is | |
| # incredibly useful for building well-restricted IAM access | |
| # rules. With this list you can quickly see what "s3:Get*" matches, or | |
| # just glance through and look for something that might be missing and | |
| # breaking your app. | |
| # I can't believe I had to write this myself. I'm pretty sure there | |
| # are a lot of people out there with near-god-mode permission on IAM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'json' | |
| require 'bson' | |
| a = BSON::ObjectId.new | |
| b = BSON::ObjectId.new | |
| puts a.to_json | |
| # {"$oid":"5837b91f775ab9717f8d8bc9"} | |
| puts b.to_json | |
| # {"$oid":"5837b92c775ab9717f8d8bca"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns tutorial.maryhad | |
| "Implementation of \"Mary Had a Little Lamb\" | |
| Found here: | |
| http://www.pianolessons4children.com/sheetmusic/Mary_Had_a_Little_Lamb_C_Major.pdf" | |
| (:require [leipzig.live :as live] | |
| [leipzig.melody :refer :all] | |
| [leipzig.scale :as scale] | |
| [overtone.inst.piano :refer [piano]] | |
| [overtone.live :refer :all])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.6-alpine | |
| # Additional runtime facilities provided by the OS. | |
| RUN apk add --no-cache libxml2 libxslt postgresql-libs tzdata | |
| # Tell bundler how to use the OS. | |
| RUN gem install bundler -v '~> 1.17' && \ | |
| bundle config build.nokogiri --use-system-libraries | |
| WORKDIR /opt/app | |
| RUN mkdir -p tmp/pids tmp/cache |
OlderNewer