This file contains hidden or 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 com.github.diegolovison; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.lang.management.ManagementFactory; | |
public class PrintRssMemory { | |
public static void main(String[] args) throws IOException { |
This file contains hidden or 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 | |
#Usage ./monitor.sh UNICAST3 FD_ALL FD_SOCK VERIFY_SUSPECT | |
while [ true ] | |
do | |
for var in "$@" | |
do | |
current_date_time="`date +%Y%m%d%H%M%S`"; | |
echo " >> $var >> $current_date_time" |
This file contains hidden or 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
DIR=$1 | |
num=0 | |
skipped=0 | |
failures=0 | |
for file in $(find $DIR -name 'TEST-*.xml') | |
do | |
if [[ -f $file ]]; then | |
num=$((num + $(xmllint --xpath 'string(/testsuite/@tests)' $file))) | |
current_skipped=$(xmllint --xpath 'string(/testsuite/@skipped)' $file) | |
failures=$((failures + $(xmllint --xpath 'string(/testsuite/@failures)' $file))) |
This file contains hidden or 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
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory( "h2" ); | |
EntityManager entityManager = entityManagerFactory.createEntityManager(); | |
SessionFactoryImplementor sessionFactory = (SessionFactoryImplementor) ((Session)entityManager.getDelegate()).getSessionFactory(); | |
final String BEFORE = "before"; | |
TransactionUtil2.inTransaction( | |
sessionFactory, | |
session -> { |
This file contains hidden or 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
# https://github.com/jboss-dockerfiles/infinispan/blob/master/server/docker-entrypoint.sh | |
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
labels: | |
app: infinispan-server | |
name: infinispan-server | |
spec: |
This file contains hidden or 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
<security-realm name="ApplicationRealm"> | |
<server-identities> | |
<ssl> | |
<keystore path="ssl/keystore_server.jks" relative-to="jboss.server.config.dir" keystore-password="changeme" /> | |
</ssl> | |
</server-identities> | |
<authentication> | |
<local default-user="$local" allowed-users="*"/> | |
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/> | |
</authentication> |
This file contains hidden or 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
<hotrod-connector socket-binding="hotrod" cache-container="local"> | |
<encryption security-realm="ApplicationRealm" require-ssl-client-auth="false"> | |
<sni security-realm="ApplicationRealm" /> | |
</encryption> | |
<topology-state-transfer lazy-retrieval="false" lock-timeout="1000" replication-timeout="5000"/> | |
</hotrod-connector> |
This file contains hidden or 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
Index: client/hotrod-client/src/main/java/org/infinispan/client/hotrod/RemoteCacheManager.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- client/hotrod-client/src/main/java/org/infinispan/client/hotrod/RemoteCacheManager.java (revision 653c77fd0d3be2ccb21137be12ceea2147206e14) | |
+++ client/hotrod-client/src/main/java/org/infinispan/client/hotrod/RemoteCacheManager.java (revision c62f4b8c6d99ee8a78c7f26b37dc4226c89705c3) | |
@@ -292,7 +292,7 @@ | |
private void actualStart() { |
This file contains hidden or 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
- name: Install podman packages | |
yum: pkg={{ item }} | |
with_items: | |
- container-tools:1.0 | |
- name: Start podman | |
service: | |
name: podman | |
state: started |
This file contains hidden or 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
var data = ""; | |
var charges = document.getElementsByClassName("charge") | |
for (var i=0; i<charges.length;i++) { | |
var charge = charges[i]; | |
var date = charge.querySelectorAll(".date")[0].innerText; | |
var desc = charge.querySelectorAll(".description")[0].innerText; | |
var amount = charge.querySelectorAll(".amount")[0].innerText; | |
data += date + "\t" + desc + "\t" + amount + "\n"; | |
} |
OlderNewer