Skip to content

Instantly share code, notes, and snippets.

View pagameba's full-sized avatar

Paul Spencer pagameba

View GitHub Profile
Error applying plan:
1 error(s) occurred:
* module.stack.module.ecs_cluster.aws_autoscaling_group.main: aws_autoscaling_group.main: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Please include the following information in your report:
Terraform Version: 0.10.4
Resource ID: aws_autoscaling_group.main
Concept for auto-processing:
given an inventory of crafting cards holding recipes (input and output) and a machine that can turn the input into the output for each one:
Loop over slots in the inventory
For current slot
get output of recipe
get # of items in a storage control module
test < some value
if >

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@pagameba
pagameba / style.js
Created October 8, 2014 12:48
Create OL3 Style object(s) from object literals.
var styleMap = {
fill: function(obj) {
if (typeof obj == 'string' || Array.isArray(obj)) {
obj = { color: obj };
}
return new ol.style.Fill(obj);
},
stroke: function(obj) {
if (typeof obj == 'string' || Array.isArray(obj)) {
obj = { color: obj };
/*jslint node:true, sloppy: true, indent: 2, nomen: true, white: true */
var util = require('util')
, response = require('cradle/lib/cradle/response')
, mockJSON = {
total_rows: 1,
offset: 0,
rows: [{
id: 'some-id',
key: 'some-key',
/*
* Portions of this code and logic copied from OpenLayers and
* redistributed under the original Clear BSD license terms:
*
* http://trac.osgeo.org/openlayers/browser/license.txt
*
* Copyright 2005-2010 OpenLayers Contributors, released under
* the Clear BSD license. See authors.txt for a list of contributors.
* All rights reserved.
*
@pagameba
pagameba / config.json
Created January 27, 2011 19:00
testcase for long-stack-traces
{
"version": "v0.3.1",
"web": {
"port": 8081
},
"database": {
"connection": "pg://postgres:postgres@127.0.0.1:5432/test"
}
}
config.json:
{
"database": {
"connection": "pg://postgres:postgres@127.0.0.1:5432/test"
},
"web": {
"port": 8000
}
}
var Seq = require('node-seq');
var configFile = require('path').join(__dirname, 'config.json');
Seq()
.seq(checkPath),
.seq(parseConfig),
.seq(connectToDb),
.seq(startServer),
.catch(function(err) {
console.error(err.stack ? err.stack : err);
6 Dec 08:19:27 - Your node instance does not have root privileges. This means that the flash XML policy file will be served inline instead of on port 843. This will slow connection time slightly
6 Dec 08:19:27 - socket.io ready - accepting connections
6 Dec 08:19:56 - Initializing client with transport "websocket"
6 Dec 08:19:56 - Client 15454286127351224 connected
client connection!
client discconect
6 Dec 08:19:56 - Client 15454286127351224 disconnected