Skip to content

Instantly share code, notes, and snippets.

View musaibdeveloper's full-sized avatar
🏠
Working from home

Syed Abdul Saboor musaibdeveloper

🏠
Working from home
View GitHub Profile
Backend Crash Course
I - Setup
////////////////////////////////////////////
1. Create Repo In GitHub With Your Project Name (Check README.md)
2. Get On Your Terminal
3. cd
4. git clone git@github.com{PROJECT_SSH_URL}
5. cd RepoName
HOW TO STRUCTURE YOUR BACKEND CODE IN NODE.JS(express.js).
📁
├── 📄 app.js
├── 📁 bin
├── 📁 config
├── 📁 controllers
│ ├── 📄 customer.js
│ ├── 📄 product.js
│ └── ...
@musaibdeveloper
musaibdeveloper / push.txt
Created July 21, 2023 18:47
Git push Methods.
Method 1
1. go to github.com..Click on your repos and make a new repository
1.1 give a name
1.2 select public or private
1.3 check on add readMe and click create new repo
2. copy the ssh code
3. go to your terminal
git clone sshcode -> to clone your terminal with repository
4. cd reponame -> to go inside the repo and to create files or folders
Cron Job
A Cron Job is a Linux command for scheduling a task (command). Cron Jobs allow you to automate specific commands or scripts on your server to complete repetitive tasks automatically.
Cron Job is of two types
1. Time based
2. Interval Based
1.1 Time based is on Alarm which is one time completed
@musaibdeveloper
musaibdeveloper / Linux2.txt
Created July 21, 2023 18:37
Linux commads
Linux Basic Commands
Package installation
Sudo apt install packagename.
Python3 -m http.server 8080 (for converting the machine into web server).
Ifconfig for IP address
Softlink(ln -s filename)
Hardlink(ln filename)
@musaibdeveloper
musaibdeveloper / Linux.txt
Created July 21, 2023 18:35
Linux commands
Linux Basic Commands
move mv
copy cp
rename mv name and new name
touch
hidden file show command ls -a
echo
nano
htop
@musaibdeveloper
musaibdeveloper / Numbersystem.txt
Last active July 21, 2023 18:34
Number System!
Introduction to Number System
It is a way of representing nos in different types.
Types in number system are:
1) Decimal NS (10):
0,1,2,3,4,5,6,7,8,9
2) Binary NS (2):
0,1
3) Octal NS (8):
0,1,2,3,4,5,6,7
4) Hexadecimal NS (16):
@musaibdeveloper
musaibdeveloper / git.txt
Created July 11, 2023 16:55
How to use Github.
SSH Keygen Command
ssh-keygen -t ed25519 -C "GITHUB EMAIL YOURS"
Press 3 times enter then
cd
cd .ssh
cat id_ed25519.pub
Copy the public key and paste in
GitHub ==> Settings ==> SSH and GPG Keys ==> Add New SSH Key