This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pastie was soo 2007 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer