Skip to content

Instantly share code, notes, and snippets.

View asalkeld's full-sized avatar
🏠
Working from home

Angus Salkeld asalkeld

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am asalkeld on github.
  • I am asalkeld (https://keybase.io/asalkeld) on keybase.
  • I have a public key whose fingerprint is 8417 81C4 3BE3 7E25 9E6C ED7B 5AC3 6012 F166 35A8

To claim this, I am signing this object:

@asalkeld
asalkeld / miniheat
Created June 28, 2013 03:49
Quick cfn parser using taskflow
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@asalkeld
asalkeld / gist:5138991
Created March 11, 2013 23:45
Heat template with nova scheduler hints passed from parameters.
{
"Parameters" : {
"KeyName" : {"Type" : "String"},
"my_hint": {"Type": "String"}
},
"Resources" : {
"JobServerConfig" : {
"Type" : "AWS::EC2::Instance",
"Properties": {
@asalkeld
asalkeld / cw.py
Created December 4, 2012 12:06
cw using wsme
import logging
import datetime
from pecan import request
#from pecan.rest import RestController
from wsme.types import Base, wsattr
import wsme
import wsme.pecan
from ceilometer import storage
@asalkeld
asalkeld / heat-wp.yaml
Created November 7, 2012 10:31
yaml heat wordpress
Description: 'Heat Sample Template WordPress_Single_Instance: WordPress
is web software you can use to create a beautiful website or blog. This template
installs a single-instance WordPress deployment using a local MySQL database to
store the data.'
Resources:
WikiDatabase:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
@asalkeld
asalkeld / instrument_hack.py
Created October 24, 2012 06:03
openstack common instrumentation poc
import time
import collections
TYPE_GAUGE = 'gauge'
TYPE_DELTA = 'delta'
TYPE_COUNTER = 'counter'
TYPE_GAUGE_TIME = 'gauge'
# for billing
Meter = collections.namedtuple('Meter',