This file contains 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Use these mappings for cloudwatch templates which launch a java process. They define a heap size close to (but never over) 70% of the available RAM, at multiples of 64 megabytes. No heap is declared over 32GB for performance reasons.", | |
"Mappings" : { | |
"AWSInstanceType2JavaMaxHeap" : { | |
"t1.micro" : { "Heap" : "384m" }, | |
"t2.micro" : { "Heap" : "640m" }, | |
"t2.small" : { "Heap" : "1280m" }, | |
"t2.medium" : { "Heap" : "2816m" }, | |
"t2.large" : { "Heap" : "5g" }, |
This file contains 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
//Allowing CORS (Cross-Origin Resource Sharing) requests from | |
// grunt server, put this into Gruntfile.js | |
grunt.initConfig({ | |
connect: { | |
livereload: { | |
options: { | |
port: 9000, | |
hostname: 'localhost', | |
middleware: function (connect) { | |
return [ |
This file contains 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 python | |
""" | |
Recipe for creating and updating security groups programmatically. | |
""" | |
import collections | |
import boto |