Skip to content

Instantly share code, notes, and snippets.

View menelaosbgr's full-sized avatar

Menelaos Bakopoulos menelaosbgr

View GitHub Profile
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system",
"es7.decorators",
"es7.classProperties"
]
@menelaosbgr
menelaosbgr / AppInstanceCollection.java
Created April 25, 2018 18:41
Quickly Hacked version of local app deployer supporting restart of skipper to allow continuing control of processes
package org.springframework.cloud.skipper.server.domain;
import java.util.ArrayList;
import java.util.List;
/**
* Created by bakopme on 11/04/2018.
*/
public class AppInstanceCollection {
private List<AppInstanceDB> appInstances = new ArrayList<>();
@menelaosbgr
menelaosbgr / ObjectField.java
Last active April 10, 2018 11:15
original file from repo - Kryo ObjectField.java modified to unproxy hibernate proxy objects
/* Copyright (c) 2008, Nathan Sweet
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the distribution.
* - Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived
@menelaosbgr
menelaosbgr / ModelTests.java
Created March 15, 2018 15:28 — forked from ttinana/ModelTests.java
JUnit test for 100% code coverage of Lombok's @DaTa annotation
import com.google.common.reflect.ClassPath;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtConstructor;
import javassist.CtMethod;
import javassist.CtNewConstructor;
import javassist.CtNewMethod;
import javassist.NotFoundException;
import nl.jqno.equalsverifier.EqualsVerifier;
@menelaosbgr
menelaosbgr / ModelTests.java
Last active March 14, 2018 15:45 — forked from arosini/ModelTests.java
JUnit test for 100% code coverage of Lombok's @DaTa annotation
import com.google.common.reflect.ClassPath;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtConstructor;
import javassist.CtMethod;
import javassist.CtNewConstructor;
import javassist.CtNewMethod;
import javassist.NotFoundException;
import nl.jqno.equalsverifier.EqualsVerifier;