Skip to content

Instantly share code, notes, and snippets.

View bradly's full-sized avatar

Bradly Feeley bradly

  • San Diego, California
  • 15:59 (UTC -07:00)
View GitHub Profile
pastie was soo 2007
@bradly
bradly / gist:4232
Created August 6, 2008 16:23 — forked from defunkt/gist:4169
# by bryan helmkamp with slight modification by chris wanstrath
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow
module GitCommands
extend self
def diff_staging
`git fetch`
puts `git diff origin/production origin/staging`
end
- fields_for "profile[contact_attributes][]", contact do |c|
%label{:for => 'contact_first_name'} First Name
= c.text_field :first_name, :size => 25
%br
%label{:for => 'contact_last_name'} Last Name
= c.text_field :last_name, :size => 25
%br
%label{:for => 'contact_email'} Email Address
= c.text_field :email, :size => 25
%br
set :application, "expensetracker"
set :deploy_to, "/home/dh_username/#{application}"
set :scm, :git
set :use_sudo, false
set :repository, "git@subdomain.unfuddle.com:bradly/#{application}.git"
set :branch, "master"
set :deploy_via, :remote_cache
// ==UserScript==
// @name Twitter Cleanup
// @namespace Scrossics
// @description Clean up Twitter's new "promotion" area
// @include https://twitter.com/*
// @include http://twitter.com/*
// ==/UserScript==
var divs = document.getElementsByTagName("div");
require 'aggregator'
require 'showcase'
merb_feeds = Aggregator.new( [
'http://yehudakatz.com/feed/',
'http://feedproxy.feedburner.com/crazycool',
'http://www.merbing.com/articles.rss',
'http://blog.merbivore.com/articles.rss',
'http://merbist.com/feed/',
'http://feeds.feedburner.com/gweezlebur',
sudo gem uninstall -Ia dm-adjust && sudo gem uninstall -Ia dm-aggregates && sudo gem uninstall -Ia dm-ar-finders && sudo gem uninstall -Ia dm-cli && sudo gem uninstall -Ia dm-constraints && sudo gem uninstall -Ia dm-core && sudo gem uninstall -Ia dm-couchdb-adapter && sudo gem uninstall -Ia dm-is-list && sudo gem uninstall -Ia dm-is-nested_set && sudo gem uninstall -Ia dm-is-state_machine && sudo gem uninstall -Ia dm-is-tree && sudo gem uninstall -Ia dm-migrations && sudo gem uninstall -Ia dm-more && sudo gem uninstall -Ia dm-observer && sudo gem uninstall -Ia dm-querizer && sudo gem uninstall -Ia dm-rest-adapter && sudo gem uninstall -Ia dm-serializer && sudo gem uninstall -Ia dm-shorthand && sudo gem uninstall -Ia dm-sweatshop && sudo gem uninstall -Ia dm-timestamps && sudo gem uninstall -Ia dm-types && sudo gem uninstall -Ia dm-validations && sudo gem uninstall -Ia do_sqlite3 && sudo gem uninstall -Ia merb-action-args && sudo gem uninstall -Ia merb-assets && sudo gem uninstall -Ia
sudo gem uninstall -Ia dm-adjust && sudo gem uninstall -Ia dm-aggregates && sudo gem uninstall -Ia dm-ar-finders && sudo gem uninstall -Ia dm-cli && sudo gem uninstall -Ia dm-constraints && sudo gem uninstall -Ia dm-core && sudo gem uninstall -Ia dm-couchdb-adapter && sudo gem uninstall -Ia dm-is-list && sudo gem uninstall -Ia dm-is-nested_set && sudo gem uninstall -Ia dm-is-state_machine && sudo gem uninstall -Ia dm-is-tree && sudo gem uninstall -Ia dm-migrations && sudo gem uninstall -Ia dm-more && sudo gem uninstall -Ia dm-observer && sudo gem uninstall -Ia dm-querizer && sudo gem uninstall -Ia dm-rest-adapter && sudo gem uninstall -Ia dm-serializer && sudo gem uninstall -Ia dm-shorthand && sudo gem uninstall -Ia dm-sweatshop && sudo gem uninstall -Ia dm-timestamps && sudo gem uninstall -Ia dm-types && sudo gem uninstall -Ia dm-validations && sudo gem uninstall -Ia do_sqlite3 && sudo gem uninstall -Ia merb-action-args && sudo gem uninstall -Ia merb-assets && sudo gem uninstall -Ia
gem list dm | grep dm | cut -d ' ' -f 1,7 | xargs sudo gem uninstall -Ia
gem list do | grep do | cut -d ' ' -f 1,7 | xargs sudo gem uninstall -Ia
gem list merb | grep merb | cut -d ' ' -f 1,7 | xargs sudo gem uninstall -Ia
@bradly
bradly / gist:16171
Created October 10, 2008 22:35
Merb Stack Authentication Setup
# Merb Stack Authentication Setup
# create your app
$ merb-gen app authentication_app
$ cd authentication_app
# migrate the default user model
$ rake db:auto_migrate
# create a user