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
| irb(main):001:0> require 'java' | |
| => true | |
| irb(main):002:0> 1.to_java.class | |
| => Java::JavaLang::Long | |
| irb(main):003:0> //.to_java.class | |
| ArgumentError: wrong number of arguments (0 for 2) | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:310:in `output_value' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:159:in `eval_input' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:271:in `signal_status' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:155:in `eval_input' |
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
| require 'rubygems' | |
| require 'jmx4r' | |
| JMX::MBean.establish_connection :host => "localhost", :port => 9999, :username => "pwd", :password => "pwd" | |
| JMX::MBean.find_all_by_name("org.apache.activemq:BrokerName=inner-broker,Type=Subscription,persistentMode=Non-Durable,destinationType=Topic,destinationName=pulso.>,*").each do |sub| | |
| next unless sub.enqueue_counter - sub.dequeue_counter > 100 | |
| conn = JMX::MBean.find_all_by_name("org.apache.activemq:BrokerName=inner-broker,Type=Connection,ConnectorName=inner-openwire,Connection=ID_#{conn_id.split(":")[1][0...-2]}*").first |
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
| PRIMARY> db.dsl.stats(); | |
| { | |
| "ns" : "sel.dsl", | |
| "count" : 1044631, | |
| "size" : 10300275040, | |
| "avgObjSize" : 9860.20426351506, | |
| "storageSize" : 10732134320, | |
| "numExtents" : 5, | |
| "nindexes" : 2, | |
| "lastExtentSize" : 2146426864, |
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
| Mon Jan 16 10:27:25 [journal] journal info splitting prepBasicWrite at boundary Mon Jan 16 10:27:25 [journal] journaling error view pointer cannot be resolved 47007418945536 | |
| Mon Jan 16 10:27:25 [journal] Assertion failure false db/dur_journal.cpp 93 | |
| 0x57d716 0x5885cb 0x76e900 0x7656d4 0x7659af 0x765cef 0x76636f 0x7665a5 0x75e06f 0x75e76d 0x75ea8d 0x75f21b 0xa9ea30 0x3b9e8064a7 0x3b9dcd3c2d | |
| bin/mongod(_ZN5mongo12sayDbContextEPKc+0x96) [0x57d716] | |
| bin/mongod(_ZN5mongo8assertedEPKcS1_j+0xfb) [0x5885cb] | |
| bin/mongod(_ZN5mongo3dur15preallocateFileEN5boost10filesystem10basic_pathISsNS2_11path_traitsEEEy+0) [0x76e900] | |
| bin/mongod(_ZN5mongo3dur14findMMF_inlockEPvRm+0x124) [0x7656d4] | |
| bin/mongod(_ZN5mongo3dur21prepBasicWrite_inlockERNS_14AlignedBuilderEPKNS0_11WriteIntentERNS_12RelativePathE+0x3f) [0x7659af] | |
| bin/mongod(_ZN5mongo3dur21prepBasicWrite_inlockERNS_14AlignedBuilderEPKNS0_11WriteIntentERNS_12RelativePathE+0x37f) [0x765cef] | |
| bin/mongod(_ZN5mongo3dur15prepBasicWritesERNS_14AlignedBuilderE+0x6f) [0x76636f] |
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
| $ vboxheadless -s ArchLinux | |
| Oracle VM VirtualBox Headless Interface 4.1.6 | |
| (C) 2008-2011 Oracle Corporation | |
| All rights reserved. | |
| VRDE server is listening on port 44444. | |
| Segmentation fault | |
| $ |
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
| 1.9.2p290 :030 > YAML::ENGINE.yamler= 'syck'; YAML.parse(File.open('/tmp/teste.yml')) | |
| => #<Syck::Map:0x000000024a4488> | |
| 1.9.2p290 :031 > YAML::ENGINE.yamler= 'psych'; YAML.parse(File.open('/tmp/teste.yml')) | |
| Psych::SyntaxError: couldn't parse YAML at line 1 column 6 | |
| from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse' | |
| from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' | |
| from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in `parse' | |
| from (irb):31 | |
| from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>' | |
| 1.9.2p290 :032 > |
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
| INFO: production [ok] process is running (ProcessRunning) | |
| /usr/local//rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/monitor.rb:173: [BUG] Segmentation fault ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02 |
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
| % rvm use 1.8.7 | |
| Using /home/jsvd/.rvm/gems/ruby-1.8.7-p358 | |
| % ruby teste.rb | |
| /home/jsvd/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault | |
| ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux] | |
| [1] 15312 abort (core dumped) ruby teste.rb |
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 Test | |
| def initialize code | |
| @rule = gen_instance code | |
| end | |
| def gen_instance code | |
| puts "instantiating code" | |
| instantiate code | |
| end |
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
| #!/usr/bin/env ruby | |
| require 'json' | |
| def jsonpp line | |
| data = JSON.parse(line) | |
| puts JSON.pretty_generate(data) | |
| end | |
| if STDIN.tty? |