Skip to content

Instantly share code, notes, and snippets.

View taheri24's full-sized avatar
🎯
Focusing

Majid Taheri taheri24

🎯
Focusing
  • qlub.io
  • Istanbul
View GitHub Profile
@taheri24
taheri24 / chatgpt-prompt.md
Last active August 25, 2026 06:57
AI PineScript Generator for ChatGPT(Free Plan)

study our tech-analysis and then find current market regime from analysis.md and market state and choice optimal indicator as preferred-indicator from market-mode.md and then develop a professional pine-script for handling preferred indicator and our tech-analyst , limit indicator for market-regime only , don't support other states, add market-regime in indicator title too .

  • focus on ChatGPT Sections only, skip Gemeni , Claude parts in analysis.md
  • niche styling for PineScript , colored lines by matter
  • only supported mentioned market regimes from the analysis
  • use hline in indent-zero only , don't call its in a function/routine
  • in analysis.md, focus on primary scenario skip alternative scenarios
  • add compact label on above of hline with normal-font-size for better visibility
  • add used indicators as static string in a table row
  • fill plot lines to make cloud zones with niche style by metter
  • add primary scenario in table row
@taheri24
taheri24 / .env
Last active January 5, 2026 16:15
Prisma Studio (Docker Compose)
DATABASE_URL=postgresql://prisma:prisma@db:5432/app
@taheri24
taheri24 / Makefile
Created December 28, 2025 11:51
Redpanda(kafka) + Debezium + Console + Postgres (Docker Compose)
# Makefile for Redpanda + Debezium + Console + Postgres stack
# Docker compose file
DC=docker-compose.yml
# Default target
.PHONY: up
up:
docker compose -f $(DC) up -d
@taheri24
taheri24 / .env
Last active December 28, 2025 09:22
Toy Laravel-like Framework on FrankenPHP (Debug-Friendly Dev Environment)
MARIADB_ROOT_PASSWORD=super_secret_root
MARIADB_DATABASE=app_db
MARIADB_USER=app_user
MARIADB_PASSWORD=app_secret
@taheri24
taheri24 / gen-ai.sh
Created December 14, 2025 21:27
git-ai: AI-Powered Git Analysis with Claude CLI - Smart Code Reviews, Commit Messages & Security Audits
#!/bin/bash
# git-ai - AI-powered git analysis using claude-cli with custom prompts
# Usage: git-ai <command> [prompt-file] [git-diff-args]
set -euo pipefail
# ═══════════════════════════════════════════════════════════════
# CONFIGURATION
# ═══════════════════════════════════════════════════════════════
@taheri24
taheri24 / secondary-prompts.md
Created December 11, 2025 08:20
Prompt Prefix Index: Hypotheticals, POV, Constraints & More

Below is an enhanced version of the secondary-prompt prefix tables, now with Example 1 and Example 2 for every prefix category. Clear, structured, copy-ready.


🧠 Extended Secondary Prompt Prefix Library (with Examples)


βœ… 1. Hypotheticals (β€œWhat if…”)

@taheri24
taheri24 / git-aliases.sh
Created December 10, 2025 15:10
Advanced Git aliases paired with Claude code CLI
# 1. Review code changes for pitfalls and corner cases
git config --global alias.review '!git diff HEAD | claude "Analyze this code diff for potential pitfalls, corner cases, security issues, error handling gaps, performance problems, logic errors, data handling issues, concurrency problems, and compatibility concerns. Provide specific scenarios and severity ratings."'
# 2. Generate commit message from staged changes
git config --global alias.commit-msg '!git diff --staged | claude "Generate a clear, concise git commit message following conventional commits format. Include: type (feat/fix/docs/style/refactor/test/chore), scope, and description. Be specific about what changed and why."'
# 3. Explain what changed in last commit
git config --global alias.explain '!git show | claude "Explain what this commit does in plain English. What problem does it solve? What are the key changes?"'
# 4. Review PR/branch diff
@taheri24
taheri24 / README.md
Created December 10, 2025 13:09
Direct draft deploy to netlify via Zip file - Bun.js required

Direct draft deploy to netlify via Zip file - Bun.js required

Set credentials

export NETLIFY_TOKEN="your_token"
export NETLIFY_SITE_ID="your_site_id or domain" 

Deploy

@taheri24
taheri24 / README.md
Created December 2, 2025 12:29
A Go Helper for Converting sql.Rows to []map[string]any and JSON

Go: Convert SQL Rows to JSON Without Structs

(a.k.a. Go SQL β†’ JSON Using map[string]any)

(also published as Go Utility: SQL Rows to JSON Array β€” No Structs Required)

This Gist provides a lightweight Go helper function that converts SQL query results (*sql.Rows) into a slice of JSON-friendly maps:

@taheri24
taheri24 / .bashrc
Last active December 1, 2025 11:16
My Bash ( ~/.bashrc )
alias clip='xclip -selection clipboard'
alias diff='git --no-pager diff --no-color HEAD'
alias patch='{ echo "\`\`\`patch"; git --no-pager diff --no-color ; echo "\`\`\`"; }'
alias pip38='python38 -m pip'
alias docker=podman