Skip to content

Instantly share code, notes, and snippets.

Johannes Schüth Jotschi

Block or report user

Report or block Jotschi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View reflection-config.json
[
{
"name":"ch.qos.logback.classic.Level",
"methods":[{"name":"valueOf","parameterTypes":["java.lang.String"] }]
},
{
"name":"ch.qos.logback.classic.encoder.PatternLayoutEncoder",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
@Jotschi
Jotschi / build.log
Last active May 10, 2019
netty-graalvm-native-image-test
View build.log
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for de.jotschi:vertx-graalvm-native-image-test:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.oracle.substratevm:svm:jar should not point at files within the project directory, ${basedir}/svm.jar will be unresolvable by dependent projects @ line 132, column 16
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
@Jotschi
Jotschi / View.jsx
Created May 9, 2019
Websocket Gentics Mesh Snippets
View View.jsx
import useWebsocketBridge from '../eventbus';
export default function ScreenView({ match }) {
const id = match.params.id;
const [screenResponse, setScreenResponse] = useState();
useWebsocketBridge(async () => { setScreenResponse(await getScreen(id)) });
useEffect(() => {
getScreen(id).then(setScreenResponse);
}, []);
@Jotschi
Jotschi / HandlebarsExample.java
Created Apr 18, 2019
HandlebarsExample Vert.x Example
View HandlebarsExample.java
public class HandlebarsExample extends AbstractVerticle {
@Override
public void start(Future<Void> startFuture) throws Exception {
HttpServerOptions options = new HttpServerOptions();
options.setPort(9999);
HttpServer server = vertx.createHttpServer(options);
Router router = Router.router(vertx);
HandlebarsTemplateEngine engine = HandlebarsTemplateEngine.create(vertx);
View graal-netty-image-error.log
Executing [
/opt/jvm/graalvm-1.0.0-rc1/bin/java \
-Xbootclasspath/a:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/boot/graal-sdk.jar:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/boot/graaljs-scriptengine.jar \
-cp \
/opt/jvm/graalvm-1.0.0-rc1/jre/lib/svm/builder/objectfile.jar:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/svm/builder/pointsto.jar:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/svm/builder/svm.jar:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/jvmci/graal.jar:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/jvmci/jvmci-hotspot.jar:/opt/jvm/graalvm-1.0.0-rc1/jre/lib/jvmci/jvmci-api.jar \
-server \
-d64 \
-noverify \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
View orientdb-sync-error.log
TEST DEBUG [main] [GenericContainer.java:188] - Starting container: mesh-local
TEST DEBUG [main] [GenericContainer.java:189] - Trying to start container: mesh-local
TEST DEBUG [main] [GenericContainer.java:193] - Trying to start container: mesh-local (attempt 1/1)
TEST DEBUG [main] [GenericContainer.java:208] - Starting container: mesh-local
TEST INFO [main] [GenericContainer.java:210] - Creating container for image: mesh-local
TEST INFO [main] [GenericContainer.java:217] - Starting container with ID: afbfb45ceb0c5b5fa87e1a4cb706b72bd3360ddf205ade8855deb0c762464e92
TEST INFO [main] [GenericContainer.java:224] - Container mesh-local is starting: afbfb45ceb0c5b5fa87e1a4cb706b72bd3360ddf205ade8855deb0c762464e92
TEST INFO [main] [GenericContainer.java:245] - Container mesh-local started
TEST DEBUG [main] [Profiler.java:201] -
+ Profiler [Container startup]
@Jotschi
Jotschi / PumpTest.java
Created Dec 21, 2017
Vert.x 3.5.0 RxJava2 PumpTest
View PumpTest.java
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import io.reactivex.Observable;
import io.vertx.core.file.OpenOptions;
@Jotschi
Jotschi / ServerWSTest.java
Created Nov 29, 2017
Vert.x 3.5.0 Websocket Regression Reproducer
View ServerWSTest.java
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpServer;
import io.vertx.core.http.HttpServerOptions;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.bridge.PermittedOptions;
View stack.yml
version: '3.1'
services:
mesh:
image: gentics/mesh-demo
ports:
- 8080:8080
@Jotschi
Jotschi / translationTable.ts
Created Sep 28, 2017
Mesh UI Translations
View translationTable.ts
module meshAdminUi {
const userAuth = {
'LOG_IN': {
en: 'Log In',
de: 'Einloggen'
},
'LOG_OUT': {
en: 'Log Out',
de: 'Ausloggen'
You can’t perform that action at this time.