Skip to content

Instantly share code, notes, and snippets.

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

Tristan Tarrant tristantarrant

🏠
Working from home
  • Red Hat
  • Italy
View GitHub Profile
@tristantarrant
tristantarrant / google-drive-video-transcript-extractor.js
Created May 27, 2025 11:53
TamperMonkey Google Drive Video transcript exporter
// ==UserScript==
// @name Goole Meet Transcript
// @namespace http://tampermonkey.net/
// @version 2025-05-26
// @description try to take over the world!
// @author You
// @match https://drive.google.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@tristantarrant
tristantarrant / infinispan-certificate-wizard.sh
Created May 2, 2025 05:45
Infinispan Certificate Wizard
#!/bin/bash
DEFAULT_PASSWORD="secret"
DEFAULT_CA_DN="CN=CA,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_SERVER_DN="CN=Server,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_NODE_DN="CN=Node,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_NODE_ID=node
DEFAULT_CLIENT_DN="CN=Client,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_CLIENT_ID=client
VALIDITY_DAYS=365
KEY_SIZE=2048
@tristantarrant
tristantarrant / infinispan-tls.xml
Created June 12, 2024 07:08
Infinispan Server TLS configuration
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:15.0 https://infinispan.org/schemas/infinispan-config-15.0.xsd
urn:infinispan:server:15.0 https://infinispan.org/schemas/infinispan-server-15.0.xsd"
xmlns="urn:infinispan:config:15.0"
xmlns:server="urn:infinispan:server:15.0">
<cache-container name="default" statistics="true">
<transport cluster="${infinispan.cluster.name:cluster}" stack="${infinispan.cluster.stack:tcp}" node-name="${infinispan.node.name:}" server:security-realm="cluster"/>
<security>
@tristantarrant
tristantarrant / infinispan-certificates.sh
Created June 12, 2024 07:00
Infinispan certificate creation tool
#!/bin/bash
DEFAULT_PASSWORD="secret"
DEFAULT_CA_DN="CN=CA,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_SERVER_DN="CN=Server,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_NODE_DN="CN=Node,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_NODE_ID=node
DEFAULT_CLIENT_DN="CN=Client,OU=Infinispan,O=JBoss,L=Red Hat"
DEFAULT_CLIENT_ID=client
VALIDITY_DAYS=365
KEY_SIZE=2048
@tristantarrant
tristantarrant / infinispan-cli-cheatsheet.adoc
Last active October 11, 2019 19:03
Infinispan CLI Cheat Sheet

Create a cache using a template

create cache --template=org.infinispan.DIST_SYNC dcache

Create a permanent cache using a template

@tristantarrant
tristantarrant / hotrod-kerberos-authentication.adoc
Created October 9, 2019 07:46
Hot Rod authentication GSSAPI/Kerberos

GSSAPI/Kerberos Authentication for Hot Rod

krb5.conf

Prepare a krb5.conf file which describes your Kerberos environment (domain, KDC, etc.)

krb5.conf

<infinispan>
<jgroups>
<stack name="xsite" extends="udp">
<relay.RELAY2 site="LON" xmlns="urn:org:jgroups"/>
<remote-sites default-stack="tcp">
<remote-site name="NYC"/>
</remote-sites>
</stack>
</jgroups>
<infinispan>
<cache-container name="clustered">
<!-- Use the default udp stack -->
<transport cluster="cluster" stack="udp"/>
...
</cache-container>
</infinispan>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:10.0 http://www.infinispan.org/schemas/infinispan-config-10.0.xsd
urn:org:jgroups http://www.jgroups.org/schema/jgroups-4.0.xsd"
xmlns="urn:infinispan:config:10.0"
xmlns:ispn="urn:infinispan:config:10.0">
<jgroups>
<!-- Inline our own JGroups stack -->
<stack name="mping">
<TCP bind_port="7800" port_range="30" recv_buf_size="20000000" send_buf_size="640000"
<infinispan>
<jgroups>
<!-- Use the "tcp" stack but replace the discovery -->
<stack name="tcpgossip" extends="tcp">
<MPING ispn:stack.combine="REMOVE" xmlns="urn:org:jgroups"/>
<TCPGOSSIP initial_hosts="${jgroups.tunnel.gossip_router_hosts:localhost[12001]}" ispn:stack.combine="INSERT_AFTER" ispn:stack.position="TCP" xmlns="urn:org:jgroups"/>
</stack>
</jgroups>
<cache-container name="clustered">