Skip to content

Instantly share code, notes, and snippets.

View imerfanahmed's full-sized avatar
😎
Busy: Converting O2 to CO2

Erfan Ahmed Siam imerfanahmed

😎
Busy: Converting O2 to CO2
View GitHub Profile
@imerfanahmed
imerfanahmed / GTM server using docker on VPS
Last active May 27, 2025 20:49
Custom GTM Server Setup using docker
Docs
1. Create a virtual host using your subdomain and configure it to point to port 8080.
2. Make sure to apply SSL certificates using Certbot.
3. Configure the Docker Compose file according to the provided instructions.
4. Congratulations! Your GTM server is now up and running.
5. Verify the setup by visiting: `https://preview.example.com/healthz`.
@imerfanahmed
imerfanahmed / env_updater.sh
Created April 9, 2025 09:28
Update .env Variables for All Apps in a Single Directory with One Command
#!/bin/bash
# Script to add or update environment variables in Laravel .env files
# Usage: ./env_updater.sh [webapps_directory] [env_key] [env_value]
WEBAPPS_DIR=${1:-"webapps"}
ENV_KEY=$2
ENV_VALUE=$3
# Check if required parameters are provided