This file contains hidden or 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Temporary Workaround Concept for Facebook Bug 10005</title> | |
<!-- | |
Temporary workaround concept for Facebook Bug 10005 | |
http://bugs.developers.facebook.com/show_bug.cgi?id=10005 | |
From your friends at http://awe.sm/ | |
--> |
This file contains hidden or 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
#!/usr/bin/env ruby19 | |
require 'optparse' | |
# Report erros that are caused by invoking a method when | |
# an instance is not in the proper state to do so. | |
class StateError < Exception | |
end | |
# Instances of class Tee can send output to several destinations |
This file contains hidden or 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
class ApplicationController < ActionController::Base | |
include TwitterAuth::Helpers | |
helper :all | |
protect_from_forgery | |
rescue_from Twitter::Unauthorized, :with => :force_sign_in | |
private | |
def force_sign_in(exception) |
This file contains hidden or 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
#---------------------------------------------------------------------------- | |
# Git Setup | |
#---------------------------------------------------------------------------- | |
file '.gitignore', <<-FILE | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
public/uploads/* |
This file contains hidden or 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
# Rails template - first pass | |
# Culled stuff from Peter Cooper, Jeremy McAnally | |
# Run it like this | |
# ruby ~/rails/dev/edge_rails/vendor/rails/railties/bin/rails my_new_app -m http://gist.github.com/51326.txt | |
# Link to local copy of edge rails | |
inside('vendor') { run 'ln -s /Users/bobby/rails/dev/edge_rails/vendor/rails rails' } | |
# Delete unnecessary files |
This file contains hidden or 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
# Delete unnecessary files | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/images/rails.png" | |
run "rm public/javascripts/prototype.js" | |
run "rm public/javascripts/effects.js" | |
run "rm public/javascripts/dragdrop.js" | |
run "rm public/javascripts/controls.js" | |
# Copy database.yml for distribution use |
This file contains hidden or 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
# ignoring files | |
file ".gitignore", <<-TXT | |
log/*.log | |
tmp/**/* | |
db/*.sqlite3 | |
.DS_Store | |
Thumbs.db | |
TXT | |
# download pt-br i18n and configure environment |
This file contains hidden or 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
#template | |
#Constants | |
app_name = `pwd`.split('/').last.strip | |
rails_version = '2.3.2' | |
jquery_version = '1.3.2' | |
##### remove files ################# | |
run "rm README" | |
run "rm -rf test" |
This file contains hidden or 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
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git' | |
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git' | |
plugin 'restful-authentication', :git => 'git://github.com/technoweenie/restful-authentication.git' | |
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git' | |
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git' | |
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com' | |
rake("gems:install", :sudo => true) | |
This file contains hidden or 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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |