This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker container logs es | jq -r '"\(.["@timestamp"]) \(.["log.level"]) \(.message)"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_DHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const starting = [ | |
{ | |
potentialUpgrades: ["D-a","D-b","D-c"], | |
productName: "D", | |
registeredUser: "test4.example.com" | |
}, | |
{ | |
potentialUpgrades: ["E-a","E-b","E-c"], | |
productName: "E", | |
registeredUser: "test4.example.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style lang="scss"> | |
@import "bulma/bulma.sass"; | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ByteBufferTest { | |
public static void main(String[] args) { | |
byte[] a = new byte[2]; | |
a[0] = (byte)0xff; | |
a[1] = (byte)0xcc; | |
ByteBuffer byteBuffer = ByteBuffer.allocate(2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<properties> | |
<maven.compiler.source>1.8</maven.compiler.source> | |
<maven.compiler.target>1.8</maven.compiler.target> | |
</properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" | |
version="4.0"> | |
</web-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gson.*; | |
import org.apache.commons.lang3.tuple.Pair; | |
import java.lang.reflect.Type; | |
import java.util.List; | |
import java.util.stream.Collector; | |
// | |
// Converts a List of Pair<String, Long> into a JSON array of objects where the key of the Pair is | |
// field name "url" and the value is "fileSize" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class ClassWithSurrogateKey(val field1 : String, val field2 : Int) { | |
val id = nextId() // always increasing | |
companion object { | |
private var idgen = 1 // faux static class member | |
fun nextId() = idgen++ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FullScreenApp extends Application { | |
@Override | |
public void start(Stage primaryStage) throws Exception { | |
VBox vbox = new VBox(new Label("Hello, World!")); | |
vbox.setAlignment(Pos.TOP_CENTER); // 0, auto | |
Scene scene = new Scene( vbox ); |
NewerOlder