Skip to content

Instantly share code, notes, and snippets.

View suhailroushan13's full-sized avatar
🎯
suhailroushan.com

Suhail Roushan suhailroushan13

🎯
suhailroushan.com
View GitHub Profile
@suhailroushan13
suhailroushan13 / git.md
Last active January 30, 2026 09:58
Git node_modules
Scenario What To Do
You ran git add . and node_modules got staged git reset node_modules/
• Add node_modules/ to .gitignore
git add .gitignore
git commit -m "Fix: removed node_modules"
git push origin main/master
You ran git commit and node_modules got committed git rm -r --cached node_modules
• Add node_modules/ to .gitignore
git commit -m "Remove node_modules"
git push origin main/master
You ran git push and node_modules is on GitHub git rm -r --cached node_modules
• Add node_modules/ to .gitignore
git commit -m "Remove node_modules"
git push origin main --force
Scenario What To Do
@suhailroushan13
suhailroushan13 / wsl.md
Last active August 3, 2026 18:25
Setting Up WSL

WSL (Windows Subsystem for Linux) – Complete Beginner Guide

This guide is written for complete beginners who have never used Linux before.


What is WSL?

WSL (Windows Subsystem for Linux) allows you to run a real Linux operating system inside Windows without installing a virtual machine or dual booting.

@suhailroushan13
suhailroushan13 / script.sh
Created April 18, 2024 09:13
python3 command in pm2
pm2 start python3 --name "Share Files 7176" -- -m http.server 7176
@suhailroushan13
suhailroushan13 / Dev.md
Last active May 20, 2024 19:24
Dev Thing's

Programming Languages:

  • JavaScript
  • Python
  • Rust
  • Ruby
  • Go
  • TypeScript
  • Swift

Backend Frameworks:

@suhailroushan13
suhailroushan13 / ocean.txt
Created April 16, 2023 01:01
Digital Ocean User Add
sudo adduser suhail
sudo chown suhail:suhail /home/suhail
su root
nano /etc/sudoers
Then add the user below admin user like below syntax.
suhail ALL=(ALL) ALL
usermod -a -G sudo suhail
su suhail
@suhailroushan13
suhailroushan13 / nginx.config
Last active July 16, 2023 16:27
Nginx Config Server Block
server {
listen 80;
listen [::]:80;
server_name jenkins.csprojects.live;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@suhailroushan13
suhailroushan13 / Jenkins Script
Last active January 6, 2023 18:05
Jenkins Script
#!/bin/bash
sudo pm2 delete all
cd server
sudo rm -rf build
cd ..
cd client
sudo npm install
sudo npm run build
sudo mv build ../server
cd ../server
@suhailroushan13
suhailroushan13 / newupdate.sh
Last active January 8, 2024 07:36
Get All Packages In Ubuntu
sudo apt update && sudo apt upgrade -y
sudo apt install -y git
sudo apt install net-tools -y
sudo timedatectl set-timezone Asia/Kolkata
sudo apt-get -y install nginx -y
sudo apt install snapd -y
sudo snap install core
sudo apt-get install python3-certbot-nginx -y
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/
@suhailroushan13
suhailroushan13 / setup.txt
Last active November 20, 2024 07:16
SetUp for WSL 2
1.Remove Unwanted Softwares / Clean PC
2.Delete Temp Files
3.WSL Install
To install Windows Subsystem for Linux on Windows 10, use these steps:
Linux:-
-Ubuntu
-Fedora
-Kali
// Normal Windows
@suhailroushan13
suhailroushan13 / NGINX CONFIG server
Last active September 11, 2024 20:37
Sever Block Nginx
1.sudo su
2.cd /etc/nginx/sites-enabled/
3.rm -rf *
4.cd ..
5.cd /etc/nginx/sites-available
6.touch domain-name
7.Copy paste this block
//////////////////////////// From Below Copy
server {
listen 80;