Skip to content

Instantly share code, notes, and snippets.

aws ec2 create-tags --resources $(wget -q -O- http://169.254.169.254/latest/meta-data/instance-id) --tags Key=Name,Value=DeploymentServer
@elmobp
elmobp / sc.py
Created September 28, 2016 23:30
######################################################################################################################
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance #
# with the License. A copy of the License is located at #
# #
# http://aws.amazon.com/asl/ #
# #
# or in the "license" file accompanying this file. This file is dist
#Interval 10
#ReadThreads 5
#LoadPlugin syslog
#<Plugin "syslog">
# LogLevel "err"
#</Plugin>
LoadPlugin logfile
<Plugin "logfile">
reporting-disabled = false
[meta]
dir = "/var/lib/influxdb/meta"
retention-autocreate = true
coffee scirpt
module.exports = (robot) ->
robot.respond /agile\s+(.+)/i, (msg) ->
input = msg.match[1]
cp = require "child_process"
encoded = new Buffer(input).toString('base64')
cp.exec "bundle exec ruby scripts/ruby/agile.rb #{encoded}", (error, stdout, stderr) ->
if error
msg.send "Error: #{error.code} - #{stderr}"
#!/bin/bash
set -eo pipefail
#
# MongoDB Backup Script
# VER. 0.20
# More Info: http://github.com/micahwedemeyer/automongobackup
# Note, this is a lobotomized port of AutoMySQLBackup
# (http://sourceforge.net/projects/automysqlbackup/) for use with
# MongoDB.