This file contains hidden or 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 bash | |
# Written by: https://github.com/elocnatsirt | |
# This will download any valid Hashicorp product you specify if it exists. | |
# This script has been tested on OSX. | |
NORM=`tput sgr0` | |
BOLD=`tput bold` | |
function show_help { |
This file contains hidden or 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 | |
# AMI Locator that grabs the latest image with options you have specified. | |
# | |
# Written By: https://github.com/elocnatsirt | |
# Options: | |
# -a = AWS_PROFILE to search for images with | |
# -r = Operating system release (IE 7 for CentOS 7) | |
# -v = Operating system version (IE CentOS or Ubuntu) |
This file contains hidden or 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
#!/opt/sensu/embedded/bin/ruby | |
# | |
# Original: https://github.com/sensu-plugins/sensu-plugins-hipchat/blob/master/bin/handler-hipchat.rb | |
# Modified by: https://github.com/elocnatsirt | |
# Sensu Handler: hipchat | |
# | |
# This handler script is used to send notifications to Hipchat rooms. | |
# | |
# Input: | |
# @event - Event attributes. |
This file contains hidden or 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 | |
# Written By: https://github.com/elocnatsirt | |
# This script will curl the instance metadata and output useful values | |
# If the system isn't in AWS it will succeed with a relevant message | |
instance_id=`curl --silent http://169.254.169.254/latest/meta-data/instance-id` | |
instance_type=`curl --silent http://169.254.169.254/latest/meta-data/instance-type` |
This file contains hidden or 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 ruby | |
# | |
# This script queries flume to get metrics and pipes them into graphite format | |
# Written By: https://github.com/elocnatsirt | |
# Options: | |
# -h = host that you want to query - defaults to localhost | |
# -p = port of the flume node you want to query - defaults to 41414 | |
require 'socket' |
This file contains hidden or 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 ruby | |
# | |
# This script gets Finagle metrics from various applications | |
# Written By: https://github.com/elocnatsirt | |
# Options: | |
# -h = host that you want to query - defaults to localhost | |
# -p = port of the nimbus node you want to query - defaults to 9990 | |
require 'socket' |
This file contains hidden or 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 | |
# Written By: https://github.com/elocnatsirt | |
# Options: | |
# -r = Region of the beanstalk environment | |
# -n = Name of the beanstalk environment | |
# extract options and their arguments into variables. | |
while getopts 'r:n:' OPT; do |