Skip to content

Instantly share code, notes, and snippets.

View ymcdull's full-sized avatar

Yunfeng Zhu ymcdull

  • Glasgow
View GitHub Profile
@ymcdull
ymcdull / ebs snapshot
Created April 15, 2016 12:44
ebs snapshot
#!/bin/bash
# ebs-snapshot.sh. Performs and validates EBS snapshots.
# snapshot date format 20111118-2305
snapshot_date=`date +s%Y%m%d-%H%M`
# Set name of script
progname=${0##*/} ## Get the name of the script without its path
@ymcdull
ymcdull / rds.py
Created April 14, 2016 14:23
launch/destroy AWS RDS instances
#!/usr/bin/env python
import sys, os
import boto
def print_usage():
print """
mysqlrds launch <id>
mysqlrds status <id>
mysqlrds destroy <id>
"""