Skip to content

Instantly share code, notes, and snippets.

View MuhammadQuran17's full-sized avatar

Muhammad Umar MuhammadQuran17

  • DanAds
View GitHub Profile
@MuhammadQuran17
MuhammadQuran17 / tg_bot_cheat.md
Created February 16, 2026 05:51
Telegram Bot creation
  1. I have used botman php, and it is pretty good
  2. Set webhook via sending post api to tg api
  3. If you have start conversation make sure that you are using persistant cache driver
@MuhammadQuran17
MuhammadQuran17 / general.md
Created January 14, 2026 08:44
General_things

Docusaurus

To add copy for LLM feature:

npm install docusaurus-plugin-copy-page-button

in docusaurus config file add

plugins: ["docusaurus-plugin-copy-page-button"],

@MuhammadQuran17
MuhammadQuran17 / windows_ssh.md
Last active December 30, 2025 13:44
Connect to Windows SSH server
@MuhammadQuran17
MuhammadQuran17 / seo_cheat.md
Last active February 7, 2026 20:14
SEO & Google

SEO helper

Build community

Increase engagement

  1. Create a call to action, poll ask for feedback to improve quality
  2. add share buttons with Social media to your posts
  3. Add comments section for ypur posts page (optional)
  4. Interact with other bloggers
@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.