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
RULE trace main entry | |
CLASS AppMain | |
METHOD main | |
AT ENTRY | |
IF true | |
DO traceln("entering main") |
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
subjects: | |
- command: manifest show | |
jar: | |
file: ST4-4.0.8.jar | |
size: 239543 | |
sha256: 58caabc40c9f74b0b5993fd868e0f64a50c0759094e6a251aaafad98edfc7a3b | |
result: | |
manifest: java.util.jar.Manifest@5426d89e | |
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
//JAVA 19 | |
//DEPS org.openjdk.jmh:jmh-generator-annprocess:1.36 | |
//JAVA_OPTIONS --enable-preview --add-opens java.base/java.lang=ALL-UNNAMED | |
// to run with javagagent add the following: | |
// `--javaagent=ap-loader@maxandersen=start,event=cpu,file=profile.html` | |
package red.hat.puzzles.loom; | |
import java.lang.invoke.MethodHandle; |
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
jbang -m org.jbake.launcher.Main --deps info.picocli:picocli:RELEASE,org.eclipse.jetty:jetty-server:RELEASE,org.apache.commons:commons-vfs2:RELEASE --java 17 org.jbake:jbake-core:RELEASE --help |
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
//DEPS io.micronaut:micronaut-http-server-netty:3.5.2 | |
//DEPS org.slf4j:slf4j-simple:1.6.1 | |
//DEPS io.micronaut:micronaut-http-client:3.5.2 | |
//DEPS io.micronaut:micronaut-inject-java:3.5.2 | |
//SOURCES MicroController.java | |
//JAVA 17+ | |
package jbang.test; | |
import io.micronaut.runtime.Micronaut; |
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
rm -rf ~/.jbang/bin/jbang* && curl -Ls https://sh.jbang.dev | JBANG_DOWNLOAD_VERSION=0.100.0 bash -s - app setup && jbang --fresh --verbose --java 17 -DPSWD=c6fa_41b6_9f2b quarkusclidb.java | |
Downloading JBang 0.100.0... | |
Installing JBang... | |
[jbang] JBang environment is already set up. | |
[jbang] jbang version 0.100.0 | |
[jbang] Building as fresh build explicitly requested. | |
[jbang] System Java version detected as 17 | |
[jbang] System Java version matches requested version 17 | |
[jbang] Repositories: mavencentral=https://repo1.maven.org/maven2/ | |
[jbang] Resolving dependencies... |
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: | |
GoalsFunction: AVERAGE | |
SeriesColor: cyan | |
global: | |
mode: dark | |
settings: | |
extraConfiguration: >- | |
{ | |
"color": "${SeriesColor}" | |
} |
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: | |
GoalsFunction: AVERAGE | |
SeriesColor: cyan | |
global: | |
mode: dark | |
settings: | |
extraConfiguration: >- | |
{ | |
"color": "${SeriesColor}" | |
} |
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
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//JAVA 17+ | |
//DEPS com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.0 | |
import static java.lang.System.out; | |
import java.io.IOException; | |
import com.fasterxml.jackson.core.type.TypeReference; |
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
///usr/bin/env jbang --quiet camel@apache/camel pipe "$0" "$@" ; exit $? | |
--- | |
# camel-k: language=yaml | |
# Will upper-case the input | |
- from: | |
uri: "stream:in" | |
steps: | |
- setBody: | |
simple: "${body.toUpperCase()}" |