Skip to content

Instantly share code, notes, and snippets.

@dmac
dmac / gist:6996258
Created October 15, 2013 18:25
ansible dict iteration
---
- hosts: localhost
vars:
- foo:
a: 1
b: 2
c: 3
tasks:
- debug: msg="{{ item }} is {{ foo[item] }}"
with_items: foo|list
@mrinaudo
mrinaudo / LICENSE
Last active October 27, 2021 18:37
Basic Template Builder for AWS VPC - Interactively generate basic AWS CloudFormation-based AWS VPC templates.
The MIT License (MIT)
Copyright (c) 2014 Matteo Rinaudo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@fengler
fengler / LICENSE.txt
Last active August 2, 2017 11:08
sg-creator
The MIT License (MIT)
Copyright (c) [2013] [Fanya Engler]
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@tamirko
tamirko / osDetect.groovy
Created May 7, 2013 19:48
OS detection
def os = OperatingSystem.getInstance()
def currVendor=os.getVendor()
switch (currVendor) {
case ["Ubuntu", "Debian", "Mint"]:
//Do Something #1
break
case ["Red Hat", "CentOS", "Fedora", "Amazon",""]:
//Do Something #2
break
case ~/.*(?i)(Microsoft|Windows).*/:
@therobot
therobot / elastic-ip
Created March 29, 2013 12:50
Elastic IP corosync resource agent
#!/bin/bash
###############################################################################
# CONFIG
# AWS config
export AWS_SECRET_KEY="XXXX"
export AWS_ACCESS_KEY="XXXX"
export PATH=$PATH:/usr/local/aws/ec2/bin
export EC2_HOME=/usr/local/aws/ec2/
@jpfuentes2
jpfuentes2 / rbenv-install-system-wide.sh
Created March 8, 2012 19:47
CentOS: rbenv install and system wide install
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core

m1.large

Single mounted EBS, XFS

Iozone: Performance Test of File I/O
        Version $Revision: 3.308 $
  Compiled for 64 bit mode.
  Build: linux

Run began: Sun Aug 22 19:35:33 2010