Skip to content

Instantly share code, notes, and snippets.

View antonioalegria's full-sized avatar

António Alegria antonioalegria

View GitHub Profile
@antonioalegria
antonioalegria / jstack sbt-assembly
Created February 4, 2013 14:57
SBT Assembly is taking a long time to package the jar and it seems it's actually hanging. Here is the jstack output for the sbt process while it's hanging.
2013-02-04 14:56:11
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.5-b02 mixed mode):
"Attach Listener" daemon prio=5 tid=0x00007ffb66824800 nid=0x6a0f waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-4-thread-3" prio=5 tid=0x00007ffb643a6800 nid=0x6603 runnable [0x000000010a57c000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:242)
@antonioalegria
antonioalegria / rvm_trace.txt
Created August 31, 2011 21:13
rvm install --trace jruby
$> rvm install --trace jruby 2> rvm_trace.txt
+__rvm_parse_args:727> [[ -n 4.3.9 ]]
+__rvm_parse_args:750> [[ -z install ]]
+__rvm_parse_args:752> [[ 0 -eq 1 || -n '' ]]
+__rvm_parse_args:20> [[ -n jruby ]]
+__rvm_parse_args:22> rvm_token=jruby
+__rvm_parse_args:24> (( 0 > 0 ))
+__rvm_parse_args:29> next_token=''
+__rvm_parse_args:32> case jruby ([[:alnum:]]*|@*)
DEBUG : RESOLVING: _xmpp-client._tcp.superfeedr.com (SRV)
DEBUG : Found 8 SRV records for _xmpp-client._tcp.superfeedr.com.
DEBUG : Trying connection with : xmpp4.superfeedr.com:5222
DEBUG : CONNECTING TO xmpp4.superfeedr.com:5222 with Superfeedr as connection handler
DEBUG : CONNECTED
DEBUG : SENDING : <?xml version="1.0"?>
<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="superfeedr.com" version="1.0">
DEBUG : SENDING : <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
DEBUG : SENDING : <?xml version="1.0"?>
@antonioalegria
antonioalegria / superfeedr_gowalla.log.txt
Created January 19, 2011 23:16
Skates logs for subscribing to ttp://hub.gowalla.com/track/gowalla&amp;lat=37.781841&amp;lon=-122.420311&amp;within=20
DEBUG : RESOLVING: _xmpp-client._tcp.superfeedr.com (SRV)
DEBUG : Found 8 SRV records for _xmpp-client._tcp.superfeedr.com.
DEBUG : Trying connection with : xmpp6.superfeedr.com:5222
DEBUG : CONNECTING TO xmpp6.superfeedr.com:5222 with Superfeedr as connection handler
DEBUG : CONNECTED
DEBUG : SENDING : <?xml version="1.0"?>
<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="superfeedr.com" version="1.0">
DEBUG : SENDING : <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
DEBUG : SENDING : <?xml version="1.0"?>
@antonioalegria
antonioalegria / superfeedr_track_test.log.txt
Created January 18, 2011 23:46
Testing Superfeedr's track API using superfeedr-ruby
DEBUG : RESOLVING: _xmpp-client._tcp.superfeedr.com (SRV)
DEBUG : Found 8 SRV records for _xmpp-client._tcp.superfeedr.com.
DEBUG : Trying connection with : xmpp5.superfeedr.com:5222
DEBUG : CONNECTING TO xmpp5.superfeedr.com:5222 with Superfeedr as connection handler
DEBUG : CONNECTED
DEBUG : SENDING : <?xml version="1.0"?>
<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="superfeedr.com" version="1.0">
DEBUG : SENDING : <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
DEBUG : SENDING : <?xml version="1.0"?>
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Maven Android SDK Deployer
[INFO] Android Platforms
[INFO] Android Platform 1.5
[INFO] Android Platform 1.6
[INFO] Android Platform 2.1
[INFO] Android Platform 2.2
[INFO] Android Add-Ons
[INFO] Android Add-On Google API 3
package pt.ptp.pulso.esper.view;
import com.espertech.esper.client.EventType;
import com.espertech.esper.core.StatementContext;
import com.espertech.esper.epl.expression.ExprNode;
import com.espertech.esper.view.View;
import com.espertech.esper.view.ViewFactory;
import com.espertech.esper.view.ViewFactoryContext;
import com.espertech.esper.view.ViewFactorySupport;
import com.espertech.esper.view.ViewParameterException;
require 'yaml'
bluepill_config_yaml = %q{ ---
:app_name: esper-shiro
:working_dir: /Users/tonio/workspace/esper/
:log_file: /Users/tonio/workspace/esper/bluepill.log
:processes:
:Process2:
:pid_file: /var/bluepill/pids/esper-shiro-Process2.pid
:group: :shiro
Bluepill.application('testapp', :log_file => '/Users/tonio/workspace/bluepill-test/log.txt') do |app|
app.process('proc1') do |process|
process.group = 'group'
process.start_command = %q{jruby -e 'while(true); puts "batata"; $stdout.flush; sleep(5); end'}
process.pid_file = '/Users/tonio/workspace/bluepill-test/pid'
process.daemonize = true
process.stdout = '/Users/tonio/workspace/bluepill-test/out.txt'
end
end
Bluepill.application('testapp', :log_file => '/Users/tonio/workspace/bluepill-test/log1.txt') do |app|
app.process('proc1') do |process|
process.group = "group1"
process.start_command = "ruby -e \"while(true); puts Time.now.strftime('%T'); sleep(10); end\""
process.pid_file = '/Users/tonio/workspace/bluepill-test/proc1.pid'
process.working_dir = "/Users/tonio/workspace/bluepill-test/"
process.stdout = process.stderr ='/Users/tonio/workspace/bluepill-test/log2.txt'
process.daemonize = true