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
/opt/local/bin/ruby -I"lib:test" "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/integration/agent_test.rb" "test/integration/book_test.rb" "test/integration/bookshelf_test.rb" "test/integration/chapter_test.rb" "test/integration/helpers/left_nav_test.rb" "test/integration/helpers/local_app_controlls_test.rb" "test/integration/model_test.rb" "test/integration/page_test.rb" "test/integration/rule_test.rb" "test/integration/sessions_test.rb" "test/integration/url_mapper_test.rb" "test/integration/user_test.rb" | |
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
FF..FF............E. | |
Finished in 38.243175 seconds. | |
1) Failure: | |
test: The public an agent should create_agent_when_logged_in. (AgentTest) | |
[/test/integration/agent_test.rb:39:in `__bind_1256130558_905613' | |
vendor/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `call' |
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 <<ASCII | |
/´¯/) | |
,/¯ / | |
/ / | |
/´¯/' '/´¯¯`·¸ | |
/'/ / / /¨¯\\ | |
('( ´ ´ ¯~/' ') | |
\\ ' / | |
'' \\ _ ·´ | |
\\ ( |
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
if(!UserVoice){var UserVoice={};} | |
UserVoice.Util={ | |
sslAssetHost:"https://cdn.uservoice.com", | |
assetHost:"http://cdn.uservoice.com", | |
getAssetHost:function(){ | |
return("https:"==document.location.protocol)?this.sslAssetHost:this.assetHost; | |
}, | |
render:function(template,params){ | |
return template.replace(/\#{([^{}]*)}/g,function(a,b){ | |
var r=params[b];return typeof r==='string'||typeof r==='number'?r:a; |
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 | |
has_attached_file :avatar, :styles => {:thumb => '100x100>'} | |
end | |
########### | |
class CreateUsers < ActiveRecord::Migration | |
def self.up | |
create_table :users do |t| | |
t.string :avatar_file_name |
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
--- ruby18-growl.rb 2005-11-14 21:15:15.000000000 -0800 | |
+++ ruby-growl.rb 2009-11-22 00:47:06.000000000 -0800 | |
@@ -2,7 +2,7 @@ | |
$TESTING = false unless defined? $TESTING | |
-require 'md5' | |
+require 'digest/md5' | |
require 'socket' | |
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
b64 = Base64.b64encode(File::read(cert_file), 64) | |
pem = "-----BEGIN CERTIFICATE-----\n#{b64}-----END CERTIFICATE-----\n" | |
cert = OpenSSL::X509::Certificate.new(pem) | |
public_key = cert.public_key |
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
git clone git://github.com/ezmobius/redis-rb.git | |
cd redis-rb/ | |
rake redis:install | |
rake dtach:install | |
rake redis:start & | |
rake install |
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 | cut -d" " -f1 | xargs gem uninstall -aIx |
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
daemon off; | |
worker_processes 6; | |
user nobody nobody; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
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
As the nightly build will fail with nginx-gridfs, we have to compile mongodb | |
from scratch and use the fresh libmongoclient.a version. | |
1) Install neccessary dependencies for Ubuntu | |
apt-get -y install tcsh git-core scons g++ | |
apt-get -y install libpcre++-dev libboost-dev libreadline-dev libmozjs-dev | |
2) Get the source from github and compile it (Note we do not need to run scons | |
install, because we only need the libmongoclient.a) |