Skip to content

Instantly share code, notes, and snippets.

View MuhammadQuran17's full-sized avatar

Muhammad Umar MuhammadQuran17

  • DanAds
View GitHub Profile
@MuhammadQuran17
MuhammadQuran17 / complex_issues.md
Created October 28, 2025 09:50
Very complex and Common issues

Laravel

Routes

  1. If you get 404, but everything is ok, then check the order of routes. Because:
Route::get('/{userChat?}', [AiChatController::class, 'index'])->name('index');
Route::get('/create', [AiChatController::class, 'create'])->name('create');
@MuhammadQuran17
MuhammadQuran17 / bug_fixing_strategy.md
Last active October 24, 2025 11:11
Bug fixing Strategy for Developer
  1. Start always from clear plan, strategy. It should be step by step.

1st example:

QA responsible for deploy on test envs, dev to provide changes itself

  • If QA said that your changes not work in test env’s, check if it was successfully deployed (for example through Jenkins status).
  • Then reproduce by yourself in test env
  • Then go to deeper investigation.
@MuhammadQuran17
MuhammadQuran17 / sql.md
Last active October 18, 2025 10:22
SQL task

πŸŽ“ Student Assignment β€” PostgreSQL Database Project

Topic:

University Management System (Students, Courses, Professors)


@MuhammadQuran17
MuhammadQuran17 / inertia.md
Created October 14, 2025 05:43
Inertia cheatsheet

API requests

Do not use inertia to fetch data. Instead please use axios or js fetch API. Because, when you do API request with inertia using useForm you should return back with message or return to route. You cannot return any usefull parameter ever never

@MuhammadQuran17
MuhammadQuran17 / testing.md
Last active November 5, 2025 08:19
Testing Cheatsheet

Regression testing is a software testing process to ensure that code modifications, such as bug fixes or feature updates, haven't negatively impacted or broken previously functioning aspects of the software

How to access private method for testing purpose

 // Create a reflection of the private method to make it accessible for testing.
    $method = new ReflectionMethod(TransformDataForFrontend::class, 'removeUUIDsInString');
    $method->setAccessible(true);

 return $method->invoke((new TransformDataForFrontend), $sql);
@MuhammadQuran17
MuhammadQuran17 / patterns.md
Last active October 9, 2025 05:47
OOP-Patterns

Observer and Pub/Sub pattern

While the terms are often used interchangeably, there is a technical distinction:

Publisher-subscriber is a network oriented architectural pattern and Observer is an object-event oriented pattern. They both are used at different Software levels.

Observer pattern: The subject (event) directly manages and notifies its observers (listeners). It's typically implemented within a single application process or codebase.

@MuhammadQuran17
MuhammadQuran17 / ai_infrastructure.md
Last active October 6, 2025 11:48
AWS, Azure For AI infrastructure.

Pricing is the same as in AI providers API's\

Privacy

  1. OpenAI - Privacy . OpenAI temporarily stores your data for two main reasons, but it does not use your API data to train its models unless you explicitly agree to it.
    For Safety (Abuse Monitoring): OpenAI keeps a log of your requests (prompts and responses) for up to 30 days. This is like a temporary security camera recording. They use it to check if anyone is using the platform for harmful purposes, like creating illegal or dangerous content. This is the default setting for everyone.
    To Make Features Work (Application State): Some tools, like the Assistants API, need to remember your conversation history or the files you've uploaded to function correctly. If you create an Assistant, it will store that data until you decide to delete it. For most simple requests, like generating text with the Chat Completions endpoint, no data is stored for this purpose.
    **Zero D
@MuhammadQuran17
MuhammadQuran17 / sso.md
Created October 5, 2025 12:11
SSO helper
@MuhammadQuran17
MuhammadQuran17 / the_vibe_of_vibe_coding.md
Last active October 4, 2025 04:34
The vibe of vibe coding

Usefull Md's

  1. Codebase analyst

IMPORTANT: You MUST follow these principles in all code changes and PRP generations:

KISS (Keep It Simple, Stupid)

Simplicity should be a key goal in design
Choose straightforward solutions over complex ones whenever possible\

@MuhammadQuran17
MuhammadQuran17 / windows_cheat.md
Last active October 3, 2025 10:17
windows helper

Win key doesn't work

  1. Press FN + Win it should work now.

VOICE ACCESS

  1. Mute and unmute to turn on and turn off the Voice Access
  2. click find a something For example if you have in your page Cancel button, you can say click find a cancel . Also you can use it for anything on your page with this command.
  3. Show numbers - to show which element have what number in your current page. Then you can say click 5 for example.
  4. Go to text field for moving your cursor into textable field.
  5. Type to type