Skip to content

Instantly share code, notes, and snippets.

View MuhammadQuran17's full-sized avatar

Muhammad Umar MuhammadQuran17

  • DanAds
View GitHub Profile
@MuhammadQuran17
MuhammadQuran17 / windows_ssh.md
Last active December 30, 2025 13:44
Connect to Windows SSH server
@MuhammadQuran17
MuhammadQuran17 / seo_cheat.md
Last active December 30, 2025 05:44
SEO & Google

Google flagged your site as suspicious

  1. check comments. Your code contains the SVG logos and specific styling for Google and GitHub login buttons.

The Issue: Google's "Phishing" scanners look for the presence of official brand logos (Google, GitHub, Microsoft) on domains that are not owned by those companies. If a site is new or has low "reputation," and it contains a "Continue with Google" button, the algorithm often flags it as a phishing attempt to steal Google credentials.

The Fix: * Completely remove the commented-out SSO code.

  1. You are using .
@MuhammadQuran17
MuhammadQuran17 / docs_cheetsheat.md
Created December 24, 2025 13:57
Documentation writing

Example: git stash [push [-p | --patch] [-S | --staged]

  1. Square brackets [ ]: Indicate that the parameter is optional. The command will work without it.

You can not increase Dedicated VRAM of GPU, it is very bad.

  • For local AI model workloads, NVIDIA GPUs with large VRAM are ideal. GPUs like the RTX 4090, RTX 4080, RTX 3090 or newer AI-specialized cards (like NVIDIA H100 series) are recommended if budget allows. Used RTX 3090 offers good value.[^2_6][^2_7]
You need Thunderbolt (built in Yes) + dockStation + eGpu

Summary recommendation:

@MuhammadQuran17
MuhammadQuran17 / php_refactoring_task2.md
Created November 12, 2025 07:09
php reafactoring task 2 DRY

How to prevent DRY in PHP. Refactoring task

class ManageableMapper extends BaseMapper
{
    public function map(array $data): array
    {
        return array_map(function ($row) {
 Arr::set(
@MuhammadQuran17
MuhammadQuran17 / refactor_this_php_code.md
Created November 12, 2025 07:01
Task to refactoring PHP code

How will you refactor this PHP code block? Use this as helper

<?php

namespace NOTIMPORTANT_NOW;


class NOTIMPORTANT_NOW extends NOTIMPORTANT_NOW
@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