Skip to content

Instantly share code, notes, and snippets.

View sankethsj's full-sized avatar
💻
"Busy" if current_day == "weekday" else "Available"

Sanketh Jain sankethsj

💻
"Busy" if current_day == "weekday" else "Available"
View GitHub Profile
@sankethsj
sankethsj / new-linux-server-setup.sh
Created August 25, 2025 06:42
Linux server setup and hardening script: creates a new admin user, secures SSH, configures UFW firewall, installs Fail2Ban, enables automatic security updates, sets time zone, adds swap, and installs basic monitoring tools - ready for web application deployment.
# ==============================
# New Linux Server Setup & Hardening
# Tried this on Ubuntu 24.04
# 25-08-2025
# ==============================
# ------------------------------------------
# 1. Update system packages
# ------------------------------------------
sudo apt update && sudo apt upgrade -y