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 --fresh --verbose run main.java ✔ | |
[jbang] [0:197] jbang version 0.119.0 | |
[jbang] [0:206] Resolving resource ref: main.java | |
[jbang] [0:207] Resolved resource ref as: main.java (cached as: /private/tmp/main.java) | |
[jbang] [0:235] Building as fresh build explicitly requested. | |
[jbang] [0:235] Deleting folder /Users/ggastald/.jbang/cache/jars/main.java.5d001124fd5551723b3299813f66aa8e87f2199fdff3291a931df4527d289394/classes | |
[jbang] [0:237] Deleting folder /Users/ggastald/.jbang/cache/jars/main.java.5d001124fd5551723b3299813f66aa8e87f2199fdff3291a931df4527d289394/generated | |
[jbang] [0:239] Looking for JDK: 17 | |
[jbang] [0:242] Using JDK: 17 (17.0.12+7, default, /Users/ggastald/.jbang/currentjdk) |
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
#!/bin/bash | |
: ${1:?"groupId is required"} | |
: ${2:?"artifactId is required"} | |
: ${3:?"version is required"} | |
# eg. ~/monitor.sh org.wildfly.swarm spi 1.0.8.Final | |
GROUP_ID=${1//.//} | |
ARTIFACT_ID=$2 | |
VERSION=$3 |
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 $? | |
import java.io.IOException; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Base64; |
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
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = false | |
max_line_length = 128 | |
tab_width = 4 | |
ij_continuation_indent_size = 8 | |
ij_formatter_off_tag = @formatter:off |
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" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<offline>false</offline> | |
<servers> | |
<server> | |
<id>ossrh</id> | |
<username>gastaldi</username> | |
<password>CHANGE_ME</password> | |
</server> | |
<server> |
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" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<offline>false</offline> | |
<servers> | |
<server> | |
<id>ossrh</id> | |
<username>gastaldi</username> | |
<password>CHANGE_ME</password> | |
</server> | |
<server> |
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
(function() { | |
window.OPENSHIFT_CONSTANTS.DISABLE_SERVICE_CATALOG_LANDING_PAGE = true | |
}()); |
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
#!/bin/bash | |
# Requires jq and yarn | |
for row in $(cat package.json | jq '.dependencies'| jq 'keys[]' -r); do | |
yarn add ${row} -W --exact | |
done | |
for row in $(cat package.json | jq '.devDependencies'| jq 'keys[]' -r); do | |
yarn add ${row} -W --exact -D | |
done |
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
package org.jboss.forge.addon.database.tools.generate; | |
import java.io.File; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; | |
import org.jboss.forge.addon.database.tools.connections.ConnectionProfile; | |
import org.junit.Rule; | |
import org.junit.Test; |
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
package io.fabric8.launcher.core.api.projectiles; | |
import javax.annotation.Nullable; | |
import io.fabric8.launcher.booster.catalog.rhoar.RhoarBooster; | |
import io.fabric8.launcher.core.api.Projectile; | |
import org.immutables.value.Value; | |
/** | |
* @author <a href="mailto:[email protected]">George Gastaldi</a> |
NewerOlder