An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
input { | |
file { | |
type => "java" | |
tags => [ "fornax-data-share-eureka" ] | |
# Logstash insists on absolute paths... | |
path => "D:/fornax-data-share-runtime/eureka/fornax-data-share-eureka.log" | |
codec => multiline { | |
pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*" | |
negate => "true" | |
what => "previous" |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Integrate JMH (Java Microbenchmarking Harness) with Spring (Boot) and make developing and running benchmarks as easy and convinent as writing tests.
Wrap the necessary JMH boilerplate code within JUnit to benefit from all the existing test infrastructure Spring (Boot) provides. It should be as easy and convinent to write benchmarks as it is to write tests.
I've picked a dozen scenarios to illustrate the range of things that I think AsyncAPI needs to be able to describe. My goal is to have enough information in the AsyncAPI spec for a developer writing an app to consume messages from the topic.
Updated following feedback in Slack and Github - see revisions to see what has changed
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: GraalVM Native Image build | |
on: | |
push: | |
branches: [ master ] | |
tags: [ '*' ] |
// Terminal 2048 | |
// By: Andrew Tam | |
// There is currently no GUI for this game and is played completely on the Terminal. | |
// Type in the instructions such as "up", "down", "left", "right" to move the tiles | |
// Type in "reset" to reset the game | |
import java.util.Scanner; | |
import java.util.Arrays; | |
import java.util.ArrayList; | |
import java.util.Random; |
The example uses the embedded Spring Boot Keycloak Server to quickly spin up a new Keycloak instance.
Create JBang script with
jbang init spring-keycloak-server
Adapt spring-keycloak-server
script.
Run the Keycloak server via:
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS io.netty.incubator:netty-incubator-transport-native-io_uring:0.0.5.Final:linux-x86_64 | |
import io.netty.incubator.channel.uring.IOUring; | |
public class HelloIoUring { | |
public static void main(String[] args) { | |
IOUring.ensureAvailability(); | |
System.out.println("Hello io_uring!"); | |
} |