Skip to content

Instantly share code, notes, and snippets.

Script started on Thu Oct 11 11:06:50 2012
%
]2;/Volumes/v3/jboss/beta.aerogear.org]1;...aerogear.org
/V/v/j/beta.aerogear.org git:master  ✭ ◼
/V/v/j/beta.aerogear.org git:master ❯❯❯  ✭ ◼ggit fetch
/V/v/j/beta.aerogear.org git:master ❯❯❯ git fetch ✭ ◼
// on ag-controller
public interface HttpStatusAwareException {
public int getStatus();
}
// on ag-controller, DefaultRouter:L~88
} catch (Exception e) {
if (e instanceof HttpStatusAwareException) {
response.setStatus(((HttpStatusAwareException)e).getStatus());
}
@qmx
qmx / gist:3765407
Created September 22, 2012 07:00 — forked from briandealwis/gist:782862
One-liner to turn jar with Main-Class into executable shell script
# turn a jar with a Main-Class into a stand alone executable
(echo '#!/usr/bin/env java -jar'; cat blahblah.jar) > blah
# turn a jar with a particular main clas into a stand alone executable
(echo '#!/usr/bin/env java -jar package.MainClass'; cat blahblah.jar) > blah
jruby git:master ❯ bin/ast -e "puts 'lol'" ⬆ ◼
AST:
RootNode 0
NewlineNode 0
FCallOneArgNode:puts 0
ArrayNode 0
StrNode 0
18:33:29,880 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-3) SQL Error: 23506, SQLState: 23506
18:33:29,881 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-3) Referential integrity constraint violation: "FKEB6CC5E03F784D3F: PUBLIC.TASK_TAG FOREIGN KEY(TAGS_ID) REFERENCES PUBLIC.TAG(ID)"; SQL statement:
insert into Task_Tag (Task_id, tags_id) values (?, ?) [23506-161]
18:33:29,883 WARN [com.arjuna.ats.arjuna] (http--127.0.0.1-8080-3) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffffc0a80166:7f64a208:502c11b9:4a, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@1cc6114 >: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: Referential integrity constraint violation: "FKEB6CC5E03F784D3F: PUBLIC.TASK_TAG FOREIGN KEY(TAGS_ID) REFERENCES PUBLIC.TAG(ID)"; SQL statement:
insert into Task_Tag (Task_id, tags_id) values (?, ?) [23506-161

Pensei em algumas músicas pra um possível Jam - daqui seria escolher no máximo umas 5

  • wasted years (Iron Maiden)
  • carry on wayward son (Kansas)
  • another day (Dream Theater)
  • pull me under (Dream Theater)
  • crazy train (Ozzy)
  • smoke in the water (Deep Purple)
  • pictures of home (Deep Purple)
  • eagle fly free (Helloween)
source :rubygems
gem 'awestruct', :path => "/Volumes/v2/git/awestruct/"
import java.util.Map;
/**
* proposed future layout for DynObjects
*/
public class DynObject2 {
// var x = {a:'lol'};
public Object a; // will be set to 'lol'
public Map<String, Integer> attributes = .... ;// key: 'a', value: CONFIGURABLE | WRITABLE | NON_EXTENSIBLE (OR'ed integers)
require 'rubygems'
require 'ffi-rzmq'
# Prepare our context and socket
context = ZMQ::Context.new(1)
t2=Thread.new do
begin
publisher = context.socket(ZMQ::PUSH)
publisher.connect("tcp://localhost:5558")
require 'rubygems'
require 'ffi-rzmq'
# Prepare our context and socket
context = ZMQ::Context.new(1)
t2=Thread.new do
begin
publisher = context.socket(ZMQ::PUSH)
publisher.connect("tcp://localhost:5558")