Skip to content

Instantly share code, notes, and snippets.

View gosuri's full-sized avatar

Greg Osuri gosuri

View GitHub Profile
@gosuri
gosuri / backup.rake
Created May 5, 2011 20:58
Backup script to take a snapshot of the database and upload to Rockspace Cloud Files
# Backup script to take a snapshot of the database and upload to Rockspace Cloud Files
# also manages the no of backups to keep.
#
# Note: You will require a Rackspace Cloud account, more details @ http://www.rackspace.com/cloud/
#
# -------------
# Configuration
# -------------
# The script uses the database.yml for configuration. Backup database details should be
# provided for the appropriate environment.
@gosuri
gosuri / baby_rocker.sh
Created November 24, 2010 20:06
Simple script to put a baby to sleep
#!/bin/sh
while [ 1 = 1 ]
do
#eject cdrom
eject
# pull the tray back in
eject -t
done