Skip to content

Instantly share code, notes, and snippets.

View lprimak's full-sized avatar

Lenny Primak lprimak

View GitHub Profile
@lprimak
lprimak / leak-check
Created October 6, 2024 16:43
Payara ClassLoader leak check
asadmin deploy ~/dev/infra/scripts/cloud/k8s/payara-deploy/ClassloaderDataAPI.war
curl http://localhost:8080/ClassloaderDataAPI/api/instance-count/webapp/
@lprimak
lprimak / maven-tips.txt
Last active September 9, 2024 00:48
Maven tips and tricks
https://gist.github.com/cstamas/6d2a96abf16fc7e25608479089e285f6
https://gist.github.com/cstamas/93ed8a49a609c0e035c1319990c78606
https://gist.github.com/cstamas/0ac04cad0b1b30d1be710e826ef4712f
mvn eu.maveniverse.maven.plugins:toolbox:0.2.4:help -Ddetail
jbang toolbox@maveniverse
> dm-tree org.springframework.boot:spring-boot-dependencies:3.3.3
-- Repo spec
@lprimak
lprimak / github-lfs-config
Last active November 12, 2023 08:41
GitHub ( and Git LFS) configuration
git config --global --add lfs.url https://nexus.hope.nyc.ny.us/repository/flowlogix-assets/info/lfs
git config --global --add core.eol lf
git config --global --add core.autocrlf false
git config --global --add credential.helper osxkeychain
The credential helper can be store on non-interactive nodes, provided the ~/.git-credentials is present
@lprimak
lprimak / jakarta-ee-api-10-maint
Last active November 6, 2023 16:57
How to recreate jakarta ee 10 maint branch
- Create 10.maint branch from master
- git revert 3d8aa9ef97055b789edcf51b596fe30e4d08e33d - Add Jakarta Annotations M1 (#142)
@lprimak
lprimak / lftp
Created October 21, 2023 23:57
lftp command line howto
lftp -u \$ftpcreds_USR --env-password -e \
'mirror -R -P7 -x .git --overwrite --delete --delete-excluded \
target/output hope_website/resume; exit top' ftp://${websiteHost()}
@lprimak
lprimak / run-ui-tests
Last active August 18, 2023 05:04
How to run UI tests
mvnd verify -Pui-test -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.browser=chrome -Dfailsafe.runOrder.random.seed=249080698557158 -Dtest=none -Dsurefire.failIfNoSpecifiedTests=false
@lprimak
lprimak / locally_release
Last active February 14, 2024 01:50
Locally release to central
# How to do a local release
MAVEN_OPTS=-Dsettings.security=$HOME/.m2/settings-security.xml mvn -B -C release:prepare release:perform \
-Dmaven.install.skip=true -DreleaseVersion=xxx
git push origin Version-xxx
# Plain release
MAVEN_OPTS=-Dsettings.security=$HOME/.m2/settings-security.xml mvn -B -C release:prepare release:perform \
-DpushChanges=false -DlocalCheckout=true -DreleaseVersion=1 -DtagNameFormat=Version-1 \
-Dgoals="org.simplify4u.plugins:sign-maven-plugin:1.0.1:sign deploy" \
-Darguments="-Dsign.serverId=\"Flow Logix, Inc.\" -Dmaven.install.skip=true \
@lprimak
lprimak / run_test_arq_suite
Last active February 9, 2024 06:57
run arquillian test suite with docker and latest JDK and payara
mvnd verify -P-payara-server-remote -Dmaven.compiler.release=21 -DimageName=payara/server-full:6.2023.12-jdk21
# start docker with host-wide networking and access to socket
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --net=host runner
# Test with k8s Payara:
mvnd verify -Ppayara-k8s -DadminHost=10.0.62.3
@lprimak
lprimak / hazelcast-run
Last active June 23, 2023 22:01
How to run Hazelcast things
# run CacheTester
mvn -Prun test -Dhz.port=5710 -Dhz.raft=true -Dhz.discovery.spi=false
# run Hazelcast single-jvm-tests only
mvn -PparallelTest initialize surefire:test@singlejvm
# How to make multi-homed host
$ sudo ifconfig en0 alias 172.16.123.1
@lprimak
lprimak / howto-run-payara
Last active July 30, 2023 09:20
How-to-run Payara things
# run Payara instance w/no connection to DAS
asadmin start-local-instance --nodedir $PAYARA_DOMAINDIR/payara/nodes —sync none inst1
# Build Payara w/Alpha Hazelcast
mvn -PskipTests,QuickBuild,deploy-internals -T6 -Dhazelcast.version=4.2-PALPHA-2 clean install
# What to put into glassfish/config/asenv.conf
export JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true --add-opens=java.base/java.io=ALL-UNNAMED"
AS_DEF_DOMAINS_PATH="${HOME}/var/payara-domains"
AS_DEF_NODES_PATH="${HOME}/var/payara-nodes"