Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
# MOVE TO FOLDER | |
cd /opt/keycloak/bin/ | |
# LOGIN | |
./kcadm.sh config credentials --server http://localhost:8080/ --realm master --user your_user --password your_password | |
# DISABLE SSL | |
./kcadm.sh update realms/master -s sslRequired=NONE |
# Guide setup GlobalProtect Portal on Linux | |
## Setup GlobalProtect | |
sudo apt update | |
Download GlobalProtect: https://github.com/jundat95/GlobalProtectVPN/raw/master/PanGPLinux-5.0.8-c6.tgz | |
Go to folder Downloads and Unzip: tar -xvzf PanGPLinux-5.0.8-c6.tgz |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
CREATE STREAM sensor_events_json (sensor_id VARCHAR, temperature INTEGER, ...) | |
WITH (KAFKA_TOPIC='events-topic', VALUE_FORMAT='JSON'); | |
CREATE STREAM sensor_events_avro WITH (VALUE_FORMAT='AVRO') AS SELECT * FROM sensor_events_json; | |
version: '3.8' | |
services: | |
# ZOOKEEPER | |
zookeeper: | |
container_name: "zookeeper" | |
image: confluentinc/cp-zookeeper:${CF_TAG} | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
# ENABLE 4LW COMMANDS FROM EVERYWHERE |
Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups
command.
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describe
Note the values under "CURRENT-OFFSET" and "LOG-END-OFFSET". "CURRENT-OFFSET" is the offset where this consumer group is currently at in each of the partitions.
#!/bin/bash | |
MDS_EP=http://localhost:8091 | |
MDS_BA=c3VwZXJVc2VyOnN1cGVyVXNlcg== | |
KAFKA_CLUSTER_ID=h0r1CE3LQYidma5HR0VhWg | |
CONNECT=connect-cluster | |
SR=schema-registry | |
KSQLDB=ksql-cluster | |
C3=c3-cluste |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --delete-config retention.ms