Skip to content

Instantly share code, notes, and snippets.

View fahdfady's full-sized avatar
🏠
Working from home

Fahd Ashour fahdfady

🏠
Working from home
View GitHub Profile
@aessam
aessam / Codebase diagram.md
Created June 24, 2025 03:08
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
@moabo3li
moabo3li / Implementing Master Page Copying in LibreOffice Impress.md
Last active September 11, 2025 13:21
Implementing Master Page Copying in LibreOffice Impress

Overview

This report details my contributions to enabling master page copying in LibreOffice Impress, addressing a 13-year-old bug (Bug 45617) that prevented users from duplicating master page templates. My work, delivered through two Gerrit patches (Change 179832 and Change 182206), was integrated into LibreOffice 25.8.0, released in 2025. The changes involved refactoring a complex codebase and implementing robust master page copying functionality, significantly improving Impress’s usability for creating presentation templates.

2025-04-29.07-00-23.mp4

Bug Context

@fedragon
fedragon / sdkman_with_fish
Last active December 18, 2025 05:46
How to use SDKMan! with Fish shell
# Install bass (https://github.com/edc/bass) to be able to use bash utilities in Fish
fisher add edc/bass
touch ~/.config/fish/functions/sdk.fish
# paste content in ~/.config/fish/functions/sdk.fish, then save
function sdk
bass source ~/.sdkman/bin/sdkman-init.sh ';' sdk $argv
end
@jboner
jboner / latency.txt
Last active January 2, 2026 16:10
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD