Skip to content

Instantly share code, notes, and snippets.

View cescoffier's full-sized avatar
⚗️
Quarking...

Clement Escoffier cescoffier

⚗️
Quarking...
View GitHub Profile

vert-x3/vertx-web

vert-x3/vertx-codegen

eclipse/vert.x

@cescoffier
cescoffier / git-cleanup.fish
Created August 18, 2015 06:58
A function deleting all git branches that have been merged into the current branch
function cleanup-branches
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
end
@cescoffier
cescoffier / my-vertx-application
Last active February 26, 2018 18:52
Vert.x init.d service script
#!/bin/bash
###
# chkconfig: 345 20 80
# description: Vert.x application service script
# processname: java
#
# Installation (CentOS):
# copy file to /etc/init.d
# chmod +x /etc/init.d/my-vertx-application
## worker - ruby
* Status: FAILURE
* Execution time: 7128 ms
* Run File: /Users/clement/Projects/vert.x/vertx-integration-tests/vertx-examples-it/target/it/core-examples/core-worker-run.json
### Run and Execution
@cescoffier
cescoffier / gist:fabe23ac3f2a0bc1a164
Created June 23, 2015 13:49
angular realtime (JS) stack trace
Unhandled exception
java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.util.Map), (java.lang.String)] of the method io.vertx.core.json.JsonObject.<init> for argument types [jdk.nashorn.internal.runtime.Undefined]
at jdk.nashorn.internal.runtime.arrays.IteratorAction.apply(IteratorAction.java:116)
at jdk.nashorn.internal.objects.NativeArray.forEach(NativeArray.java:1607)
at jdk.nashorn.internal.scripts.Script$Recompilation$182$1566AA$\^eval\_#88\!17\^eval\_.L:1$loadData$L:47(server.js:83)
at jdk.nashorn.internal.scripts.Script$Recompilation$176$19479A$\^eval\_#88\!17\^eval\_.L:1$MongoClient$dropCollection$L:471(vertx-mongo-js/mongo_client.js:473)
at io.vertx.core.Handler$$NashornJavaAdapter.handle(Unknown Source)
at io.vertx.ext.mongo.impl.MongoClientImpl.lambda$null$33(MongoClientImpl.java:324)
at io.vertx.ext.mongo.impl.MongoClientImpl$$Lambda$12/463812514.handle(Unknown Source)
docker run -t -i -p 8080:8080 sample/vertx-ruby
Thread Thread[vert.x-eventloop-thread-2,5,main] has been blocked for 2092 ms, time limit is 2000
Thread Thread[vert.x-eventloop-thread-2,5,main] has been blocked for 3148 ms, time limit is 2000
Thread Thread[vert.x-eventloop-thread-2,5,main] has been blocked for 4148 ms, time limit is 2000
Thread Thread[vert.x-eventloop-thread-2,5,main] has been blocked for 5148 ms, time limit is 2000
io.vertx.core.VertxException: Thread blocked
at com.kenai.jffi.MemoryIO.verifyAccessor(MemoryIO.java:1004)
at com.kenai.jffi.MemoryIO.isUnsafeAvailable(MemoryIO.java:1028)
at com.kenai.jffi.MemoryIO.newMemoryIO(MemoryIO.java:86)
at com.kenai.jffi.MemoryIO.access$000(MemoryIO.java:41)
@cescoffier
cescoffier / logger.xml
Last active August 29, 2015 14:16
Wisdom - Example of logger configuration generating two files
<!--
#%L
Wisdom-Framework
%%
Copyright (C) 2013 - 2014 Wisdom Framework
%%
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at