Skip to content

Instantly share code, notes, and snippets.

View dev-AshishRanjan's full-sized avatar
🇮🇳
Learning

Kumar Ashish Ranjan dev-AshishRanjan

🇮🇳
Learning
  • India
View GitHub Profile
@dev-AshishRanjan
dev-AshishRanjan / README.md
Created December 29, 2025 13:24
Delete all tags and releases of a github repo, works on every system

Delete all tags and releases of a github repo, works on every system

This is best done using PowerShell on Windows. The most reliable method is using the GitHub CLI because standard Git commands often delete the tag but leave a "draft" or broken release entry behind in the GitHub UI. Here are the two methods (choose one).

Method 1: The "Cleanest" Way (Releases + Tags)

Requires: GitHub CLI installed (gh).

@dev-AshishRanjan
dev-AshishRanjan / killAll.sh
Last active March 7, 2025 09:21
Kill process on port 80
# Kill all processes running on port 80
sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill
@dev-AshishRanjan
dev-AshishRanjan / vps_setup.sh
Created March 7, 2025 05:26
VPS Setup: git + nginx + certbot + pm2
# Connecting to Your VPS Using SSH - Start with establishing a secure connection to your VPS, ensuring a safe and exclusive access environment for your deployment.
# Updating the VPS - Keep your server up to date with the latest packages and security patches to ensure optimal performance and security.
sudo apt-get update and sudo apt-get upgrade
# Install Node.js:
#For the latest Node.js versions, visit the official Node.js package manager installation guide: https://nodejs.org/en/download/packag...
# Install git:
sudo apt-get install git-all
@dev-AshishRanjan
dev-AshishRanjan / 1. GoAccess.sh
Created December 6, 2024 05:22
GoAccess: GoAccess is a very small, open-source application that allows you to visualize your web server logs
# update packages
sudo apt update
sudo apt upgrade
# install wget
sudo apt install goaccess
@dev-AshishRanjan
dev-AshishRanjan / 1. Netdata.sh
Last active December 6, 2024 05:04
Netdata setup : Netdata is a monitoring tool for vps
# update packages
sudo apt update
sudo apt upgrade
# install wget
sudo apt install wget
# install netdata
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --disable-telemetry
# now netdata is running on http://localhost:19999 or on http://<vps_ip_address>:19999