Skip to content

Instantly share code, notes, and snippets.

View polyrenn's full-sized avatar
👋
Open to Hire

Olaniyi Enigbokan polyrenn

👋
Open to Hire
View GitHub Profile
@polyrenn
polyrenn / .zshrc
Created September 19, 2025 07:50
Automating Local Hostnames & Port Mapping
# map-port
NGINX_SITES_DIR="/nginx/conf"
# Function to map a hostname to a port
map-port() {
if [ $# -ne 2 ]; then
echo "Usage: map-port <hostname.test> <port>"
echo "Example: map-port app.test 3000"
return 1