Skip to content

Instantly share code, notes, and snippets.

@mpneuried
mpneuried / Makefile
Last active Aug 13, 2020
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
View Makefile
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@Ceralor
Ceralor / README.md
Last active Aug 13, 2020
Simple Thermometer
View README.md

thermostat

Simple elegant thermometer card for Home Assistant. Tweak as-needed!

@brolewis
brolewis / schedulers.py
Last active Jun 28, 2020
A distributed job scheduler for Celery using ZooKeeper (via kazoo) to manage the locking.
View schedulers.py
'''Zookeeper-based Scheduler'''
## Standard Library
import cPickle # Store dictionary in ZooKeeper
import datetime # Time delta
import socket # Hostname
## Third Party
import celery # Current app
import celery.beat # Scheduler
import celery.utils.log # Get logger
import kazoo.client # ZooKeeper Client Library
@zircote
zircote / Metadata.php
Created May 31, 2011
A Zend Framework class to fetch EC2 instance meta-data
View Metadata.php
<?php
require_once 'Zend/Service/Abstract.php';
/**
*
*
* @author zircote@zircote.com
*
* <code>
* <?php
* $metadata = new Zircote_Service_Ec2_Metadata;
View AuroraStuff.md

The mustache gotcha

When using “bound” objects in an .aurora file it is an absolute that you do not have spaces in the “mustaches”.

Examples:

  • Bad: {{ profile.my_var }}
  • Good: {{profile.my_var}}

Mesos Slave Constraints

When scheduling a task on aurora with Production=True, the 0.7-incubating scheduler will set a default constraint preventing more than one instance of the task on the same rack.

You can’t perform that action at this time.