Skip to content

Instantly share code, notes, and snippets.

@tekverkp
tekverkp / AWS - EBS Snapshot Management
Created May 3, 2012 15:47 — forked from corck/AWS - EBS Snapshot Management
Simple script for creating snapshots of an EBS volume and keeping a certain number of those
#!/usr/local/bin/ruby
require 'AWS'
require 'yaml'
class SnapshotManagement
# initalize class, optional override path to yml file
# * options [String] :path ('')
#
def initialize(params = {})
@tekverkp
tekverkp / pic2graph.sh
Created March 2, 2012 19:58 — forked from sergejx/pic2graph.sh
pic2graph script from groff-1.20.1
#! /bin/sh
#
# pic2graph -- compile PIC image descriptions to bitmap images
#
# by Eric S. Raymond <esr@thyrsus.com>, July 2002
# In Unixland, the magic is in knowing what to string together...
#
# Take a pic/eqn diagram on stdin, emit cropped bitmap on stdout.
# The pic markup should *not* be wrapped in .PS/.PE, this script will do that.