Public Gists by edbond

gist: 241074 Scribd
Gravatar
Mon Nov 23 05:41:09 -0800 2009
1
2
3
I am using rscribd (latest) to store and display private documents. I have no
problems displaying private docs but I need more security.
I added :secure_document => 1 to upload options hash and use
Gravatar
Mon Aug 03 04:07:12 -0700 2009
1
2
3
<!-- NOTE: some OPTIONS snipped -->
 
<h1>New Post</h1>
Gravatar
Sun Jul 26 07:23:53 -0700 2009
1
2
3
ubuntu 9.04
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
gem 1.3.5
Gravatar
Wed Jul 22 08:37:17 -0700 2009
1
2
3
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
gem 1.3.5
rspec 1.2.7
gist: 145688 Acl Treetop
Gravatar
Sun Jul 12 09:55:04 -0700 2009
1
2
3
# access_control :DEFAULT => '!guest'
# [:new, :create, :update, :edit] => '(admin | user | moderator)',
# :delete => 'admin & (!moderator & !blacklist)'
gist: 142769 erlang solution to project ...
Gravatar
Wed Jul 08 05:12:53 -0700 2009
1
2
3
-module(e224).
-compile(export_all).
%-export([start/0]).
Gravatar
Fri Jun 26 08:38:52 -0700 2009
1
2
3
require 'rubygems'
require 'couchrest'
 
Gravatar
Mon May 18 00:39:19 -0700 2009
1
2
3
diff --git a/app/controllers/admin/blogs_controller.rb b/app/controllers/admin/blogs_controller.rb
index ca3cdf2..390b53b 100644
--- a/app/controllers/admin/blogs_controller.rb
gist: 108672 FS benchmark (bonnie++)
Gravatar
Thu May 07 23:15:09 -0700 2009
1
2
3
cmd: bonnie++ -f
 
Ext4 on SSD
Gravatar
Tue May 05 06:24:04 -0700 2009
1
2
3
-module(freq).
-export([main/0]).
 
Gravatar
Tue Apr 14 07:48:13 -0700 2009
1
2
3
#!/usr/bin/ruby
#
# fetch new torrents from torrents.ru
Gravatar
Sat Apr 11 10:18:07 -0700 2009
1
2
3
#!/bin/bash
 
# usage: time benchbulk.sh dbname
Gravatar
Tue Apr 07 06:30:08 -0700 2009
1
2
3
#!/usr/bin/ruby
require 'rubygems'
require 'activesupport'
gist: 89691 twitterapp
Gravatar
Fri Apr 03 03:06:34 -0700 2009
1
2
3
app_name = ask("What is your application called?")
puts "\nBefore this generator runs you will need to register your Twitter application for OAuth at http://twitter.com/oauth_clients, then enter the consumer key and secret below:\n\n"
consumer_key = ask("OAuth Consumer Key:")
Gravatar
Tue Mar 10 23:26:38 -0700 2009
1
2
3
(This is the text of the keynote I gave at Startup Riot 2009. Will update when video becomes available.)
 
Hi everyone, I'm Chris Wanstrath, and I'm one of the co-founders of GitHub.
Gravatar
Mon Mar 02 12:55:11 -0800 2009
1
2
3
      ed out after 0ms (Selenium::CommandError)
      /usr/lib/ruby/gems/1.8/gems/selenium-client-1.2.12/lib/selenium/client/protocol.rb:13:in `remote_control_command'
      /usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
Gravatar
Mon Mar 02 08:35:06 -0800 2009
1
2
3
#
# cucumber.yml
#
Gravatar
Sat Feb 28 04:53:31 -0800 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'trollop'
Gravatar
Mon Feb 16 11:22:00 -0800 2009
1
2
3
Loading test environment (Rails 2.2.2)
>> User.last
=> #<User id: 4, login: "philo", first_name: "Philo", last_name: "Farnsworth", email: "philo@example.com", crypted_password: "2efc05636ee04f5f43946c70bcb3226d01a51c6a", salt: "da4b9237bacccdf19c0760cab7aec4a8359010b0", created_at: "2009-02-15 19:20:07", updated_at: "2009-02-16 19:20:07", remember_token: nil, remember_token_expires_at: nil, activation_code: "1b6453892473a467d07372d45eb05abc2031647a", activated_at: "2009-02-14 19:20:07", state: "active", deleted_at: nil, company_name: "Hotmail", address: nil, zip: nil, city: nil, company_phone: nil, phone: nil>
Gravatar
Mon Feb 16 10:53:40 -0800 2009
1
2
3
default: -b -r features/support/env.rb -r features/support/simple.rb -r features/step_definitions features/simple
selenium: -b -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced