Skip to content

Instantly share code, notes, and snippets.

@govardhan2598
govardhan2598 / rabbitmq-cluster.md
Created February 3, 2023 09:34 — forked from pobsuwan/rabbitmq-cluster.md
How to config rabbitmq server cluster [3 nodes]

How to config rabbitmq server cluster [3 nodes]

Edit /etc/hosts

vi /etc/hosts
192.168.10.157  rabbitmq-1
192.168.10.159  rabbitmq-2
192.168.10.161  rabbitmq-3
@govardhan2598
govardhan2598 / parallel_exec.sh
Created October 26, 2022 04:51 — forked from markandey/parallel_exec.sh
Shell Script to Execute commands in parallel
#!/bin/sh
##################################################################################
# R E A D T H I S B E F O R E U S I N G
# This script is to help you in executing a list of thing in parralel. this will fork background processes
# if you want to kill background processes use pkill -9 <yourscripname>
#
# -- U S A G E
# suppose you have 10 thousands items in a file which requires some || processing
# Note: if you are doing pure math, do not make it ||lel will not help much on single core CPU.
# but if you are doing some network operation, u can make it ||lel it will help you for sure!!
@govardhan2598
govardhan2598 / Jenkinsfile
Created December 14, 2021 05:52 — forked from bargenson/Jenkinsfile
Jenkinsfile example
pipeline {
agent any
environment {
PROJECT_NAME = "barracks-device-service"
DOCKER_REGISTRY = "docker.dev-factory.barracks.io"
DOCKER_REGISTRY_AUTH = credentials('nexus')
}
@govardhan2598
govardhan2598 / redis_cheatsheet.bash
Created December 9, 2021 12:14 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.

Start Kafka service

The following commands will start a container with Kafka and Zookeeper running on mapped ports 2181 (Zookeeper) and 9092 (Kafka).

docker pull spotify/kafka
docker run -d -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=kafka --env ADVERTISED_PORT=9092 --name kafka spotify/kafka

Why Spotify?

ADVERTISTED_HOST was set to kafka, which will allow other containers to be able to run Producers and Consumers.

@govardhan2598
govardhan2598 / Jenkinsfile
Created March 12, 2021 13:50 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples