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 | |
while getopts ":a:r:p" opt; do | |
case ${opt} in | |
a ) | |
account=$OPTARG | |
;; | |
r ) | |
rolename=$OPTARG |
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 | |
# git-cleanup-repo | |
# | |
# Author: Rob Miller <[email protected]> | |
# Adapted from the original by Yorick Sijsling | |
CLEANUP_REMOTE=${CLEANUP_REMOTE:-'no'} | |
git checkout master &> /dev/null |
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
import boto3 | |
import base64 | |
import time | |
import csv | |
client = boto3.client('iam') | |
### Credentials Report | |
response = client.generate_credential_report() | |
while (response['State'] != 'COMPLETE'): | |
time.sleep(1) |
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
##################### | |
# ssh-agent stuff # | |
##################### | |
# get the ssh agent started | |
SSH_ENV="$HOME/.ssh/environment" | |
KEY_LIST="~/.ssh/id_rsa ~/.ssh/first.lastnameJan2016.pem" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" |
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
require 'sidekiq/api' | |
require 'collectd' | |
def get_metrics(sidekiq_stats) | |
metrics = Hash.new() | |
[:enqueued, :failed, :processed, :scheduled_size, :retry_size].each do |name| | |
metrics[name] = sidekiq_stats.send(name) | |
end | |
metrics | |
end |
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
{ | |
"title": "Asterisk Dashboard", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
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
{ | |
"title": "Apache logs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
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
master_config | |
------ | |
file_roots: | |
base: | |
- /srv/salt | |
pillar_roots: | |
base: | |
- /srv/pillar | |
local_dev: | |
- /srv/local_dev/pillar/ |
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
FROM ubuntu:14.04 | |
MAINTAINER Liberty Young "[email protected]" | |
RUN apt-get update -y | |
RUN apt-get install -y git-core curl emacs vim | |
RUN apt-get install -y build-essential curl libxslt-dev libxml2-dev | |
# Default RVM install | |
#Set env just in case | |
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |