Skip to content

Instantly share code, notes, and snippets.

View Jubraj001's full-sized avatar
🤠
Exploring

Jubraj Dev Jubraj001

🤠
Exploring
View GitHub Profile
@Jubraj001
Jubraj001 / kill_port.bash
Last active October 10, 2025 07:48
Kill a process running on a port by giving just the port number
killport() {
if [ -z "$1" ]; then
echo "Usage: killport <port>"
return 1
fi
local pid
pid=$(lsof -t -i :"$1")
if [ -z "$pid" ]; then
@Jubraj001
Jubraj001 / docker-compose.yml
Last active May 5, 2024 17:45
RabbitMQ Docker Compose File
version: "3.2"
services:
rabbitmq:
image: rabbitmq:3.8-management-alpine
container_name: 'rabbitmq'
ports:
- 5673:5672
- 15673:15672
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/