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
puts "hello" |
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 update --system' is broken in Rubygems 1.2.0, so if you have 1.2.0, run this | |
sudo gem install rubygems-update && sudo update_rubygems && sudo gem uninstall geminstaller -v 0.4.5; sudo gem install geminstaller -v 0.4.5 | |
# OR if you have an older rubygems version, like 1.0.1, you should install from a tarball like this, because the above method hangs due to cache performance problems | |
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz | |
tar -zxvf rubygems-1.3.1.tgz | |
cd rubygems-1.3.1 | |
sudo ruby setup.rb | |
sudo gem uninstall geminstaller -v 0.4.5; sudo gem install geminstaller -v 0.4.5 |
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
OS X Subversion Hack: Make sure user has svn credentials cached in cleartest | |
* NOTE: this is a hack, but otherwise the --non-interactive flag does not work, which is required for cruise. We should find out the root cause, see this bug: http://www.pivotaltracker.com/story/show/233525 | |
* NOTE: You will need the projectuser's SVN password for this step. | |
* make sure you are logged in as the projectuser | |
rm -rf ~/.subversion | |
* Run the Utilities/Keychain Access app - delete all login entries. | |
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
#### Example of CruiseControl.rb cruise_config.rb which dynamically picks #### | |
#### the version of Rails to use based on CCRB project name #### | |
# cruise_config.rb: | |
require 'fileutils' | |
Project.configure do |project| | |
project.email_notifier.emails = ["chad+sandbox-ci-#{Socket.gethostname.chomp.downcase}@mycompany.com"] | |
require "#{File.dirname(__FILE__)}/vendor/plugins/shared_stuff/lib/cruise/mycompany_cruise_config.rb" |
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
My gmail was spam-blocked by comcast, so pasting it here... | |
---------- Forwarded message ---------- | |
From: Chad Woolley <thewoolleyman@gmail.com> | |
Date: Thu, Jan 15, 2009 at 12:39 AM | |
Subject: Re: "Innovation Comes in Many Forms" | |
To: Charles Hugh Smith <csmith@oftwominds.com> | |
I enjoy reading your blog a lot, you are a positive and progressive |
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
# http://www.jamesbritt.com/2007/12/18/sending-mail-through-gmail-with-ruby-s-net-smtp | |
# http://d.hatena.ne.jp/zorio/20060416 | |
require "openssl" | |
require "net/smtp" | |
Net::SMTP.class_eval do | |
private | |
def do_start(helodomain, user, secret, authtype) | |
raise IOError, 'SMTP session already started' if @started |
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
class User < ActiveRecord::Base | |
require 'digest/md5' | |
validates_presence_of :email, :password | |
def self.authenticate(email, password) | |
User.find_by_email_and_password(email, Digest::MD5.hexdigest(password)) | |
end | |
def password=(password) |
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
#!/bin/s | |
sudo port selfupdate | |
sudo port upgrade outdated | |
sudo port clean gobby | |
sudo port -d install gobby 2>&1 | tee gobby.log | |
# If any gobby dependency fails to build/install, | |
# try "sudo port clean --work <whatever package won't install>", | |
# then try to install gobby again. | |
# See http://trac.macports.org/ticket/20159 and http://trac.macports.org/ticket/20183 |
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
Gist sucks, keeps truncating my stuff - see http://pastie.org/617998 |
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
diff --git a/ci/ci_build.rb b/ci/ci_build.rb | |
index 101edce..ab627b9 100755 | |
--- a/ci/ci_build.rb | |
+++ b/ci/ci_build.rb | |
@@ -65,7 +65,7 @@ cd "#{root_dir}/actionpack" do | |
puts | |
puts "[CruiseControl] Building ActionPack" | |
puts | |
- build_results[:actionpack] = system 'rake' | |
+ build_results[:actionpack] = system 'gem bundle && rake' |
OlderNewer