Skip to content

Instantly share code, notes, and snippets.

View jeffpoulton's full-sized avatar

Jeff Poulton jeffpoulton

View GitHub Profile
poulton:Applications -->chrome-ssb.sh
What should the Application be called?
Gmail
What is the url (e.g. https://www.google.com/calendar/render)?
https://mail.google.com/mail/u/0/
What is the full path to the icon (e.g. /Users/username/Desktop/icon.png)?
/Users/poulton/Dropbox/Rocketmade/app\ icons/gmail-orangish.icns
poulton:Applications -->
@jeffpoulton
jeffpoulton / create_admin.rake
Created January 6, 2011 19:13
Create Devise Admin Rake Task
include Rails.application.routes.url_helpers
begin
namespace :admin do
task :create => :environment do
puts "You will be prompted to enter an email address and password for the new admin"
puts "Enter an email address:"
email = STDIN.gets
puts "Enter a password:"
password = STDIN.gets
This is an example of using RVM's Project .rvmrc file
to have it automatically bootstrap your environment, including bundler.
This could be further expanded to do anything you require :)
The important thing to remember is that the purpose of these files is
to allow you to very easily have your 'project context' (aka 'environment')
loaded automatically for you when you enter the project in the shell (cd).
You can generate the .rvmrc file below by running: