Skip to content

Instantly share code, notes, and snippets.

View gosuri's full-sized avatar

Greg Osuri gosuri

View GitHub Profile
@gosuri
gosuri / text-mate-full-screen.sh
Created August 15, 2011 20:59
text-mate-full-screen.sh
#!/bin/sh
# Install EGO TextMateFullScreen Plugin for TextMate
# Usage : bash <(curl -s https://raw.github.com/gist/1147847/2a312eb2ebf91c3eb04cc15328dc5fa1f064b199/text-mate-full-screen.sh)
git clone https://github.com/enormego/EGOTextMateFullScreen.git /tmp/EGOTextMateFullScreen
/usr/bin/xcodebuild -project /tmp/EGOTextMateFullScreen/EGOTextMateFullScreen.xcodeproj -target EGOTextMateFullScreen
open /tmp/EGOTextMateFullScreen/build/Release/EGOTextMateFullScreen.tmplugin
@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