Skip to content

Instantly share code, notes, and snippets.

View muath-ye's full-sized avatar
🚀
npx muath

Muath Alsowadi muath-ye

🚀
npx muath
View GitHub Profile

هل تعلم إنك تقدر تصير رجل أعمال بدون جامعة؟ 💡

يا صاحبي، مش ضروري تروح الجامعة عشان تصير رجل أعمال ناجح! 🤷‍♂️ كل الحكاية تعتمد على الشغف، المهارات، التجربة، القدرة على التعلُّم، والرؤية الذكية. كثير من رواد الأعمال الناجحين ما كملوا تعليمهم، لكنهم علّموا أنفسهم، واكتسبوا الخبرة من الميدان، وبنوا علاقات تساعدهم في النجاح.

أمثلة لناس نجحوا بدون جامعة:

ملاحظة: الأمثلة هذه لا تعني أن المتخرجين من الجامعات لا يستطيعون النجاح في الأعمل

  1. ستيف جوبز - مؤسس "أبل"، دخل جامعة "ريد" بس ما كمل.
  2. بيل غيتس - مؤسس "مايكروسوفت"، ترك "هارفارد" في نص الطريق.
  3. مارك زوكربيرغ - مؤسس "فيسبوك"، برضه خرج من "هارفارد".
  4. إيلون ماسك - درس شوية لكنه قرر يسيب الجامعة عشان يركز على مشاريعه.

I want to change permission to 755 for directories and 644 for files recursivly

To change permissions recursively so that:

  • Directories are set to 755 (read, write, execute for owner and read, execute for group and others), and
  • Files are set to 644 (read and write for owner, read-only for group and others),

follow these steps:

  1. Navigate to Your Repository or Target Directory

I want to clone phpmyadmin from github but it has more than 100k commits which makes it very large in storage size , so I need to clone it from github with only last version I don't care about commits history I only need to be able to check for updates

You can perform a shallow clone to retrieve only the latest snapshot of the repository (i.e. just the most recent commit) without the full commit history. This can save both time and disk space. To do so for phpMyAdmin, run:

git clone --depth 1 https://github.com/phpmyadmin/phpmyadmin.git

Explanation

@muath-ye
muath-ye / قاعدة البيانات.md
Last active January 14, 2025 11:06
الطلاب والجامعة

الجداول الرئيسية والعلاقات بينها مع مراعاة صلاحيات المستخدمين المختلفة (الطلاب، الدكاترة، والعمادة).

تصميم قاعدة البيانات

1. الجداول الرئيسية

جدول المستخدمين (users)

يحتوي على معلومات عامة عن جميع المستخدمين في النظام (طلاب، دكاترة، عمادة).

@muath-ye
muath-ye / html-languages.txt
Created January 9, 2025 08:52 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@muath-ye
muath-ye / cookie based session authentication on angular.md
Created December 31, 2024 18:51
Use cookie based session authentication on angular. This approach to authentication provides the benefits of CSRF protection, session authentication, as well as protects against leakage of the authentication credentials via XSS.

A structured approach to document AWS infrastructure effectively:


1. High-Level Overview

  • Purpose: Start with a high-level summary of your infrastructure, including objectives, regions, and primary services used.
  • Details to include:
    • Regions and Availability Zones (AZs) used.
    • Core services (EC2, S3, RDS, Lambda, etc.).
  • Key integrations (e.g., on-premise connections, third-party tools).
@muath-ye
muath-ye / software project environments.md
Created December 10, 2024 08:00
Managing live (production), staging, and testing environments in a software project.

Managing live (production), staging, and testing environments in a software project is crucial to ensure smooth development, testing, and deployment processes. Here's a structured approach:


1. Environment Setup

  • Production (Live):
    • Used by end-users.
    • Must be stable, secure, and performant.
    • Only approved and tested features are deployed here.
-- Create Categories table
CREATE TABLE Categories (
    Id INT AUTO_INCREMENT PRIMARY KEY,  -- Unique identifier for each category
    Slug VARCHAR(255) NOT NULL UNIQUE,  -- Slug for URL and uniqueness
    ParentCategoryId INT,  -- Optional self-referencing foreign key for hierarchical categories
    CreatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,  -- Timestamp when the category is created
    UpdatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,  -- Automatically updates when record is modified
    FOREIGN KEY (ParentCategoryId) REFERENCES Categories(Id)  -- Self-referencing foreign key for nested categories
);