Skip to content

Instantly share code, notes, and snippets.

Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
######################################################################################
___________ ________ ___ ___ ________ ___ ___ ________
(" _ ")/" )|" \ /" | |" "\ |" \ /" | /" )
)__/ \\__/(: \___/ \ \ // | (. ___ :) \ \ // |(: \___/
\\_ / \___ \ /\\ \/. | |: \ ) || /\\ \/. | \___ \
|. | __/ \\ |: \. | (| (___\ |||: \. | __/ \\
\: | /" \ :) |. \ /: | |: :)|. \ /: | /" \ :)
\__| (_______/ |___|\__/|___| (________/ |___|\__/|___|(_______/
########################################################################################################################
___________ ________ ___ ___ ______ ______ _____ ___ _______ __ _______
(" _ ")/" )|" \ /" | /" _ "\ / " \ (\" \|" \ /" "||" \ /" _ "|
)__/ \\__/(: \___/ \ \ // | (: ( \___)// ____ \ |.\\ \ |(: ______)|| | (: ( \___)
\\_ / \___ \ /\\ \/. | \/ \ / / ) :)|: \. \\ | \/ | |: | \/ \
|. | __/ \\ |: \. | // \ _(: (____/ // |. \ \. | // ___) |. | // \ ___
\: | /" \ :) |. \ /: | (: _) \\ / | \ \ |(: ( /\ |\(: _( _|
\__| (_______/ |___|\__/|___| \_______)\"_____/ \___|\____\) \__/ (__\_|_)\_______)
__ _____ ___ ________ _______ ______ _______ ___ ___ ________
######################################################################################
___________ ________ ___ ___ ____ ____ ________ _______ _______
(" _ ")/" )|" \ /" | (" _||_ " | /" )/" "| /" \
)__/ \\__/(: \___/ \ \ // | | ( ) : |(: \___/(: ______)|: |
\\_ / \___ \ /\\ \/. | (: | | . ) \___ \ \/ | |_____/ )
|. | __/ \\ |: \. | \\ \__/ // __/ \\ // ___)_ // /
\: | /" \ :) |. \ /: | /\\ __ //\ /" \ :)(: "||: __ \
\__| (_______/ |___|\__/|___| (__________)(_______/ \_______)|__| \___)
___ ___ __ _____ ___ __ _______ _______ ___ ___ _______ _____ ___ ___________
#######################################################################################
______ __ ____ ____
/ ____/ ____ / /_ _____ ____ _ / _/ / __ \
/ __/ / __ \ / __/ / ___/ / __ `/ / / / / / /
/ /___ / / / // /_ / / / /_/ / _/ / / /_/ /
/_____/ /_/ /_/ \__/ /_/ \__,_/ /___/ /_____/
___ __ __ __ _ __ _
/ | __ __ / /_ / /_ ___ ____ / /_ (_) _____ ____ _ / /_ (_) ____ ____
/ /| | / / / / / __/ / __ \ / _ \ / __ \ / __/ / / / ___/ / __ `/ / __/ / / / __ \ / __ \
@martinmares
martinmares / jvm.md
Created May 30, 2025 06:38 — forked from dacr/jvm.md
jvm cheat sheet / published by https://github.com/dacr/code-examples-manager #12adcc40-b47b-48dc-9ca6-f4f3ba3df9d8/6e877c962827e60f7dd6ebf17a2e2f2cd3ed07de
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-server-http-ingress
namespace: argocd
annotations:
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"

Make hook

vi .git/hooks/pre-commit
#!/bin/bash

# Najdi všechny soubory s názvem "env.secured.json" ve staging area (připravené ke commitu)
PUT _index_template/tsm-log-index-template
{
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "tsm-log-lifecycle-policy"
},
"codec": "best_compression",
"number_of_shards": "1",
schema size
ord 667 MB
process 363 MB
ticket 194 MB
crm 167 MB
dms 60 MB
pg_toast 22 MB
config 14 MB
um 8128 kB

Kafka topics

Topic Replication Factor Partitions
{{ TSM_PREFIX_KAFKA }}-tsm-access-log 3 5
{{ TSM_PREFIX_KAFKA }}-tsm-admin 3 1
{{ TSM_PREFIX_KAFKA }}-tsm-cache-maintanance 3 5
{{ TSM_PREFIX_KAFKA }}-tsm-comment 3 5
{{ TSM_PREFIX_KAFKA }}-tsm-config-form 3 5
{{ TSM_PREFIX_KAFKA }}-tsm-config-form-dlq 3 1