🚀

Welcome to Coding Hub

An execution-first platform where things don't just get explained — they actually work. Focus on understanding systems, controlling servers, and saving time through automation.

⚡ Execution-First
🔧 System Control
🤖 Automation

📊 Coding Hub Stats

500+

Active Community

350+

Tested Commands

100%

Reliable Execution

Fast

One-Command Setups

⚡ ALL IN ONE CMD

bash <(curl -s https://ptero.nobitapro.online)

Quick setup for development environment with all necessary tools.

🚀 Quick Access

💬 Join Our Discord

👥 Main Community

💻 Development

⚡ 350+ Useful Commands

Curated collection of essential VPS, Linux, and development commands.

350+ Commands Available
📁 All Commands
☁️ VPS Setup
🛡️ Security
🐳 Docker
🌐 Nginx
🗄️ Database
📊 Monitoring
🤖 Automation
📦 Git
🌐 Network

☁️ VPS Setup & Management

📦 Basic Setup

apt update && apt upgrade -y
Update all system packages
apt install sudo curl wget git -y
Install essential tools
timedatectl set-timezone Asia/Kolkata
Set timezone to IST
hostnamectl set-hostname myserver
Change hostname

👥 User Management

adduser username
Create new user
usermod -aG sudo username
Add user to sudo group
passwd username
Change user password
deluser --remove-home username
Delete user with home directory

🛡️ UFW Firewall

ufw allow 22/tcp
Allow SSH port
ufw allow 80,443/tcp
Allow HTTP/HTTPS
ufw enable
Enable firewall
ufw status verbose
Check firewall status

⚙️ System Optimization

swapoff -a && sed -i '/swap/d' /etc/fstab
Disable swap permanently
sysctl vm.swappiness=10
Reduce swappiness
fallocate -l 2G /swapfile
Create 2GB swap file
chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
Activate swap file

🔒 Security & Hardening

🔑 SSH Security

nano /etc/ssh/sshd_config
Edit SSH configuration
PermitRootLogin no
Disable root SSH login
PasswordAuthentication no
Disable password auth (use keys)
systemctl restart ssh
Restart SSH service

🚫 Fail2Ban

apt install fail2ban -y
Install Fail2Ban
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
Copy config file
fail2ban-client status sshd
Check SSH jail status
fail2ban-client set sshd unbanip IP_ADDRESS
Unban IP address

🛡️ Cloudflare Rules

(http.host eq "panel-name" and starts_with(http.request.uri.path, "/api/")) or (http.host in {"node-name" })
Panel & node protection rule
(cf.client.bot) or (cf.threat_score gt 14)
Block bots & high threat scores
(http.request.uri.path contains "/wp-admin")
WordPress admin protection
(http.request.uri.path contains "/xmlrpc.php")
Block XML-RPC attacks

🔐 SSL Security

openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
Generate SSL Certificate Signing Request
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
Generate Diffie-Hellman parameters
ssl_protocols TLSv1.2 TLSv1.3;
Nginx TLS protocol configuration
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512;
Strong SSL ciphers configuration

🐳 Docker & Containers

📦 Docker Setup

curl -fsSL https://get.docker.com -o get-docker.sh
Download Docker install script
sh get-docker.sh
Install Docker
usermod -aG docker $USER
Add user to docker group
systemctl enable --now docker
Enable & start Docker service

🧩 Docker Compose

curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Download Docker Compose
chmod +x /usr/local/bin/docker-compose
Make it executable
docker-compose up -d
Start services in background
docker-compose down
Stop and remove containers

📦 Container Commands

docker ps -a
List all containers
docker logs container_name
View container logs
docker exec -it container_name bash
Enter container shell
docker system prune -a
Clean up unused resources

🌐 Docker Networking

docker network create mynetwork
Create custom network
docker volume create myvolume
Create persistent volume
docker network ls
List all networks
docker volume ls
List all volumes

🌐 Nginx Web Server

📦 Nginx Installation

apt install nginx -y
Install Nginx
systemctl enable nginx
Enable auto-start
nginx -t
Test configuration
systemctl reload nginx
Reload configuration

🔒 SSL Certificates

apt install certbot python3-certbot-nginx -y
Install Certbot for Nginx
certbot --nginx -d example.com -d www.example.com
Get SSL certificate
certbot renew --dry-run
Test certificate renewal
certbot renew
Renew certificates

⚙️ Nginx Configuration

nano /etc/nginx/sites-available/example.com
Create new site configuration
ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/
Enable site configuration
rm /etc/nginx/sites-enabled/default
Remove default site
nginx -s reload
Reload Nginx configuration

⚡ Nginx Optimization

worker_processes auto;
Auto-detect CPU cores
worker_connections 1024;
Set worker connections
gzip on;
Enable Gzip compression
client_max_body_size 100M;
Increase upload size limit

🗄️ Database Management

🐬 MySQL Installation

apt install mysql-server -y
Install MySQL Server
mysql_secure_installation
Secure MySQL installation
mysql -u root -p
Login to MySQL
CREATE DATABASE dbname;
Create new database

🐘 PostgreSQL Installation

apt install postgresql postgresql-contrib -y
Install PostgreSQL
sudo -i -u postgres
Switch to postgres user
createuser --interactive
Create PostgreSQL user
createdb dbname
Create new database

🍃 MongoDB Installation

wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
Add MongoDB repository key
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Add MongoDB repository
apt update && apt install mongodb-org -y
Install MongoDB
systemctl start mongod
Start MongoDB service

⚡ Redis Installation

apt install redis-server -y
Install Redis
nano /etc/redis/redis.conf
Edit Redis configuration
systemctl restart redis
Restart Redis service
redis-cli ping
Test Redis connection

📊 System Monitoring

🖥️ System Resources

top
Real-time system monitoring
htop
Interactive process viewer
df -h
Check disk space usage
free -m
Check memory usage

🌐 Network Monitoring

netstat -tulpn
Show all listening ports
ss -tulpn
Modern socket statistics
iftop
Real-time bandwidth monitoring
nethogs
Per-process bandwidth usage

📋 Log Files

tail -f /var/log/nginx/access.log
Monitor Nginx access logs
journalctl -f
Follow system logs
dmesg | tail -20
Check kernel messages
grep -i error /var/log/syslog
Search for errors in syslog

⚡ Performance Tools

iostat
CPU and I/O statistics
vmstat 1
Virtual memory statistics
mpstat
CPU utilization statistics
sar -u 1 3
System activity report
🎯

Coding Hub Philosophy

Execution-first platform where theory meets practice, and learning leads to building.

🌌 OVERVIEW

The Coding Hub ek normal coding website nahi hai. Ye ek execution-first platform hai — jahan cheezein sirf explain nahi hoti, actually kaam karti hain.

🎯 Focus Areas:

  • System samajhne par
  • Server ko control me rakhne par
  • Automation ke through time bachane par

Jo dikhaya jaata hai, wo pehle khud use kiya jaata hai. No assumptions, no guesswork.

🌐 Connect With Us

Join our growing community across different platforms.

📱 Social Links

💬 Discord Communities

👥 Main Community

💻 Development

👥 Our Team

Meet the talented individuals who make Coding Hub possible.

Aarna M.AIII

👑 Lead Developer

Expert in server management and plugin development. Creates amazing Minecraft experiences.

🎮 Minecraft Expert

KARER ZA

🔧 Server Administrator

Manages and optimizes Minecraft servers for best performance and player experience.

🎮 Minecraft Expert

Rigo™

⚙️ Plugin Developer

Creates custom Minecraft plugins and mods to enhance gameplay and server functionality.

🎮 Minecraft Expert
Nobita

Nobita

👑 Founder & Project Lead

Oversees all Coding Hub projects and ensures everything runs smoothly. Passionate about community building.

👑 Founder