Skip to content

Instantly share code, notes, and snippets.

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

Masum AnythingLinux

🏠
Working from home
View GitHub Profile
@AnythingLinux
AnythingLinux / How To Install Apache web server on an Ubuntu 24.04 LTS Server
Last active August 20, 2026 17:54
Install Apache web server on an Ubuntu 24.04 LTS Server
sudo apt update
sudo apt upgrade
sudo apt install apache2
sudo ufw allow in "Apache Full"
apache2 -v
nano /etc/apache2/apache2.conf
# Add ServerName 127.0.1.1 into the middle of this file
ServerName 127.0.1.1
@AnythingLinux
AnythingLinux / Finalize footer sync
Created August 11, 2026 00:38
Finalize footer sync
@AnythingLinux
AnythingLinux / Copy the homepage's footer block into same site others HTML pages
Last active August 11, 2026 00:37
Copy the homepage's <footer> block into other HTML pages
@AnythingLinux
AnythingLinux / Prompt Markdown Instructions (.md Files)
Created August 10, 2026 05:02
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.
Rules:
- HTML is the source of truth.
- Each generated Markdown file gets YAML front matter:
title:
@AnythingLinux
AnythingLinux / Markdown-Instructions-for-AI--and-humans.md
Created August 10, 2026 04:44 — forked from eonist/Markdown-Instructions-for-AI--and-humans.md
Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

When creating Markdown (.md) files to standardize prompt instructions or best practices, clarity, consistency, and structure are paramount. Below is a comprehensive guideline on how to structure these files and what to do-and avoid-when authoring them.


Key Principles

  • Clarity: Use Markdown to make prompts and instructions easy to read, both for humans and AI models[6][8].
  • Consistency: Stick to a single Markdown flavor (e.g., CommonMark, GitHub Flavored Markdown) throughout your project[5].
@AnythingLinux
AnythingLinux / Convert Images To Webp
Created August 7, 2026 17:31
How To Do Convert Images Webp
#!/usr/bin/env bash
# ============================================================
# Convert the remaining local raster images (logos in
# /assets/images/) to WebP. Run this ON THE SERVER, in the site's
# assets/images directory — the actual image files weren't part of
# this upload, so this couldn't be done automatically here.
#
# After running, update index.html's <img> tags for these files to
# <picture> elements, e.g.:
#
@AnythingLinux
AnythingLinux / How to setup Openrouter API to run free model using Claude Code CLI
Created July 28, 2026 00:35
Setup Openrouter API to run free model using Claude Code CLI to run free model
To set up Claude Code CLI to run completely free models via OpenRouter, you must route the CLI's API requests through OpenRouter's endpoint and pass your OpenRouter API key as the auth token. This approach requires no third-party proxy or Docker containers.
✅ Prerequisites
- Any Linux terminal
- OpenRouter API Key: Get one at openrouter.ai/keys(opens in new tab).
- Claude Code v1.0.30+: Update via npm update -g @anthropic-ai/claude-code or brew upgrade claude-code.
- Node.js 26+.
1. Set Environment Variables (Persistent)
@AnythingLinux
AnythingLinux / How to Download any Website form Claude Platform
Created July 25, 2026 07:50
Download any Website form Claude Platform
Go to platform.claude.com → switch to workspace wrkspc_012A6P52BYVhwVTH (top-left workspace switcher)
Go to Settings → API Keys within that workspace
Create a new key there
Use it:
cd /var/www/html
nano download.py
import anthropic
Looking for an expert to install and configure the Faraday Vulnerability Management Platform on your Linux server? I provide professional Faraday installation, deployment, configuration, troubleshooting, and ongoing technical support for cybersecurity teams, penetration testers,
and organizations.
My Faraday Installation Services Include:
✔ Faraday Community/Enterprise setup on Linux
✔ Ubuntu, Debian, CentOS, and other Linux server installation
✔ Docker and manual Faraday deployment
✔ Database configuration and optimization
✔ User, workspace, and team configuration
@AnythingLinux
AnythingLinux / Hermes Agent Full Installation Support
Last active June 13, 2026 04:54
Hermes Agent - Full Course & Setup Guide - For COMPLETE Beginners
Hermes Agent - Full Course & Setup Guide - For COMPLETE Beginners
Get professional Hermes Agent Installation Support including production-grade setup, AI API integration, troubleshooting,
optimization, and ongoing maintenance.
What You'll Get Support?
- 🧠 Hermes Agent Installation Full Support
- 🌐 Cloud & VPS server setup (DigitalOcean, AWS, etc.)
- 🔌 Cloud AI API & local LLM integration
- 🔐 NGINX reverse proxy configuration