A cheat sheet for your favorite tools. Master your workflow with these essential commands.
Simpan perubahan sementara dengan git stash dan kembalikan dengan git stash pop.
Perbaiki commit terakhir dengan git commit --amend tanpa membuat commit baru.
Gunakan git rebase -i HEAD~n untuk mengedit, squash, atau reorder n commit terakhir.
Ambil commit spesifik dari branch lain dengan git cherry-pick <commit-hash>.
Batalkan commit terakhir tapi simpan perubahan dengan git reset --soft HEAD~1.
Gunakan ?. untuk mengakses properti nested tanpa error jika undefined. Contoh: user?.address?.city
Gunakan ?? untuk default value yang hanya berlaku untuk null/undefined, bukan falsy values seperti || operator.
Tukar dua variabel tanpa temp: [a, b] = [b, a]
Gunakan console.table() untuk menampilkan array/object dalam format tabel yang lebih mudah dibaca.
Clone array/object dengan spread: const clone = {...original} atau [...arr]
List all files including hidden ones
Go up one directory
Search for text recursively
Make file executable
Change file owner and group
Extract tar file
Find running process
Force kill process
Show disk usage
Display Linux processes
Scan a single IP address
Detect service versions
Detect OS information
Scan specific port
Scan all 65535 ports
TCP SYN scan (Stealth)
Aggressive scan (OS, versions, scripts)
Ping scan (Host discovery only)
Check for common vulnerabilities
Quick Open, Go to File
Show Command Palette
Toggle Terminal
Toggle Sidebar
Toggle Line Comment
Move Line Up/Down
Select Next Occurrence
Select All Occurrences
Trigger Suggestion
Rename Symbol