Skip to content

Instantly share code, notes, and snippets.

#Relevant bis of orbited.cfg
[listen]
http://:8000
#stomp://:61613
# uncomment to enable SSL on port 8043 using given .key and .crt files
#https://:8043
#
#[ssl]
# Make sure to change the path to where rabbitmq lives.
# Put this file in /etc/rabbitmq/rabbitmq.conf and /etc/default/rabbitmq -- it either requires both or only the first. The documentation is uselessly out of date on this issue.
SERVER_START_ARGS='
-pa /path/to/rabbitmq-stomp/ebin
-rabbit
stomp_listeners [{"0.0.0.0",61613}]
extra_startup_steps [{"STOMP-listeners",rabbit_stomp,kickstart,[]}]'
actionmailer (2.3.4, 2.3.2)
actionpack (2.3.4, 2.3.2)
activemerchant (1.4.2)
activerecord (2.3.4, 2.3.2)
activeresource (2.3.4, 2.3.2)
activesupport (2.3.4, 2.3.2)
archive-tar-minitar (0.5.2)
authlogic (2.0.14)
builder (2.1.2)
capistrano (2.5.8)
script/console
Loading development environment (Rails 2.3.5)
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
>> 'foo'.delay.inspect
NoMethodError: undefined method `delay' for "foo":String
from (irb):1
>> 'foo'.send_later(:inspect)
=> #<Delayed::Backend::ActiveRecord::Job id: 10, priority: 0, attempts: 0, handler: "--- !ruby/struct:Delayed::PerformableMethod \nobject...", last_error: nil, run_at: "2010-05-29 03:31:04", locked_at: nil, failed_at: nil, locked_by: nil, created_at: "2010-05-29 03:31:04", updated_at: "2010-05-29 03:31:04">
>>
<?xml version="1.0" encoding="UTF-8" ?>
<design:SC.Page xmlns:design="http://foo.bar" xmlns:attr="http://foo.bar">
<attr:mainPane>
<design:SC.MainPane>
<attr:childViews>
<design:SC.View mixin="SC.Border" borderStyle="SC.BORDER_BOTTOM">
<attr:layout top="0" bottom="0" right="0" height="48" />
<attr:childViews>
<design:SC.LabelView controlSize="SC.LARGE_CONTROL_SIZE" fontWeight="SC.BOLD_WEIGHT" title="'Todos'">
<attr:layout centerY="0" height="24" left="8" width="200" />
@radicaled
radicaled / jammit.rb
Created April 6, 2011 04:50
A config initializer for Rails 3 + Heroku
unless Rails.env.development?
require 'fileutils'
output_folder = Rails.root.join("tmp", "jammit", "assets")
FileUtils.mkdir_p(output_folder)
# Heroku specific hack.
Jammit::Packager.class_eval do
def glob_files_with_heroku_hack(glob)
paths = glob_files_without_heroku_hack(glob)
# Heroku has a magical "public/javascripts/all.js" file. It is a Mystery.
<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'rails' %>
<%= javascript_include_tag 'application' %>
/* NO. NO. The above is /wrong/. */
<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'application' %>
/* every other javascript file you need */
<%= javascript_include_tag 'rails' %>
@radicaled
radicaled / .rubinius_last_error
Last active December 14, 2015 22:19
Random segfaults from rbx-2.0.0-rc1
Rubinius Crash Report #rbxcrashreport
Error: signal �SIGSEGV
[[Backtrace]]
0 ruby 0x0000000106c18aac _ZN8rubiniusL12segv_handlerEi + 316�
1 libsystem_c.dylib 0x00007fff8a13c8ea _sigtramp + 26�
2 ??? 0x00000001082e64a8 0x0 + 4432225448�
3 ruby 0x0000000106d1f308 _ZN8rubinius5Alias4Info9auto_markEPNS_6ObjectERNS_10ObjectMarkE + 424�
4 ruby 0x0000000106d515e2 _ZN8rubinius10Executable4Info4markEPNS_6ObjectERNS_10ObjectMarkE + 34�
@radicaled
radicaled / awful_coders.cs
Created August 14, 2013 01:12
A shitty reproduction of some shitty C# I dealt with years ago.
// Somewhere near the top of the file
void does_absolutely_nothing() {
return "0"
}
// Somewhere else in the same file.
boolean = does_absolutely_nothing();
if (boolean == "0")
return Boolean.parse("true");
else
@radicaled
radicaled / lazy.dart
Created January 8, 2014 00:40
Dart's lazy initialization in action.
var potatoSack = [];
var potato = buildPotato();
String buildPotato() {
var tater = 'a delicious potato';
potatoSack.add(tater);
return tater;
}
void main() {