Skip to content

Instantly share code, notes, and snippets.

View RezixDev's full-sized avatar
:octocat:
Hello World!

Rezix RezixDev

:octocat:
Hello World!
  • World
View GitHub Profile
@RezixDev
RezixDev / codebase-local.sh
Created July 30, 2025 17:02
Export project folder structure and code files to a single markdown file
#!/bin/bash
# Configuration
TARGET_FOLDER="${1:-./src/features/nutrition}" # Use first argument or default
OUTPUT_FILE="codebase-export.txt"
INCLUDE_EXTENSIONS=("ts" "tsx" "js" "jsx" "css" "html" "json" "md")
# Function to check if file should be included
should_include_file() {
local file="$1"
@RezixDev
RezixDev / codebase.sh
Last active July 24, 2025 12:30
Export entire codebase to single file with parent tree structure for LLM analysis (Call it in src folder of web project)
#!/bin/bash
# Configuration
OUTPUT_FILE="codebase_for_claude.txt"
EXTENSIONS=("*.js" "*.ts" "*.jsx" "*.tsx" "*.py" "*.java" "*.cpp" "*.h" "*.css" "*.html" "*.md" "*.json" "*.yml" "*.yaml")
EXCLUDE_DIRS=("node_modules" ".git" "dist" "build" "__pycache__" ".next" "coverage")
# Function to check if directory should be excluded
should_exclude_dir() {
local dir="$1"
@RezixDev
RezixDev / codebase_files.sh
Last active July 24, 2025 08:59
Code From Different Files to One File (for LLMs)
#!/bin/bash
# Configuration
OUTPUT_FILE="codebase_for_claude.txt"
EXTENSIONS=("*.js" "*.ts" "*.jsx" "*.tsx" "*.py" "*.java" "*.cpp" "*.h" "*.css" "*.html" "*.md" "*.json" "*.yml" "*.yaml")
EXCLUDE_DIRS=("node_modules" ".git" "dist" "build" "__pycache__" ".next" "coverage")
# Clear the output file
> "$OUTPUT_FILE"
@RezixDev
RezixDev / Show Tree Structure
Last active July 15, 2025 17:36
Show Tree Structure of a given Project. Set permission "chmod +x tree.js" and call using ./tree.js
# set correct permission: chmod +x tree.js
# call using ./tree.js
#!/usr/bin/env node
import fs from 'fs';
import path from 'path';
// Default folders to ignore
const DEFAULT_IGNORE = [
'node_modules',