Skip to content

Instantly share code, notes, and snippets.

View mahkassem's full-sized avatar
🧠
Focusing

Mahmoud Kassem mahkassem

🧠
Focusing
View GitHub Profile

Northwind Database Queries

Description

This project is a collection of SQL queries that answer questions about the Northwind database using MySQL8 DQL commands.

Connect to the Database

Parameter Value
@mahkassem
mahkassem / Database_Reasearch_Project.md
Last active April 15, 2024 23:33
Research Project: Comparing Document vs Relational Modeling

Research Project: Comparing Document vs Relational Modeling

This project focuses on solidifying your understanding of the document data model and relational model using MongoDB and MySQL.

Project Goals

  • Grasp the core concepts of document and relational data models. Evaluate the strengths and weaknesses of each model for a chosen use case.
  • Design sample schemas for the use case in both (MongoDB) and a relational database (MySQL).
  • Analyze the trade-offs in terms of data flexibility, querying complexity, and scalability for each approach.
@mahkassem
mahkassem / nestjs-unique-constraints-validator.ts
Created December 7, 2022 10:56
Nestjs - Unique Constraints Class-Validator Decorator
import {
ValidatorConstraint,
ValidatorConstraintInterface,
ValidationArguments,
registerDecorator,
ValidationOptions,
} from 'class-validator';
import { DataSource } from 'typeorm';
@ValidatorConstraint({ async: true })
@mahkassem
mahkassem / k8s-commands.md
Last active December 25, 2022 03:22
k8s

K8s

kubeconfig

  • kubectl commands:
# View the current context:
kubectl config current-context
@mahkassem
mahkassem / README.md
Last active January 23, 2024 23:37 — forked from kcak11/App.md
Mahmoud Kassem

Hi 👋, I'm Mahmoud Kassem

Software Engineer | Instructor

Blogs posts

Connect with me:

@mahkassem
mahkassem / LNNP.md
Created June 13, 2022 19:59
Linux Server Setup & Deployment

Linux Server Setup & Deployment

Deploy NodeJS application and html website with PostgresSQL and Nginx as a server

Environment

  • OS: Linux20.04 LTS
  • Server: Nginx 1.20
  • NodeJS: nvm 0.39
  • Database: PostgreSQL 12.11

Steps

@mahkassem
mahkassem / laravel-octane-pm2.md
Last active July 8, 2024 04:07
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 xameeramir/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