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
@rob-hills
rob-hills / ubuntu-22.04-mbp-a1707.md
Last active July 4, 2025 09:44
Ubuntu 22.04 on MacBook Pro 2017 (A1707, MBP 14,3)

Summary

Random set of notes and links that have helped me in the saga to get Ubuntu 22.04 up and running on my 2017 MacBook Pro These notes are mainly for myself in the event that I have to do this again some day. But if you find them helpful, that's great.

Important update

Unfortunately the MacBookPro that I bought second hand turned out to be a dud with some serious hardware flaws that didn't show up until a couple of months after I'd bought it.

I've since purhcased another laptop so I'm not going to be able to maintain this GIST.

I'll leave it here for now in case others want to contribute updates, or clone it. If you feel it's out of date or misleading or a waste of time, let me know in the comments and I'll remove it.

@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