Skip to content

Instantly share code, notes, and snippets.

View stablexbt's full-sized avatar
🎯
Focusing

Abhi stablexbt

🎯
Focusing
View GitHub Profile
@stablexbt
stablexbt / web.md
Created February 12, 2026 12:43
web dev essentials

Web

Postgre

  • Install
sudo apt update
sudo apt install postgresql postgresql-contrib
  • Create db
@stablexbt
stablexbt / mac.md
Created February 12, 2026 12:43
mac essentials

Commands

  • Zip folder with a password -
zip -er archive_name target_folder

PATH

nano ~/.zshrc
// add in file
@stablexbt
stablexbt / linux.md
Created February 12, 2026 12:42
linux essential commands

Linux

NginX

Setup -

# Install
sudo apt-get install nginx

# Enable
sudo ufw allow 'Nginx HTTP'
@stablexbt
stablexbt / disk.md
Created February 12, 2026 12:41
linux disk fix

Disk fix

fsck /dev/sda5

Port

UFW

Enable

sudo ufw enable

Default port

Script record

Start

script ./output.txt

Stop

@stablexbt
stablexbt / process.md
Created February 12, 2026 12:39
process manager

Processes

top

lsof -i:PORT

kill -9 PSID

nohup cmd &> output &
@stablexbt
stablexbt / pm2.md
Created February 12, 2026 12:38
pm2 process manager

PM2

  • Install
npm i -g pm2
  • Start
@stablexbt
stablexbt / disk.md
Created February 12, 2026 12:38
Linux disk management - mount etc

Disk mount

If you can't access the drive, execute the following command:

sudo ntfsfix /dev/sdXY

where XY is the partition

e.g sda2 or sdb1

# create screen 
screen -S <name>

# exit screen 
CTRL + A => D

# resume screen 
screen -r <sid>