This page is a collection of cheat-sheets for things that I forget often how to do.

Docker

RabbitMQ

docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.12-management

MISC

CURL

To retrieve the HTTP status code of a URL, use the following command:

curl -s -o /dev/null -w "%{http_code}" https://carlosschults.net --ssl-no-revoke

PID

As administrator, open the command prompt and run:

netstat -aon | findstr <PORT>

After finding out the PID of the offending process, kill it:

taskkill /PID <PID> /f