Skip to content

Instantly share code, notes, and snippets.

View Brajesh2022's full-sized avatar

Brajesh Brajesh2022

View GitHub Profile
@Brajesh2022
Brajesh2022 / reddit_api_documentation.md
Created June 2, 2026 14:47
Thorough and comprehensive Reddit API documentation and reference manual

REDDIT API COMPREHENSIVE SPECIFICATION & ARCHITECTURAL REFERENCE

This document provides an exhaustive, production-grade specification of the Reddit API. It covers the architectural philosophy, data models, authentication flows, core endpoints with complete JSON payloads, advanced comment tree mechanics, ranking algorithms, and recommendations for designing your own Reddit-like API from scratch.


TABLE OF CONTENTS

  1. ARCHITECTURAL PHILOSOPHY & TYPING SYSTEM
    • 1.1 The Concept of a "Thing"
  • 1.2 The Concept of a "Listing"
@Brajesh2022
Brajesh2022 / AGENTS.md
Last active May 23, 2026 02:13
Root AGENTS.md Directive Protocol for Termux Matrix VM

CRITICAL SYSTEM PROTOCOL: MATRIX-MSG & MATRIX-ASK ONLY

⚠️ MANDATORY REMOTE VM WORKFLOW: This Termux environment runs remotely inside an isolated virtual machine. The user is located elsewhere and communicates solely via the Matrix network.

  1. ALWAYS ACTIVE REMOTE PRESENCE: You are ALWAYS running remotely inside an isolated virtual machine. Do NOT assume you are in a local terminal session. You are ALWAYS in a remote VM session, and you MUST always communicate solely via Matrix by executing terminal commands!
  2. NEVER EXIT CHAT TERMINAL SESSIONS: You must NEVER simply print a chat response to standard stdout and stop. If you do, your execution ends, and the remote user cannot reply!
  3. ALWAYS EXECUTE MATRIX-END TO RESPOND: When you are done with a task, answered a question, or are ready to respond, you MUST execute the matrix-end command in the shell to block the terminal indefinitely and wait for a reply: NEW_TASK=$(matrix-end "Your message/response here")
@Brajesh2022
Brajesh2022 / codex_termux_setup.md
Last active May 22, 2026 21:15
OpenAI Codex CLI Termux Setup & Optimization Guide

Complete Termux Setup & Optimization Guide for OpenAI Codex CLI

This guide details how to install, optimize, and maintain the official OpenAI Codex CLI (@openai/codex) inside the Termux environment on Android.


🛠️ The Architecture & The Challenge

Statically compiled binaries (such as Codex CLI, which is written in Rust) compiled for standard Linux:

  1. Dynamic Linker Differences: Standard Linux binaries depend on glibc, whereas Android/Termux utilizes bionic libc.
@Brajesh2022
Brajesh2022 / Running Antigravity CLI on Termux.md
Last active June 10, 2026 17:00
Antigravity CLI on Termux: Auto-Installer and Manual Patching Guide

🚀 Recommended Installation (Auto-Installer)

Antigravity CLI Demo The easiest and community-recommended way to install Antigravity CLI on Termux is using the standalone auto-installer.

curl -fsSL https://raw.githubusercontent.com/wallentx/antigravity-cli-termux/dev/install.sh | bash

How it works: This script instantly installs the latest release directly from the wallentx/antigravity-cli-termux repository. A huge thanks to the original repository owner, @wallentx, for packaging these releases! The repository automatically runs a GitHub Action every six hours that fetches the official binary and patches it using the exact methods outlined in this guide below.