This file contains hidden or 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
# IRBRC file by Iain Hecker, http://iain.nl | |
# put all this in your ~/.irbrc | |
require 'rubygems' | |
require 'yaml' | |
alias q exit | |
class Object | |
def local_methods | |
(methods - Object.instance_methods).sort |
This file contains hidden or 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
a=Nanite.request('/integra_out/command', 45805) | |
=> #<Nanite::Job:0x74b6d90 @intermediate_state={}, @targets=["nanite-integra3"], @request=#<Nanite::Request:0x74be860 @selector=:least_loaded, @size=nil, @from="mapper-9a828281d56e78c397d2f41ee0f4f28b", @target=nil, @type="/integra_out/command", @tags=[], @token="f7e9b788f368047be12ff7daaa4abc3b", @persistent=false, @reply_to="mapper-9a828281d56e78c397d2f41ee0f4f28b", @payload=45805>, @results={}, @completed=nil, @pending_keys=[], @token="f7e9b788f368047be12ff7daaa4abc3b", @intermediate_handler=nil> | |
>> [Thu, 24 Jun 2010 17:24:30 -0300] ERROR: RECV [result] Could not load "--- !ruby/object:Nanite::Result \nfrom: nanite-integra3\nresults: &id003 !ruby/object:MQ::Exchange \n key: \n mq: &id002 !ruby/object:MQ \n _send_mutex: !ruby/object:Mutex {}\n\n callbacks: \n channel: 1\n connection: &id001 !ruby/object: \n _channel_mutex: !ruby/object:Mutex {}\n\n buf: !ruby/object:AMQP::Buffer \n data: \"\"\n pos: 0\n callbacks: []\ |
This file contains hidden or 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
def self.can?(current_user, *args) | |
opts = [] | |
(args.size / 2).times { opts << [args.shift, args.shift] } | |
return true if opts.empty? | |
accept = false | |
for controller, action in opts | |
controller = controller.to_s if controller.is_a? Symbol |
This file contains hidden or 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 SearchPlugin < CrazyDoll::Plugin | |
config do |c| | |
c.gem 'ruby-web-search' | |
c.key :number_of_results, 3, 'Number of results to be displayed' | |
c.register 'g', '**query', :google, [:chan, :priv] | |
end | |
def google | |
return if c.number_of_results <= 0 |
This file contains hidden or 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
➜ ~/Trabalhos/Ruby/Rails/rtrac $ rake db:seed --trace (master) | |
(in /home/renan/Trabalhos/Ruby/Rails/rtrac) | |
** Invoke db:seed (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
Starting Nanite mapper... | |
Starting Nanite mapper... | |
[Thu, 25 Feb 2010 10:56:46 -0400] INF |
This file contains hidden or 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
/home/renan/.rvm/gems/ree-1.8.7-2009.10/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant Test::Unit::TestResult::TestResultFailureSupport (NameError) | |
from /home/renan/.rvm/gems/ree-1.8.7-2009.10/gems/test-unit-2.0.6/lib/test/unit/testresult.rb:28 | |
from /home/renan/.rvm/ree-1.8.7-2009.10/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /home/renan/.rvm/ree-1.8.7-2009.10/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /home/renan/.rvm/gems/ree-1.8.7-2009.10/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' | |
from /home/renan/.rvm/gems/ree-1.8.7-2009.10/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
from /home/renan/.rvm/gems |
This file contains hidden or 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
[Desktop Entry] | |
Comment[pt_BR]= | |
Comment= | |
Exec=kdesu pppoeconf | |
GenericName[pt_BR]=Conecta a internet | |
GenericName=Conecta a internet | |
Icon=internet-web-browser | |
MimeType= | |
Name[pt_BR]=Conectar a Internet | |
Name=Conectar a Internet |
This file contains hidden or 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
--- | |
:timestamp: 1234567890 | |
:games: | |
- :name: Beats Of Rage | |
:website: http://www.senileteam.com | |
:video: http://www.youtube.com/watch?v=AmpGbe1oiag | |
:article: http://ubuntugames.org/pt/acao-aventura/30-beats-of-rage | |
:category: action_adventure | |
:rate: 5 | |
:license: Freeware |
This file contains hidden or 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
Processing PackagesController#search (for 127.0.0.1 at 2009-05-08 18:08:35) [GET] | |
Parameters: {"version"=>"3_0", "package"=>"testefoxhola", "release"=>"11"} | |
Package Load (0.8ms) SELECT * FROM "packages" WHERE (name like 'testefoxhola' and version like '3.0' and release like '11') | |
Package Load (0.4ms) SELECT * FROM "packages" WHERE (name like 'testefoxhola' and version like '3.0' and release like '%') | |
Package Load (0.5ms) SELECT * FROM "packages" WHERE (name like 'testefoxhola' and version like '%' and release like '%') | |
Package Load (0.5ms) SELECT * FROM "packages" WHERE (name like '%testefoxhola%' and version like '%' and release like '%') | |
Package Load (0.4ms) SELECT * FROM "packages" WHERE (name like '%tes%' and version like '%' and release like '%') | |
Package Load (0.4ms) SELECT * FROM "packages" WHERE (name like '%est%' and version like '%' and release like '%') | |
Package Load (0.4ms) SELECT * FROM "packages" WHERE (name like '%ste%' and version like '%' and release like '%') | |
Pa |
This file contains hidden or 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 (typeof formtastic_next_client_id == 'undefined') formtastic_next_client_id = 2; $('#clients').append("<div class='left_column'>\n \n <li class=\"string optional\" id=\"group_clients_name_input\"><label for=\"group_clients_name\">Name</label><input id=\"group_clients_name\" maxlength=\"255\" name=\"group[clients][name]\" size=\"30\" type=\"text\" />\n </li>\n <li class=\"string required\" id=\"group_clients_cpf_input\"><label for=\"group_clients_cpf\">Cpf<abbr title='requerido'>*</abbr></label><input id=\"group_clients_cpf\" maxlength=\"255\" name=\"group[clients][cpf]\" size=\"30\" type=\"text\" />\n </li>\n <li class=\"string required\" id=\"group_clients_rg_input\"><label for=\"group_clients_rg\">Rg<abbr title='requerido'>*</abbr></label><input id=\"group_clients_rg\" maxlength=\"255\" name=\"group[clients][rg]\" size=\"30\" type=\"text\" />\n </li>\n <li class=\"string required\" id=\"group_clients_shipment_input\"><label for=\"group_clients_shipment\">Shipment<abbr title='r |