Skip to content

Instantly share code, notes, and snippets.

View mscansian's full-sized avatar

Matheus Cansian mscansian

View GitHub Profile
@mscansian
mscansian / rabbitmq-cloudwatch-metric.sh
Last active December 12, 2018 11:51
Push RabbitMQ statistics to CloudWatch. First argument is the vhost.
#! /bin/bash
STATS2READ=( messages consumers )
# Namespace
NS=RabbitMQ
REGION=us-east-2
# Instance ID
EC2ID=$(ec2metadata --instance-id)
@mscansian
mscansian / Makefile
Last active October 22, 2015 18:49 — forked from andris9/git-cache-meta.sh
git-cache-perm
.PHONY: install
install:
cp git-cache-perm.sh /usr/bin/git-cache-perm
chmod 755 /usr/bin/git-cache-perm