Skip to content

Instantly share code, notes, and snippets.

View agea's full-sized avatar
🐺
trying to invent

Andrea Agili agea

🐺
trying to invent
View GitHub Profile
@ajbrown
ajbrown / CloudFormation.template
Created June 18, 2015 17:24
CloudWatch mappings of AWS EC2 Instance types to Java Heap sizes
{
"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" },
@Vp3n
Vp3n / gist:5340891
Created April 8, 2013 21:55
Allowing CORS (Cross-Origin Resource Sharing) requests from grunt server
//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 [
@steder
steder / aws_sg_recipe.py
Created December 19, 2011 19:11
Create and update AWS security groups using Python and Boto.
#!/usr/bin/env python
"""
Recipe for creating and updating security groups programmatically.
"""
import collections
import boto