Skip to content

Instantly share code, notes, and snippets.

@bunchc
bunchc / Vagrantfile
Created April 28, 2015 20:06
Multi-Node Salt Minions & Master
# -*- mode: ruby -*-
# vi: set ft=ruby :
# If container_sync
# enable swift2
# configure swift and swift2 with container_sync configs (execute extra script at end)
# If dvr
# enable compute2
# configure compute and compute2 for dvr
@bunchc
bunchc / user_data_hardening.sh
Last active April 28, 2023 14:21
Script for hardening a box via user-data
#!/bin/bash
# user-data-hardening.sh
# Authors: Cody Bunch (bunchc@gmail.com)
#
# Script intended to be supplied as userdata to a cloud of some flavor.
# Enables some sane sysctl defaults, turns up iptables, and
# installs a HIDS / NIDS package
# Supply your email here
email_address="userdata@mailinator.com"
---
title: "lol"
date: 2015-06-29
layout: "post"
categories:
---
Your content here.
@bunchc
bunchc / hustle.sh
Last active August 29, 2015 14:26
Hustle till that bank account looks like a phone number.
0 9 * * * ~/scripts/hustle.sh
#hustle.sh
#! /bin/bash
# unblock the things
sudo sed -i '/127.0.0.1 facebook.com/d' /etc/hosts
sudo sed -i '/127.0.0.1 slack.com/d' /etc/hosts
# he said 10 minutes
@bunchc
bunchc / C2OS-TOC.md
Created September 24, 2015 05:02
Couch to OpenStack Two

Couch to OpenStack - Reboot!

  • Episode 1: What's New? & Getting Ready
    • What's New?
    • Lab Overview
      • Why our own install vs packstak/ansible/chef/other
    • Prerequsites for the rest of the series
      • Install Vagrant
      • Git
  • Download the box(es) for the class
Abstract:
Batman is amazing. Lots of gadgets, tools, does lots of good and then some, right? What happens when he burns out? In this session we will interactively explore the traits of the superhero(s) of your IT organisation. You will then build a number of skills, tools, and resources for helping transform either yourself or the superhero on your team into a force multiplier. That is, we will show you the power of, and teach you how to build, your Robin.
@bunchc
bunchc / DointItWrong.md
Last active June 17, 2016 15:03
Boston VMUG Speaker Notes

Automation - You're doing it wrong

Automation has been a major topic at IT conferences more or less forever. Be it batch files, PowerShell, VCO (you know, before they renamed it). We've even had movements towards automating IT workloads at scale... DevOps, etc. In this talk, we aim, not to cover whatever is the latest and greatest in tactical tools for automation. Rather, our aim is to equip you with the mental models to help resolve some of the underlying issues that prevent IT teams from achieving the goal of having a more automated system, by approaching the problem with a different mindset.

  • Introductions
    • Who is Cody
    • About the space
  • Processes
    • The Credit Union
  • Standard Operating Procedure(s)
@bunchc
bunchc / skypecall.py
Created August 9, 2016 20:50 — forked from pwc3/skypecall.py
Python script for Mac OS X to call a number in Skype then send an arbitrary DTMF string.
#!/usr/bin/env python
# Idea taken from:
# http://community.skype.com/t5/Mac/Re-Pause-option-when-dialing/td-p/731820
import argparse
import codecs
import re
import subprocess
import sys
@bunchc
bunchc / virt-addr.sh
Created October 11, 2016 16:06 — forked from kevteljeur/virt-addr.sh
Get a KVM guest's IP address
#!/bin/bash
# Returns the IP address of a running KVM guest VM
# Assumes a working KVM/libvirt environment
#
# Install:
# Add this bash function to your ~/.bashrc and `source ~/.bashrc`.
# Usage:
# $ virt-addr vm-name
# 192.0.2.16
#
@bunchc
bunchc / docker-compose up -d
Created December 11, 2016 18:14
docker-compose against swarm
ERROR: compose.cli.main.main: Unable to find a node that satisfies the following conditions
[port 5000 (Bridge mode)]
[available container slots]
[--link=rpidockerelk_elasticsearch_1:elasticsearch --link=rpidockerelk_elasticsearch_1:elasticsearch_1 --link=rpidockerelk_elasticsearch_1:rpidockerelk_elasticsearch_1]
[image==rpidockerelk_logstash (soft=false)]