Skip to content

Instantly share code, notes, and snippets.

View liweinan's full-sized avatar
🐢

阿男 liweinan

🐢
View GitHub Profile
@liweinan
liweinan / 18136.diff
Created August 19, 2024 16:01
Add log to WildFly
diff --git a/batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/JobOperatorService.java b/batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/JobOperatorService.java
index e22d1b5edee5..06229fbd18ac 100644
--- a/batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/JobOperatorService.java
+++ b/batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/JobOperatorService.java
@@ -21,6 +21,7 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Consumer;
import java.util.function.Supplier;
+
import jakarta.batch.operations.JobExecutionAlreadyCompleteException;
@liweinan
liweinan / add.sh
Created August 4, 2023 18:07
Using `sed` to add contents
weli@192:/tmp
➤ cat foo.txt 02:05:38
abc
def
weli@192:/tmp
➤ vi foo.txt 02:05:41
weli@192:/tmp
➤ sed -e 's/def/xyz/' foo.txt 02:05:48
abc
@liweinan
liweinan / mc.yml
Created July 3, 2023 15:51
A Pod With Multiple Containers
kind: Pod
apiVersion: v1
metadata:
name: mc
spec:
containers:
- name: c0
image: ubuntu
command: [ "/bin/bash", "-c", "while true; do echo c0; sleep 5 ; done" ]
- name: c1
--- standalone.xml 2022-11-19 01:25:16.000000000 +0800
+++ standalone.xml.orig 2022-11-19 01:09:23.000000000 +0800
@@ -6,17 +6,36 @@
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
+ <extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
+ <extension module="org.jboss.as.jdr"/>
<extension module="org.jboss.as.jmx"/>
Only in standalone/configuration: standalone-full-ha.xml
Only in standalone/configuration: standalone-full.xml
Only in standalone/configuration: standalone-ha.xml
Only in standalone/configuration: standalone-load-balancer.xml
Only in standalone/configuration: standalone-microprofile-ha.xml
Only in standalone/configuration: standalone-microprofile.xml
diff -r standalone.new/configuration/standalone.xml standalone/configuration/standalone.xml
8a9
> <extension module="org.jboss.as.ejb3"/>
9a11
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT: appclient
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/bin: domain.bat
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/bin: domain.conf
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/bin: domain.conf.bat
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/bin: domain.conf.ps1
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/bin: domain.ps1
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/bin: domain.sh
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/docs/examples/configs: domain-ec2.xml
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/docs/examples/configs: standalone-activemq-colocated.xml
Only in /Users/weli/works/wildfly/dist/target/wildfly-28.0.0.Beta1-SNAPSHOT/docs/examples/configs: standalone-azure-full-ha.xml
@liweinan
liweinan / jberet-wildfly.md
Created July 6, 2022 16:16
Investigation on the jberet usage on the WildFly
@liweinan
liweinan / bootable setup error log.txt
Created June 21, 2022 15:34
bootable setup error log
➤ curl localhost:8080/tracing/logger 23:28:51
<html><head><title>ERROR</title><style>
body {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Helvetica, Arial, Verdana, sans-serif;
margin: 5px;
}
.header {
background-image: linear-gradient(bottom, rgb(153,151,153) 8%, rgb(199,199,199) 54%);
background-image: -o-linear-gradient(bottom, rgb(153,151,153) 8%, rgb(199,199,199) 54%);
@liweinan
liweinan / `ts.bootable` in wildfly.md
Last active June 21, 2022 15:14
`ts.bootable` in wildfly
➤ grep -rn 'ts.bootable' *                                                                                                                                                                                                                                                                                      23:05:52
ee-9/source-transform/shared/target/generated-sources/transformed/org/jboss/as/test/shared/util/AssumeTestGroupUtil.java:106:        return System.getProperty("ts.ee9") != null || System.getProperty("ts.bootable.ee9") != null;
Binary file ee-9/source-transform/shared/target/classes/org/jboss/as/test/shared/util/AssumeTestGroupUtil.class matches
pom.xml:5875:                    <name>ts.bootable.ee9</name>
pom.xml:5952:                    <name>ts.bootable</name>
testsuite/integration/smoke/pom.xml:730:                    <name>ts.bootable</name>
testsuite/integration/smoke/pom.xml:843:                    <name>ts.bootable.ee9</name>
Binary file testsuite/integration/web/target/test-classes/org/j