Skip to content

Instantly share code, notes, and snippets.

View Sutto's full-sized avatar

Darcy Laycock Sutto

View GitHub Profile
IRC server is located at ninjahideout.com running on port 6667
The webapp component can be accessed via http://ninjahideout.com:4000/ - use any username and password
If you want to point twitteriffic at it, please follow the instructions
at http://presentlyapp.com/blog/2008/10/presently-on-twitterrific
but use the baseUri of ninjahideout.com:4000
Rooms to join: #general, #all, #webjam and #eotw
require 'rubygems'
# Only load paths from the folder 'gems' under the current
# dir - e.g. ./gems/
# To freeze use gem install <name> -i gems
Gem.clear_paths
Gem.path.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'gems')) )
require 'model_extensions'
class X
extend ModelExtensions
can_has 'something', 'user' => 'demo'
end
Will try and load CanHasExtensions::X::Something and CanHasExtensions::X::User::Demo
located at app/behaviours/x/something.rb and app/behaviours/x/user/demo.rb
"localhost":
port: 6667
channels:
- "#webjam"
- "#eotw"
- "#general"
"irc.freenode.net":
port: 6667
channels:
- "#marvin-testing"
# Machinist blueprints.
# tied in with forgery
require 'bcrypt'
# Finally, the blueprints
User.blueprint do
login { InternetForgery.user_name }
display_name { NameForgery.full_name }
email { InternetForgery.email_address }
Marvin Ring Server Status
=========================
Ring Server: druby://0xDEADBEEF.local:52518
Unprocessed Items: 143
Earliest Item: 08:05AM 01/12/08
Latest Item: 08:10AM 01/12/08
PersonalForgery.
gender
abbreviated_gender
shirt_size
race
language
NameForgery.
last_name
first_name
Code [sutto]$ traceroute turbo.ubikorp.com
traceroute: Warning: turbo.ubikorp.com has multiple addresses; using 216.137.37.97
traceroute to d35l56os89q5xs.sfo4.cloudfront.net (216.137.37.97), 64 hops max, 40 byte packets
1 192.168.1.1 (192.168.1.1) 4.243 ms 1.540 ms 1.438 ms
2 lo1.rba-7206-f.wa.amnet.net.au (203.161.64.231) 7.384 ms 6.878 ms 7.364 ms
3 192.168.4.190 (192.168.4.190) 9.255 ms 28.072 ms 7.685 ms
4 ge0-2.br01.wa.amnet.net.au (203.161.64.9) 7.342 ms 7.328 ms 7.744 ms
5 vlan462.o6ss.optus.net.au (59.154.14.113) 7.737 ms 8.195 ms 8.108 ms
6 te-4-2.car2.SanJose1.Level3.net (4.79.42.229) 222.842 ms 222.604 ms 222.737 ms
7 ae-12-79.car2.SanJose2.Level3.net (4.68.18.76) 222.555 ms 222.622 ms 222.296 ms
>> TZInfo::Timezone.get("Etc/GMT").now
=> Mon Dec 15 06:24:55 UTC 2008
>> TZInfo::Timezone.get("Etc/GMT+12").now
=> Sun Dec 14 18:25:00 UTC 2008
// General PowWow Stylesheets
=round_corners( !radius_tl = 1em, !radius_tr = !radius_tl, !radius_br = !radius_tl, !radius_bl = !radius_tr )
:-moz-border-radius-topleft= !radius_tl
:-moz-border-radius-topright= !radius_tr
:-moz-border-radius-bottomleft= !radius_bl
:-moz-border-radius-bottomright= !radius_br
:-webkit-border-top-left-radius= !radius_tl
:-webkit-border-top-right-radius= !radius_tr
:-webkit-border-bottom-left-radius= !radius_bl