This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| generate_ai_txt.py | |
| School Of Freelancing | |
| AI.TXT generator + relative HTML prefetch discovery | |
| Website: | |
| https://schooloffreelancing.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Production Google Search Console Diagnostic | |
| ============================================ | |
| Target: | |
| https://schooloffreelancing.com | |
| GSC property: | |
| sc-domain:schooloffreelancing.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |
NewerOlder