This file contains 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
$ aws ec2 describe-instances --filter file://filters/elasticsearch.json --debug | |
2014-03-12 18:01:59,468 - awscli.clidriver - DEBUG - CLI version: aws-cli/1.3.1 Python/2.7.6 Darwin/13.1.0, botocore version: 0.35.0 | |
2014-03-12 18:01:59,468 - botocore.service - DEBUG - Creating service object for: ec2 | |
2014-03-12 18:01:59,468 - botocore.base - DEBUG - Attempting to load: aws/ec2 | |
2014-03-12 18:01:59,536 - botocore.base - DEBUG - Found data file: /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/botocore/data/aws/ec2.json | |
2014-03-12 18:01:59,536 - botocore.hooks - DEBUG - Event service-data-loaded.ec2: calling handler <function signature_overrides at 0x10bc81a28> | |
2014-03-12 18:01:59,536 - botocore.hooks - DEBUG - Event service-created: calling handler <function register_retries_for_service at 0x10bc81848> | |
2014-03-12 18:01:59,536 - botocore.handlers - DEBUG - Registering retry handlers for service: Service(ec2) | |
2014-03-12 18:01:59,536 - botocore.service - DEBUG - Crea |
This file contains 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
# !/usr/bin/env python | |
""" | |
Example Usage: | |
--- | |
- debug: msg="{{ ansible_eth0.ipv4.address | ip2long }}" | |
""" | |
from socket import inet_aton | |
from struct import unpack |
This file contains 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
#!/usr/bin/python | |
# -*- 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. | |
# |
This file contains 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
class PeriodicInterval(object): | |
""" | |
:see: http://en.wikipedia.org/wiki/Iso8601#Durations | |
""" | |
def __init__(self, second=None, minute=None, hour=None, day=None, week=None, month=None, year=None): | |
""" | |
:param second: | |
:param minute: |
This file contains 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
#/bin/bash | |
# 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 |
This file contains 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
# | |
# 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 https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.noarch.rpm | |
EXPOSE 9200 9300 | |
This file contains 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
from flask import Flask | |
from flask import request | |
import os | |
import logging | |
import json | |
log = logging.getLogger(__name__) | |
app = Flask(__name__) | |
AWS_CREDENTIALS = { | |
'access_key': None, |
This file contains 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
<resolver:AttributeDefinition id="transientId" xsi:type="ad:TransientId"> | |
<resolver:AttributeEncoder xsi:type="enc:SAML1StringNameIdentifier" | |
nameFormat="urn:mace:shibboleth:1.0:nameIdentifier"/> | |
<resolver:AttributeEncoder xsi:type="enc:SAML2StringNameID" | |
nameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:transient"/> | |
</resolver:AttributeDefinition> | |
<resolver:AttributeDefinition id="awsRoles" xsi:type="ad:Mapped" sourceAttributeID="memberOf"> | |
<resolver:Dependency ref="myLDAP"/> | |
<resolver:AttributeEncoder |
This file contains 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
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, dev_aws.id) | |
for line in host.readlines(): |
This file contains 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
[cloudera-cdh5] | |
name=Cloudera's Distribution for Hadoop, Version 5 | |
gpgcheck=1 | |
gpgkey=http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera | |
baseurl=http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/ | |
humanname=Cloudera's Distribution for Hadoop, Version 5 | |
#http://mirror.centos.org/centos/$releasever/os/$basearch/ |
OlderNewer