Skip to content

Instantly share code, notes, and snippets.

View Alrefai's full-sized avatar

Mohammed Alrefai Alrefai

  • Saudi Arabia, Jeddah
View GitHub Profile
You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@Alrefai
Alrefai / ai-comedy-central.md
Last active June 28, 2025 04:57
🎭 AI Comedy Central: The Multi-Agent Orchestration Show - A hilarious documentation of real AI agent behavior during parallel execution testing

🎭 AI Comedy Central: The Multi-Agent Orchestration Show

A comedy series documenting the hilarious misadventures of AI agents in production orchestration

Co-Created by: Mohammed Alrefai and Claude (Anthropic AI)
Inspiration: Real multi-agent orchestration testing with Codex CLI and Gemini CLI
Technical Context: External AI tool integration during parallel execution testing
Original Repository: Agentic Development Documentation Project


@Alrefai
Alrefai / aria2.conf
Created November 17, 2022 11:38 — forked from qzm/aria2.conf
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
// foam-obsidian-importer.js
// Import from obsidian to foam
//
// • Copy all files recursively from SRC_DIR to DST_DIR.
// • For each .md file:
// - rename to kebab-case.md
// - add header "# filename /n/n"
// - fix internal links and attachments links
// • Copy any other (non .md) file.
//
@Alrefai
Alrefai / machine.js
Created June 15, 2020 01:58
Generated by XState Viz: https://xstate.js.org/viz
const formatCommand = msg => {
const { name, duration, message, audio, image } = msg.handler;
return {
command: name,
message,
audio,
image,
duration: duration * 1000, // convert seconds to milliseconds
@Alrefai
Alrefai / Component.js
Created April 21, 2018 22:31 — forked from mxstbr/Component.js
styled-components ❤ tachyons
// There's two ways to use Tachyons together with styled-components
// Both are valid, which one you use depends if you want to always apply a tachyons class when a certain component
// is rendered or if you want to apply it for specific instances.
// 1. Use .attrs to define classNames that should always be applied to a styled component
// Whenever you use <Component /> now it'll have both the styled-components as well as the Tachyons class
// See the docs for more info: https://www.styled-components.com/docs/basics#attaching-additional-props
const Component = styled.div.attrs({
className: 'bw0-l',
})`
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/expect/1.20.2/expect.js"></script>
</head>
<body>
// Functional Programming for Beginners Exercise
const reviews = [4.5, 4.0, 5.0, 2.0, 1.0, 5.0, 3.0, 4.0, 1.0, 5.0, 4.5, 3.0, 2.5, 2.0];
// const uniqueReviews = [...new Set(reviews)];
// console.log(uniqueReviews);
const countReducer = (acc, currentItem) => {
// currentItem in acc ? acc[currentItem]++ : acc[currentItem] = 1;
// return acc;
// 1. create a constant named friends,
// which is an array that contains 2
// names of your choosing.
const friends = ['Ali', 'Ahmed'];
// 2. Create a new constant named updatedFriends,
// which includes the friends array values plus
// one additional name
const updatedFriends = [...friends, 'Sameer'];