Skip to content

Instantly share code, notes, and snippets.

View mahkassem's full-sized avatar
🧠
Focusing

Mahmoud Kassem mahkassem

🧠
Focusing
View GitHub Profile
@mahmoudalnkeeb
mahmoudalnkeeb / PostGreSQL_Syntax.md
Last active February 2, 2022 18:52
contains PostgreSQL basic syntax

PostGres Basic Syntax

meta commnds

 \c connect
 \q exit
 \dt display table
 \l list of databases

create database

@mahkassem
mahkassem / laravel-octane-pm2.md
Last active December 16, 2024 04:35
Laravel Octane PM2 Configuration

How to use

  • Add laravel-octane-pm2.yml in laravel app base directory
  • start using pm2 start laravel-octane-pm2.yml
  • Enable pm2 to auto start your app using pm2 save
@mahkassem
mahkassem / laravel-octane
Created November 8, 2021 10:19
Laravel Octane PM2
pm2 start artisan --name laravel-worker --interpreter php -- octane:start --server=roadrunner --max-requests=1000 --host=127.0.0.1 --port=8000
@mahkassem
mahkassem / default-nginx-configuration-file.conf
Last active November 12, 2022 01:36 — forked from skbr1234/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
## Personal note: Muslims are not terrorists and I humbly request my engineering community to help end racism.
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@mahkassem
mahkassem / git-alias.sh
Created October 15, 2021 21:50 — forked from Bojole/git-alias.sh
Git Aliases
git config --global alias.a "! git add . && git status"
git config --global alias.aa "! git add . && git add -u . && git status"
git config --global alias.ac "! git add . && git commit"
git config --global alias.acm "! git add . && git commit -m"
git config --global alias.alias "! git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\ => \2/' | sort"
git config --global alias.au "! git add -u . && git status"
git config --global alias.c "commit"
git config --global alias.ca "commit --amend"
git config --global alias.cm "commit -m"
git config --global alias.co checkout
@vinodpandey
vinodpandey / MySql-5.6-installation guide.md
Last active April 29, 2025 08:20
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@websofter
websofter / ecosystem.config.json
Created October 28, 2019 13:47
Run laravel artisian serve script via pm2
{
"apps": [{
"name": "laravel-app",
"script": "artisan",
"args": ["serve", "--host=0.0.0.0", "--port=3333"],
"instances": "1",
"wait_ready": true,
"autorestart": false,
"max_restarts": 1,
"interpreter" : "php",
@Bojole
Bojole / git-alias.sh
Last active October 27, 2022 18:51
Git Aliases
git config --global alias.a "! git add . && git status"
git config --global alias.aa "! git add . && git add -u . && git status"
git config --global alias.ac "! git add . && git commit"
git config --global alias.acm "! git add . && git commit -m"
git config --global alias.alias "! git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\ => \2/' | sort"
git config --global alias.au "! git add -u . && git status"
git config --global alias.c "commit"
git config --global alias.ca "commit --amend"
git config --global alias.cm "commit -m"
git config --global alias.co checkout
@pongstr
pongstr / _readme.md
Last active October 26, 2023 05:57
HTTP/2 Recipe: Nginx + Node.js

Imgur

Recipe

Install homebrew/services, this will be helpful, you'll see later. :D

$ brew tap homebrew/services