Skip to content

Instantly share code, notes, and snippets.

View ahmedelgabri's full-sized avatar
πŸ€”
...

Ahmed El Gabri ahmedelgabri

πŸ€”
...
View GitHub Profile
@ahmedelgabri
ahmedelgabri / cleanup.sh
Created April 20, 2026 15:33 — forked from FoushWare/cleanup.sh
macOS Developer Cleanup Script β€” free up space from caches, editors & dev tools
#!/bin/sh
# ============================================================
# 🧹 macOS Developer Cleanup Script β€” v5.0
#
# COMPATIBILITY:
# Works with any POSIX-compliant shell β€” bash 3.2+, bash 5,
# zsh, dash, sh. No bash-specific features used.
# Tested on macOS (default bash 3.2 / zsh) and Linux.
#
# ===========================================
# ZSH Hacks - Dreams of Code
# ===========================================
# Add these to your .zshrc file
# ===========================================
# -------------------------------------------
# 1. Edit Command Buffer
# -------------------------------------------
# Open the current command in your $EDITOR (e.g., neovim)
@ahmedelgabri
ahmedelgabri / Codebase diagram.md
Created June 24, 2025 09:58 — forked from aessam/Codebase diagram.md
Generate multiple Mermaid diagrams for large codebases.

I have a large codebase that I want to understand better through visual architecture diagrams. Please analyze the project structure and create comprehensive Mermaid diagrams that help me understand the codebase at different levels of detail.

πŸ“‹ Required Analysis

First, explore the codebase to understand:

  1. Project structure - root directories, main modules, configuration files
  2. Dependencies - internal dependencies between modules/packages
  3. Architecture patterns - layered architecture, microservices, monolith, etc.
  4. Key systems - core functionality areas (UI, backend, database, API, etc.)
  5. Technology stack - frameworks, languages, tools used
@ahmedelgabri
ahmedelgabri / agent loop
Created March 12, 2025 15:55 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
#!/usr/bin/env sh
cat <<EOF
β–„ β–„
β–„ β–„β–„β–„ β–„ β–„β–„β–„ β–„ β–„
β–ˆ β–„ β–ˆβ–„β–ˆ β–„β–„β–„ β–ˆ β–ˆβ–„β–ˆ β–ˆ β–ˆ
β–„β–„ β–ˆβ–„β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆβ–„β–ˆβ–„β–„β–ˆβ–„β–„β–ˆ β–ˆ
β–„ β–ˆβ–„β–„β–ˆ β–„ β–„β–„ β–„β–ˆ β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„
β–ˆβ–„β–„β–„β–„ β–„β–„β–„ β–ˆ β–„ β–„β–„β–„ β–„ β–„β–„β–„ β–„ β–„ β–ˆ β–„
β–„ β–ˆ β–ˆβ–„β–ˆ β–ˆβ–„β–ˆ β–ˆ β–ˆ β–ˆβ–„β–ˆ β–ˆ β–ˆβ–„β–ˆ β–„β–„β–„ β–ˆ β–ˆ
@ahmedelgabri
ahmedelgabri / config.md
Created October 5, 2024 09:58 — forked from pascalpoitras/1.md
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


@ahmedelgabri
ahmedelgabri / rename-pictures.sh
Created October 2, 2024 09:10 — forked from jart/rename-pictures.sh
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
-- vim: tabstop=2 shiftwidth=2 expandtab
-- We almost always start by importing the wezterm module
local wezterm = require 'wezterm'
-- Define a lua table to hold _our_ module's functions
local module = {}
-- Returns a bool based on whether the host operating system's
-- appearance is light or dark.
function module.is_dark()
@ahmedelgabri
ahmedelgabri / Makefile
Created September 18, 2024 14:08 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
main_package_path = ./cmd/example
binary_name = example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
@ahmedelgabri
ahmedelgabri / CMD.md
Created August 25, 2024 10:46 — forked from OXY2DEV/CMD.md

πŸ”° A beginners guide to create custom cmdline

showcase

Ever wanted to know how noice creates the cmdline or wanted your own one?

No one? Guess it's just me πŸ₯².

Anyway, this post is a simple tutorial for creating a basic cmdline in neovim.