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
#!/usr/bin/env bash | |
AMQ_BASE=$HOME/repo/amq/download/7.9/amq-broker-7.9.3 | |
AMQ_DIR=$HOME/repo/amq/download/7.9/brokers | |
AMQ_SEQ=0 | |
AQM_DATA=east |
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.buuhsmead.quarkus.messaging.quickstarts; | |
import io.quarkus.test.junit.QuarkusTest; | |
import org.apache.kafka.clients.consumer.ConsumerRecord; | |
import org.apache.kafka.clients.consumer.ConsumerRecords; | |
import org.apache.kafka.clients.consumer.KafkaConsumer; | |
import org.junit.jupiter.api.Test; | |
import java.util.Arrays; | |
import java.util.Properties; |
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
startDelaySecs: 5 | |
ssl: false | |
blacklistObjectNames: ["java.lang:*"] | |
rules: | |
# Context level | |
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExchangesCompleted' | |
name: org.apache.camel.ExchangesCompleted | |
help: Exchanges Completed | |
type: COUNTER | |
labels: |
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
- job_name: 'blackbox-scrape' | |
metrics_path: /probe # is the endpoint of blackbox-exporter itself | |
params: | |
module: ['tcp_connect'] # a module defined in blackbox-config.yaml inside blackbox image | |
kubernetes_sd_configs: | |
- role: endpoints | |
namespaces: | |
names: | |
- '${NAMESPACE}' | |
relabel_configs: # not correct at this moment WIP |
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
(openshift 4.3) | |
To configure a webhook_config for Watchdog of Alertmanager we have to adjust the secret alertmanager.yml. | |
# oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .data "alertmanager.yaml" }}' | base64 -d > alertmanager.yaml | |
And then change alertmanager.yml into | |
global: | |
resolve_timeout: 5m | |
route: |
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
<cm:property-placeholder id="myblueprint.placeholder" persistent-id="camel.blueprint" > | |
<cm:default-properties> | |
<cm:property name="sleutel" value="env:waarden:geen_waarde" /> | |
</cm:default-properties> | |
</cm:property-placeholder> | |
.... |
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
#!/usr/bin/env bash | |
sudo lsof -Pnl +M -i4 -i6 |
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
Disk WRITE speed test | |
sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync | |
Disk READ speed test | |
dd if=tempfile of=/dev/null bs=1M count=1024 | |
Just use it often on different machines to get a feeling of speed. |
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
(def ^:private thread-local-utc-date-format | |
;; SimpleDateFormat is not thread-safe, so we use a ThreadLocal proxy for access. | |
;; http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4228335 | |
(proxy [ThreadLocal] [] | |
(initialValue [] | |
(doto (java.text.SimpleDateFormat. "yyyy-MM-dd'T'HH:mm:ss.SSS-00:00") | |
;; RFC3339 says to use -00:00 when the timezone is unknown (+00:00 implies a known GMT) | |
(.setTimeZone (java.util.TimeZone/getTimeZone "GMT")))))) | |
(defn write-date |
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
#!/usr/bin/python | |
import sys, getopt | |
print 'Number of arguments:', len(sys.argv), 'arguments.' | |
print 'Argument List:', str(sys.argv) | |
def usage(msg=None): | |
if msg: |