Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
package demo; | |
import java.util.concurrent.TimeUnit; | |
import org.springframework.aop.TargetSource; | |
import org.springframework.aop.framework.ProxyFactory; | |
import org.springframework.aop.support.DelegatingIntroductionInterceptor; | |
import org.springframework.beans.factory.BeanFactory; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; |
package com.example; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Qualifier; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.util.List; |
public final class ResultFuture implements Future<Result> { | |
private final CountDownLatch latch = new CountDownLatch(1); | |
private Result value; | |
@Override | |
public boolean cancel(boolean mayInterruptIfRunning) { | |
return false; | |
} | |
@Override |
// .... | |
def compilerConfig = new CompilerConfiguration() | |
compilerConfig.optimizationOptions.indy = true | |
def shell = new GroovyShell(compilerConfig) |
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodType; | |
public class Hello { | |
private static final MethodHandles.Lookup lookup = MethodHandles.lookup(); | |
public static void main(String[] args) throws Throwable { | |
System.out.println("Hello, " + args[0]); | |
} |
package indy; | |
import java.lang.invoke.CallSite; | |
import java.lang.invoke.ConstantCallSite; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodType; | |
import java.lang.reflect.Constructor; | |
import org.objectweb.asm.ClassWriter; |
@Grab(group='org.gperfutils', module='gbench', version='0.4.3-groovy-2.4') | |
String a = 'The quick brown fox' | |
String b = 'jumps over the lazy dog' | |
int x = 1 | |
double y = 2 | |
benchmark { | |
'simple concat' { | |
String concat = a + ' ' + b + ' ' + x + ' ' + y |