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 / 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
@aminusia
aminusia / gist:28afecfb816392929e8eb8a7d3936624
Last active December 19, 2022 17:16
Laravel Websockets : SSL on Apache Centos 8
## Installations
# ========================================================================
# apache + centos 8
# ========================================================================
# create APP_DOMAIN.conf on /etc/httpd/conf.d/
# fill with vhosts entry
<VirtualHost APP_DOMAIN:80>
ServerName APP_DOMAIN