Skip to content

Instantly share code, notes, and snippets.

View AnythingLinux's full-sized avatar
🏠
Working from home

Karim AnythingLinux

🏠
Working from home
View GitHub Profile
@AnythingLinux
AnythingLinux / Node.js Installation
Last active December 2, 2026 18:41
Node.js Installation
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.41.0/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 26
# Verify the Node.js version:
@AnythingLinux
AnythingLinux / Translate LocalAI react-ui locale JSON files from English
Last active November 16, 2026 23:53
Translate LocalAI react-ui locale JSON files from English
#!/usr/bin/env python3
"""Translate LocalAI react-ui locale JSON files from English (en) to Bangla (bn),
then validate that bn keys/placeholders match en.
Stdlib only. Needs internet. Backends: DeepL API (recommended, set DEEPL_API_KEY)
or Google's free public endpoint (rate limited).
Usage:
export DEEPL_API_KEY='your-key' # do not paste the key into the script
python3 translate_localai_bn.py --only common.json # test one file first
@AnythingLinux
AnythingLinux / Vapi Voice AI Setup Linux
Last active October 17, 2026 03:32
Vapi Voice AI
curl -sSL https://vapi.ai/install.sh | bash
# vapi will installed successfully to ~/.vapi/bin/vapi
source /root/.bashrc
vapi login
vapi assistant create
vapi assistant list
vapi call list
vapi init
vapi mcp setup
@AnythingLinux
AnythingLinux / ai.txt generator
Last active September 9, 2026 19:08
AI.TXT Generator for Linux
#!/usr/bin/env python3
"""
generate_ai_txt.py
School Of Freelancing
AI.TXT generator + relative HTML prefetch discovery
Website:
https://schooloffreelancing.com
@AnythingLinux
AnythingLinux / Sitemap Generate RFC 3986 RFC 3987 XML safety Standard
Last active September 7, 2026 20:25
Sitemap Generate RFC 3986 RFC 3987 XML safety checks
#!/usr/bin/env python3
"""
generate_sitemap.py — Canonical-first, RFC 3986/3987 XML Sitemap Generator & Validator
Usage:
python3 /root/script/generate_sitemap.py --apply
"""
import argparse
import datetime
@AnythingLinux
AnythingLinux / Production-ready Google Search Console Diagnostic script
Last active September 12, 2026 16:16
Google Search Console Diagnostic script
#!/usr/bin/env python3
"""
Production Google Search Console Diagnostic
============================================
Target:
https://schooloffreelancing.com
GSC property:
sc-domain:schooloffreelancing.com
#!/usr/bin/env python3
"""
generate_llms_txt.py
Scans /var/www/html/ for HTML files, builds llms.txt (v2 spec, concise index)
and llms-full.txt (concise index + description for every page), runs a dry
run first, applies the write, validates the output, deletes .bak files,
restarts Apache, and produces a report.
Usage:
@AnythingLinux
AnythingLinux / How To Install Apache web server on an Ubuntu 24.04 LTS Server
Last active September 1, 2026 22:48
Install Apache web server on an Ubuntu 24.04 LTS Server
apt update
apt upgrade
apt install git
git config --global user.name "masum"
git config --global user.email "linuxguns@gmail.com"
ssh-keygen -t rsa -b 4096 -C "linuxguns@gmail.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat /root/.ssh/id_rsa.pub
apt install apache2
@AnythingLinux
AnythingLinux / Prompt Markdown Instructions (.md Files)
Last active August 31, 2026 03:09
Create Prompt Markdown Instructions (.md Files)
#!/usr/bin/env python3
"""
html_to_ai_markdown.py
Convert every index.html/index.htm in a static HTML website to index.md.
Workflow:
1. Performs a complete dry-run test across all target files.
2. If dry-run passes, generates and applies index.md files.
3. Validates generated output.