vi /etc/hosts
192.168.10.157 rabbitmq-1
192.168.10.159 rabbitmq-2
192.168.10.161 rabbitmq-3
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
| #!/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!! |
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
| pipeline { | |
| agent any | |
| environment { | |
| PROJECT_NAME = "barracks-device-service" | |
| DOCKER_REGISTRY = "docker.dev-factory.barracks.io" | |
| DOCKER_REGISTRY_AUTH = credentials('nexus') | |
| } |
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
| # 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. |
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
ADVERTISTED_HOST was set to kafka, which will allow other containers to be able to run Producers and Consumers.
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
| Some Jenkinsfile examples |