Skip to content

Instantly share code, notes, and snippets.

Dan Herman danlherman

  • intraTechs
  • West Chester, PA
Block or report user

Report or block danlherman

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
@danlherman
danlherman / gen_ssh_config.rb
Created Nov 16, 2015
create ssh_config dynamically from AWS / Opsworks server list
View gen_ssh_config.rb
#!/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 / bb-change-url
Last active Dec 9, 2015
script to create a url for showing the changes between the last two git tags for bitbucket
View bb-change-url
#!/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 / remove-opsworks-security-groups.sh
Last active Aug 29, 2015 — forked from marknca/remove-opsworks-security-groups.sh
Added Ruby Flow Server and Java App Server to group removal list
View remove-opsworks-security-groups.sh
#! /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
You can’t perform that action at this time.