Skip to content

Instantly share code, notes, and snippets.

View MuhammadQuran17's full-sized avatar

Muhammad Umar MuhammadQuran17

  • DanAds
View GitHub Profile
@MuhammadQuran17
MuhammadQuran17 / n8n.md
Last active December 27, 2025 17:34
n8n.io example of AI agent

Data Transformation

image

image

const items = $input.all().map((item) => item.json);

let result = {};
@MuhammadQuran17
MuhammadQuran17 / aws_cheatsheet.md
Last active November 14, 2025 03:14
AWS cheatsheet

For include smthing and exlude smthing use:

"sad76(@5" -"nkadw((527"

It will include 1ast and exclude second and it will work even if smthing was added before or after these expressions it is like %Search%

Регулярка чувствительна к регистру. Если нужно искать exception, EXCEPTION, sql, и т.д., используй флаг (?i):

fields f1, f2, f3
@MuhammadQuran17
MuhammadQuran17 / tempermonkey_deepWiki.md
Created May 20, 2025 05:06
Tempermonkey and deepWiki
@MuhammadQuran17
MuhammadQuran17 / graphic_vide_cards_cheatsheat.md
Last active May 22, 2025 05:46
Graphic Video Cards CheatSheat

Check on Windows

  • Go to Nvidia Control Panel
  • Press Help
  • Press system Information
Тип памяти Объяснение
Dedicated Video Memory Это реальная физическая VRAM, встроенная в видеокарту. У тебя 4 ГБ.

@Authors Gemini 2.5 flash & XMSI

Understanding the Basics of UML Diagrams with PHP Examples

UML (Unified Modeling Language) is a graphical language used for visualizing, specifying, constructing, and documenting software system artifacts. It helps developers and stakeholders better understand a system's structure and behavior.

Let's break down the fundamentals of UML diagrams, focusing on class diagrams and the relationships between classes, using PHP examples.

Core Concepts of UML Class Diagrams

  • localStorage is similar to sessionStorage , except that while localStorage data has no expiration time, sessionStorage data gets cleared when the page session ends — that is, when the page is closed.
  • LocalStorage can store up to 5 MB (Megabytes) of data per domain in most modern browsers. This limit applies to both localStorage and sessionStorage. While this is a considerable amount of space compared to cookies (4KB)
@MuhammadQuran17
MuhammadQuran17 / openai_models_list.json
Created July 3, 2025 10:46
openai_models_from_their_api
{
"object": "list",
"data": [
{
"id": "gpt-4-0613",
"object": "model",
"created": 1686588896,
"owned_by": "openai"
},
{
@MuhammadQuran17
MuhammadQuran17 / cashier_stripe_laravel.md
Last active January 9, 2026 05:48
cashier_stripe_laravel.md

Stripe

Cashier v15.7

  1. you should not seed/fill any migrations. Cashier migrations will be populated automatically after getting response from stripe.
  2. You need to duplicate Stripe's product name, price , description to show it on a pricing table in UI. Duplicate it in config file or in some db table
  3. $user->subscribed() checks wheter user is subscribed to any product.
  4. $user->subscribedToProduct('STRIPE_PRODUCT_ID') the parameter will be the stripe's product id.
  5. You should not use SAP when redirecting $request->user()>newSubscription()->checkout(), not use axios, or Inerti, just use window.location.href = route('subscribe', { plan: planId });
  6. pm_type, pm_last_four in users table will be filled only if user will select save his payment_card. when a user has a default payment method set on their Stripe customer.
@MuhammadQuran17
MuhammadQuran17 / GDPR_Cookie_consent.md
Last active September 24, 2025 06:48
GDPR Cookie consent
@MuhammadQuran17
MuhammadQuran17 / vibe_coding_principles.md
Created September 27, 2025 07:45
In a Vibe of vibe coding

Vibe coding Manifest by Muhammad Umar

  1. Do not rely on AI generated code of a new framework/language that you don't know. If you haven't written even a 1 line of code, in that language/framework, you should at least read documentation, understand how it works, and then orchestrate the Ai. Reading documentation should be a pleasure.