Skip to content

Instantly share code, notes, and snippets.

View Mahmoudz's full-sized avatar
while ('Zalt' == ALIVE) { learn(*); code(24, 7); live(0xEXP10RE); }

Mahmoud Zalt Mahmoudz

while ('Zalt' == ALIVE) { learn(*); code(24, 7); live(0xEXP10RE); }
View GitHub Profile

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@Link-
Link- / osc_arabs.md
Last active September 8, 2024 06:57
Open Source Contributors in the Arab World

List has moved

I've moved the list here: https://github.com/Link-/Arab_OSC to allow for direction contributions

Arab OSC

List of the most influential Arab Open Source Contributors (Arab OSC)

This is a list of the most influential Arab Open Source Contributors. This list has been compiled based on recommendations and referrals from the community. Anyone can contribute to this list just create a Pull Request (PR)!

Open source contributions range from helping fix bugs, translation, providing design material, contributing to documentation or even being a core code contributor. It can take many forms. As such, the criteria to be on this list or to nominate someone for it are as follows:

@FWidm
FWidm / 0_FindDependencies.log
Last active November 25, 2017 16:39
A small CLI tool that finds all `use`d containers for a container. In addition it also detects active `Apiato::call` (only spaces or tabs in front of a call)
$ php artisan apiato:container-dependencies app/Containers/GeoLocation/
Searching for dependencies in container: app/Containers/GeoLocation/
Remove own container from listings? (y/n):
> n
Found dependencies:
[imports]:
[Authentication]:
[0]: app/Containers/GeoLocation/Actions/CreateGeoRequestAction.php
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 26, 2026 03:21
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@duzun
duzun / uuid.js
Last active February 27, 2024 18:31
A simple UUID v4 generator, relying on Math.random() + Date.now()
/** Generates UUID v4
*
* @node There is a bug in Chrome's Math.random() according to http://devoluk.com/google-chrome-math-random-issue.html
* For that reason we use Date.now() as well.
*/
function UUID() {
function s(n) { return h((Math.random() * (1<<(n<<2)))^Date.now()).slice(-n); }
function h(n) { return (n|0).toString(16); }
return [
s(4) + s(4), s(4),
@v0lkan
v0lkan / nginx.conf
Last active May 1, 2026 02:49
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 24, 2026 19:00
A badass list of frontend development resources I collected over time.
@meetrajesh
meetrajesh / hash_table.php
Created December 14, 2012 05:12
Basic implementation of a hash table in PHP with collision detection and management (no locking support)
<?php
class HashTable {
private $_array = array();
private $_size = 10000;
public function __construct($size=0) {
$size = (int)$size;
if ($size > 0) {