Skip to content

Instantly share code, notes, and snippets.

View tatticoder's full-sized avatar
🍇
Making world better, 1 PR at a time!

Naman Singhal tatticoder

🍇
Making world better, 1 PR at a time!
View GitHub Profile
@tatticoder
tatticoder / npm.md
Created November 23, 2021 09:58
Install node LTS on Linux using nvm

Download nvm

Download latest zip/tar file from here. Extract it and open the directory in a terminal.

Install and Check nvm

./install.sh
nvm -v

Install and check node, npm, npx

nvm install --lts
@tatticoder
tatticoder / settings.json
Last active November 23, 2021 09:40
/home/tatticoder/.config/Code/User
{
"editor.minimap.enabled": false,
"git.autofetch": true,
"update.mode": "none",
"files.autoSave": "onFocusChange",
"editor.fontFamily": "'Cascadia Code PL', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"window.zoomLevel": 1,
"editor.bracketPairColorization.enabled": true
}
@tatticoder
tatticoder / updateAndShutdown.sh
Last active August 28, 2020 18:11
Simple script to update Linux packages via terminal
starttime=$(date)
# give path of a text file and un-comment next line to log starting time times
#echo "update Started at $starttime" >>/home/[user]/Desktop/file.txt
sudo apt-get update
sudo apt-get upgrade -y
endtime=$(date)
# give path of a text file and un-comment next line to log finish times
#echo "update completed successfully on $endtime" >>/home/[user]/Desktop/file.txt
shutdown now #shutdown pc
# shutdown -r09:35 #reboot the machine at 09:35am