Skip to content

Instantly share code, notes, and snippets.

View danlherman's full-sized avatar

Dan Herman danlherman

  • intraTechs
  • West Chester, PA
View GitHub Profile
@danlherman
danlherman / bb-change-url
Last active December 9, 2015 13:57
script to create a url for showing the changes between the last two git tags for bitbucket
#!/bin/bash
#
# This utility creates a bitbucket URL for showing the changes between the last two tags for the
# git repo you are currently in.
#
# To install this place this file in your /usr/local/bin folder and
# chmod +x the file so it has execution rights. Then run 'bb-change-url' from any git repo.
#
# Dan Herman
#
@danlherman
danlherman / gen_ssh_config.rb
Created November 16, 2015 15:20
create ssh_config dynamically from AWS / Opsworks server list
#!/usr/bin/ruby
#
# run this command (chmod +x this file first) with username as first parameter to automatically create
# an SSH config file with all of your servers from opsworks
#
class SSHConfig
require 'json'
require 'erb'
@danlherman
danlherman / remove-opsworks-security-groups.sh
Last active August 29, 2015 14:13 — forked from marknca/remove-opsworks-security-groups.sh
Added Ruby Flow Server and Java App Server to group removal list
#! /usr/bin/env bash
# Remove OpsWorks security groups from the given region
# Available regions:
# ====================
# ap-northeast-1 => Asia Pacific (Tokyo) Region
# ap-southeast-1 => Asia Pacific (Singapore) Region
# ap-southeast-2 => Asia Pacific (Sydney) Region
# eu-west-1 => EU (Ireland) Region