Skip to content

Instantly share code, notes, and snippets.

.js-repo-nav,
.px-lg-5,
.repos-split-pane-content {
#max-width: 1280px;
margin-left: auto;
margin-right: auto;
padding-left: 32px !important;
padding-right: 32px !important;
}
@lsh-0
lsh-0 / gist:173f1a11e2e76f718c002607c8fa1e0f
Last active December 18, 2018 02:06
clojure exceptions 1.9 vs 1.10

1.9

user=> (Exception. "foo")
#error {
 :cause "foo"
 :via
 [{:type java.lang.Exception
   :message "foo"
   :at [user$eval23309 invokeStatic "form-init1994649733047768579.clj" 1]}]
@lsh-0
lsh-0 / gist:a6304893e7f97c9f7ac4
Created April 9, 2015 12:13
how to attach a aws volume to an ec2 instance whilst dealing with the troublesome availability zone issue. this example is in YAML (sorry) you'll need to translate to JSON. http://stackoverflow.com/questions/20356453/is-there-a-way-to-get-a-volume-unmounted-when-i-call-cloudformation-delete-stack/25966021?noredirect=1#comment47182550_25966021
# snip
EC2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId:
"Fn::FindInMap": [RegionMap, {Ref: "AWS::Region"}, AMI]
InstanceType:
"Fn::FindInMap": [RegionMap, {Ref: "AWS::Region"}, INST]
KeyName: {Ref: KeyName}