Skip to content

Instantly share code, notes, and snippets.

@ali-aka-ahmed
ali-aka-ahmed / .zshrc
Created November 19, 2025 22:14
Claude Autorun Alias
# Claude command wrapper with YOLO mode
claude() {
# If the first arg is "yolo", rewrite the command
if [[ "$1" == "yolo" ]]; then
echo "⚠️ YOLO mode enabled… skipping permissions"
shift 1
command claude --dangerously-skip-permissions "$@"
else
# Otherwise pass everything through to the real claude binary
command claude "$@"
@ali-aka-ahmed
ali-aka-ahmed / WORKFLOW.md
Created November 10, 2025 22:42
WORKFLOW.md

WORKFLOW - READ BEFORE EVERY CODE CHANGE

🛑 STOP: Before Modifying ANY Code

Two-tier documentation system - Read BOTH types:

  1. Read folder-level docs (detailed architecture)
  2. Read function-level docs (concise: 1-3 sentences)

Examples:

@ali-aka-ahmed
ali-aka-ahmed / CLAUDE.md
Created November 10, 2025 22:42
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

⚠️ CRITICAL: Read This BEFORE Any Work

BEFORE modifying ANY code file:

  1. Read the relevant folder-level docs for the task (e.g., docs/internal/api-docs.md)
  2. Read relevant function-level docs for the task (e.g., docs/internal/api/handlers/health.md)
@ali-aka-ahmed
ali-aka-ahmed / agent loop
Created March 12, 2025 22:18 — 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
@ali-aka-ahmed
ali-aka-ahmed / backend-setup.md
Created August 30, 2024 01:47
Backend Setup Instructions

Backend Setup Instructions

Use this guide to setup the backend for this project.

It uses Supabase, Drizzle ORM, and Server Actions.

Write the complete code for every step. Do not get lazy. Write everything that is needed.

Your goal is to completely finish the backend setup.

@ali-aka-ahmed
ali-aka-ahmed / searchEdgeCases.js
Created September 2, 2022 18:58
Edge cases when learning about 'search' functions within array operations
/*
* =============================================
* =========== SEARCH EDGE CASES ===============
* =============================================
*/
// NOT IN LIST
const listOfDogs = ["pomeranian", "shih tzu"];
@ali-aka-ahmed
ali-aka-ahmed / arrayOperations.js
Last active September 2, 2022 18:59
Common operations on arrays
/*
* =================================
* =========== SEARCH ==============
* =================================
*/
let array = [1, 2, 3, 4, 5]
let val = array.find((val) => {
if (val === 1) {
@ali-aka-ahmed
ali-aka-ahmed / findLongestWord.js
Last active September 2, 2022 19:00
Ways to think through writing this function!
// Standard Solution
function findLongestWord(word1, word2, word3) {
if ((word1.length >= word2.length) && (word1.length >= word3.length)) {
return word1
} else if ((word2.length >= word3.length) && (word2.length >= word1.length)) {
return word2
} else if ((word3.length >= word1.length) && (word3.length >= word2.length)) {
return word3;
} else {
return 'error';
@ali-aka-ahmed
ali-aka-ahmed / wttrin.sh
Last active April 14, 2022 21:38
wttr.in shell function for .zshrc/.bashrc
weather() {
# Handle our variables
# If no arg is given, default to San Francisco
local request curlArgs
curlArgs="-H \"Accept-Language: ${LANG%_*}\" --compressed -m 10"
case "${1}" in
(-h|--help) request="wttr.in/:help" ;;
(*) request="wttr.in/${*:-SanFrancisco}?u" ;;
esac