Skip to content

Instantly share code, notes, and snippets.

Robert Allen zircote

Block or report user

Report or block zircote

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cloudera-cdh5.repo
name=Cloudera's Distribution for Hadoop, Version 5
humanname=Cloudera's Distribution for Hadoop, Version 5
zircote /
Last active Nov 12, 2015
Marathon Config writer for NGINX
from jinja2 import Template
import json
import httplib2
import argparse
user www-data;
worker_processes 4;
pid /run/;
daemon off;
from boto import route53
r53 = route53.connect_to_region(region_name='us-east-1')
dev_aws = r53.get_zone('my-domain.local')
with open('hosts') as host:
i = 0
rrs = route53.record.ResourceRecordSets(r53,
for line in host.readlines():
zircote / attribute-resolver.xml
Created Jul 3, 2014
Multiple Account support for AWS Federation and Shibboleth
View attribute-resolver.xml
<resolver:AttributeDefinition id="transientId" xsi:type="ad:TransientId">
<resolver:AttributeEncoder xsi:type="enc:SAML1StringNameIdentifier"
<resolver:AttributeEncoder xsi:type="enc:SAML2StringNameID"
<resolver:AttributeDefinition id="awsRoles" xsi:type="ad:Mapped" sourceAttributeID="memberOf">
<resolver:Dependency ref="myLDAP"/>
zircote /
Last active May 15, 2018
fixed yo shit
#!/usr/bin/env python
EC2 external inventory script
Generates inventory that Ansible can understand by making API request to
AWS EC2 using the Boto library.
NOTE: This script assumes Ansible is being executed where the environment
zircote /
Last active Aug 29, 2015
Receive AWS/Notifications and fire an event into Salt Stack
from flask import Flask
from flask import request
import os
import logging
import json
log = logging.getLogger(__name__)
app = Flask(__name__)
'access_key': None,
zircote / elasticsearch.docker
Last active Aug 29, 2015
Experimental dockerfiles
View elasticsearch.docker
# ElasticSearch Dockerfile
FROM centos:6.4
RUN yum install -q -y which java-1.7.0-openjdk java-1.7.0-openjdk-devel
RUN update-alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
RUN yum install -y -q
EXPOSE 9200 9300
zircote /
Last active Aug 29, 2015
My Docker Cheat Shit erm Sheet
# This is my collection of docker shit as I try to fit it all into my head.
# Feel free to add
### Runs the Registry Container
docker run -d -p 5000:5000 -v /etc/docker:/registry-conf -e DOCKER_REGISTRY_CONFIG=/registry-conf/config.yaml registry
### Removes Stopped Containers
docker rm -f $(docker ps -a -q)
### Removes untagger Containers
class PeriodicInterval(object):
def __init__(self, second=None, minute=None, hour=None, day=None, week=None, month=None, year=None):
:param second:
:param minute:
zircote /
Created Apr 2, 2014
provides object instance of iam credentials
# -*- coding: utf-8 -*-
# This file is part of Ansible
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
You can’t perform that action at this time.