Skip to content

Instantly share code, notes, and snippets.

View gastaldi's full-sized avatar
🏠
Working from home

George Gastaldi gastaldi

🏠
Working from home
View GitHub Profile
$ 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)
@gastaldi
gastaldi / monitor.sh
Last active March 19, 2024 16:40
monitor.sh
#!/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
@gastaldi
gastaldi / fetch.java
Last active August 22, 2022 12:36 — forked from maxandersen/fetch.java
///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;
@gastaldi
gastaldi / .editorconfig
Created May 26, 2022 01:09
Quarkus Format EditorConfig
[*]
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
<?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>
@gastaldi
gastaldi / settings.xml
Created April 21, 2020 15:36
Maven settings.xml
<?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>
@gastaldi
gastaldi / extensions.js
Created March 17, 2019 13:23
Extensões OpenShift
(function() {
window.OPENSHIFT_CONSTANTS.DISABLE_SERVICE_CATALOG_LANDING_PAGE = true
}());
@gastaldi
gastaldi / convert.sh
Last active November 28, 2018 14:10
Convert all dependencies to exact version in package.json
#!/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
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;
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>