Skip to content

Instantly share code, notes, and snippets.

@alanchavezgar
alanchavezgar / Force pull.txt
Created December 1, 2020 20:01
Git Force pull
git fetch --all
git reset --hard origin/<branch name>
git pull origin <branch name>
@alanchavezgar
alanchavezgar / run kafka.txt
Created June 21, 2021 16:00
Run dockerized kafka
docker run --name zookeeper -p 2181:2181 --env ALLOW_ANONYMOUS_LOGIN=yes -d docker.io/bitnami/zookeeper:3
docker run --name kafka -p 9092:9092 --env KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true --env KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 --env ALLOW_PLAINTEXT_LISTENER=yes --link=zookeeper -d docker.io/bitnami/kafka:2

Autor: Carlos Fuentes

add certificate

sudo wget -q -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT \
  http://swksvr_FQDN/pub/RHN-ORG-TRUSTED-SSL-CERT
sudo rhnreg_ks --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT \
  --serverUrl=https://swksvr_FQDN/XMLRPC --activationkey=activation_key