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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Sample Template Elastic-Beanstalk-in-vpc.template: Sample template showing how to create an Elastic Beanstalk environment in a VPC. The stack contains 2 subnets: the first subnet is public and contains the load balancer, a NAT device for internet access from the private subnet and a bastion host to allow SSH access to the Elastic Beanstalk hosts. The second subnet is private and contains the Elastic Beanstalk instances. You will be billed for the AWS resources used if you create a stack from this template.", | |
"Parameters" : { | |
"BastionKeyName" : { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the bastion host", | |
"Type" : "String", |
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
Service | Permission | |
---|---|---|
Auto Scaling | CreateAutoScalingGroup | |
Auto Scaling | CreateLaunchConfiguration | |
Auto Scaling | CreateOrUpdateScalingTrigger | |
Auto Scaling | CreateOrUpdateTags | |
Auto Scaling | DeleteAutoScalingGroup | |
Auto Scaling | DeleteLaunchConfiguration | |
Auto Scaling | DeleteNotificationConfiguration | |
Auto Scaling | DeletePolicy | |
Auto Scaling | DeleteScheduledAction |
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
var entries = $('#query-apis ul li a'); | |
var buffer = ""; | |
for ( var i = 0; i < Math.min(entries.length); i++ ) { | |
var call = $(entries[i]).text(); | |
$.ajax({ | |
async: false, | |
url: entries[i].href, | |
success: function(res) { | |
//console.log(res); | |
var dc = $(res).find('#divContent .section:first .section > p:first'); |
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
My findings…. | |
The Apache Web Server footprint will basically be | |
Apache Web Server Footprint = MaxClients * (Max Memory per Child) | |
Ryan found our current Apache settings for EB to be… | |
ServerLimit 256 | |
MaxClients 256 |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
var async = require('async'), | |
async.series([ | |
function(callback) { | |
setTimeout(function() { | |
console.log('f1'); | |
callback(null, 'one'); | |
}, 800); | |
}, | |
function(callback) { |
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
// match ip address but not internal 10. | |
"dkdl sld dj d 110.2.33.7 asjd ".match(/[^\d](?!10\.)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/); |
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
_.mixin({ | |
pickStartsWith : function(obj,beginStr) { | |
if ( _.isArray(obj) || ! _.isObject(obj) ) throw new TypeError("pickStartsWith must be called on an object"); | |
return _.pick(obj, _.filter(_.keys(obj), function(el, index) { return el.indexOf(beginStr) == 0; })); | |
}, | |
pickMatch : function(obj,regex) { | |
if ( _.isArray(obj) || ! _.isObject(obj) ) throw new TypeError("pickBeginsWith must be called on an object"); | |
return _.pick(obj, _.filter(_.keys(obj), function(el, index) { return el.match(regex) != null; })); | |
}, | |
keyReplace : function(obj,regex, replace) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- fiddle is here http://jsfiddle.net/ondras/hYfN3 --> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Tiny Excel-like app in vanilla JS - jsFiddle demo by ondras</title> | |
<script type='text/javascript' src='/js/lib/dummy.js'></script> | |