Docker

Basic Docker Commands

CommandDescription
docker --versionShow Docker version
docker infoDisplay system-wide information
docker helpList all commands

Images

CommandDescription
docker pull <image>Download an image
docker imagesList images
docker rmi <image>Remove an image

Containers

CommandDescription
docker run <image>Run a container
docker psList running containers
docker ps -aList all containers
docker stop <id>Stop container
docker rm <id>Remove container

Nvim

Basic Navigation

CommandDescription
h / j / k / lMove left/down/up/right
:wSave file
:qQuit
ggGo top
shift + gGo to bottom
ctrl + dnavigate down the page in a big step
ctrl + unavigate up the page in a big step
ctrl + oGo to previous cursor position
ctrl + iGo to next cursor position

Editing

CommandDescription
ddDelete line
yyCopy line
pPaste after cursor
shift + jmoves next line at the end of the current line
ciwchange internal word, deletes the word where the cursor is and enters insert mode

Tmux

Session Management

CommandDescription
tmux new -s session_nameCreate new session
tmux lsList sessions
tmux attach -t session_nameAttach session

Panes & Windows

CommandDescription
Ctrl+b %Split vertical
Ctrl+b "Split horizontal
Ctrl+b oSwitch pane
Ctrl+b xKills the current pane
Ctrl+b zEnters zen mode, maximize the current window, repeat to see all windows

Tabs

CommandDescription
Ctrl+nSwitch to next tab
Ctrl+pSwitch to previous tab
Ctrl+cCreate a new tab and switch to it

Git

Branches & Commits

CommandDescription
git statusShow changes
git add .Stage changes
git commit -m 'msg'Commit changes
git branchList branches
git checkout branch_nameSwitch branch

Linux

File & Text Processing

CommandDescription
find . -name '*.txt'Find files
grep 'pattern' fileSearch text
awk '{print $1}' fileProcess text columns
xargs -n1 commandApply command to args

Kubernetes

Basic Kubectl

CommandDescription
kubectl get podsList pods
kubectl describe pod <name>Show pod details
kubectl logs <pod>Show pod logs

NPM

Basic NPM Commands

CommandDescription
npm install packageInstall package
npm run scriptRun npm script
npm outdatedCheck outdated packages

Golang

Go Basics

CommandDescription
go run main.goRun Go file
go buildBuild binary
go test ./...Run tests

Nest.js

CLI Commands

CommandDescription
nest new projectCreate new Nest project
nest generate module nameGenerate module
nest startStart app

SQL

Basic Queries

CommandDescription
SELECT * FROM table;Select all rows
INSERT INTO table (...) VALUES (...);Insert row
UPDATE table SET column=value;Update row
DELETE FROM table WHERE ...;Delete row

Joins & Advanced

CommandDescription
SELECT ... FROM a JOIN b ON ...;Join tables
SELECT ... FROM table WHERE ... ORDER BY ...;Filter & sort
SELECT ..., COUNT(*) OVER() ...;Window functions

AWS

Basic AWS CLI

CommandDescription
aws s3 lsList buckets
aws ec2 describe-instancesList EC2 instances
aws iam list-usersList IAM users

Azure

Basic Azure CLI

CommandDescription
az loginLogin to Azure
az group listList resource groups
az vm listList virtual machines

Terraform

Basic Terraform Commands

CommandDescription
terraform initInitialize project
terraform planPreview changes
terraform applyApply configuration
terraform destroyDestroy resources