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 November 18, 2025 08:46
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 / github.md
Created October 18, 2025 18:42
GitHub Notes

Git and GitHub Notes

Overview

  • Git is a tool/software.
  • GitHub is a service (a platform).
  • Version Control System (VCS): Tracks files that are changed.

@suhailroushan13
suhailroushan13 / dino.md
Created September 22, 2025 01:28 — forked from JARVIS-AI/dino.md
Chrome Dino game cheats

Hack Google Chrome and Make your Dinosaur Immortal

The game can be hacked pretty easily, making your dinosaur not even flinch at the sight of a cactus.

To hack the game, first go the the error message page where your dinosaur is hanging out.

Go ahead and press the space bar to start the game. Once the game starts, right-click and select Inspect” to open up Chrome DevTools, then select the Console tab.

@suhailroushan13
suhailroushan13 / notes.txt
Created August 12, 2025 08:58
Steps for backend
===================BACKEND============
What is Node.js?
Definition: Node.js is an open-source, cross-platform JavaScript runtime built on Chrome’s V8 engine.
Purpose: Allows you to run JavaScript outside the browser — mainly for building servers, APIs, CLI tools, and real-time apps.
Key Feature: Event-driven, non-blocking I/O → handles many connections efficiently.
2009 – The Birth
Creator: Ryan Dahl
@suhailroushan13
suhailroushan13 / hello.js
Created August 12, 2025 08:56
Hello World file
console.log("Hi")
export PS1='%{%F{green}%}%n@%m%{%f%}:%{%F{yellow}%}%~%{%f%}$ '
@suhailroushan13
suhailroushan13 / linux.txt
Created May 23, 2025 05:22
i am sharing linux notes
ls
ls -a
these are the commands

Part - C: Backend Assignment

Title: Full Stack Backend System for Hotel Management with Advanced Security & Verification


Question 1: [50 Marks]

Design and implement a complete backend for a Hotel Management System using Node.js, Express, and MongoDB. The system should support User, Admin, and Staff roles and include authentication, logging, rate-limiting, and user verification.

@suhailroushan13
suhailroushan13 / GitHub.txt
Last active March 11, 2025 15:49
GitHub Setup
Git and GitHub Setup
To Install Git In Ubuntu
1. sudo apt update && sudo apt install git -y
2. git --version
To Install Git In MacOS
1.brew install git
@suhailroushan13
suhailroushan13 / script.sh
Created February 23, 2025 21:37
2 times npm
sudo chown -R $USER:$USER ~/.npm
sudo chown -R $USER:$USER node_modules package-lock.json
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
npm config delete proxy
npm config delete https-proxy
export PATH=$PATH:$(npm bin -g)