Skip to content

Instantly share code, notes, and snippets.

View flyerhzm's full-sized avatar
🏠
Working from home

Richard Huang flyerhzm

🏠
Working from home
View GitHub Profile
/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'
puts <<ASCII
/´¯/)
,/¯ /
/ /
/´¯/' '/´¯¯`·¸
/'/ / / /¨¯\\
('( ´ ´ ¯~/' ')
\\ ' /
'' \\ _ ·´
\\ (
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;
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
--- 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'
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
git clone git://github.com/ezmobius/redis-rb.git
cd redis-rb/
rake redis:install
rake dtach:install
rake redis:start &
rake install
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
daemon off;
worker_processes 6;
user nobody nobody;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
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)