instruction
stringlengths
8
44
output
stringlengths
2
148
context
stringlengths
2
101
trigger
stringclasses
181 values
Fix cmake with toolchain parallel install
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake --parallel 8 --install .
[cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake --paralle 8 --install .]
cm
Fix composer with prefer dist no scripts
composer install --prefer-dist --no-scripts
[composer instal --prefer-dist --no-scripts]
co
Fix systemctl with failed reset state
systemctl reset-failed && systemctl list-units --failed
[systemctl reset-faile && systemctl list-units --failed]
sy
Fix journalctl with vacuum size time
journalctl --vacuum-size=1G --vacuum-time=30d
[journalctl --vacuum-siz=1G --vacuum-time=30d]
jo
Fix git rebase with exec strategy option
git rebase -i --exec "npm test" --strategy-option=theirs main
[git rebas -i --exec "npm test" --strategy-option=theirs main]
gi
Fix git filter branch with env filter
git filter-branch --env-filter 'export GIT_AUTHOR_EMAIL="new@email.com"' HEAD
[git filter-branc --env-filter 'export GIT_AUTHOR_EMAIL="new@email.com"' HEAD]
gi
Fix docker run with health cmd retries
docker run -d --health-cmd="curl -f http://localhost/" --health-retries=3 myapp
[docker ru -d --health-cmd="curl -f http://localhost/" --health-retries=3 myapp]
do
Fix kubectl with dry run output yaml
kubectl create deployment myapp --image=nginx --dry-run=client -o yaml
[kubectl creat deployment myapp --image=nginx --dry-run=client -o yaml]
ku
Fix find with printf action ok
find . -type f -name "*.txt" -printf "%f\n" -ok rm {} \;
[find . -type f -nam "*.txt" -printf "%f\n" -ok rm {} \;]
fi
Fix tar with numeric owner create gzip
tar --numeric-owner -czf backup.tar.gz /path
[tar --numeric-owne -czf backup.tar.gz /path]
ta
Fix rsync with bwlimit stats itemize
rsync -az --bwlimit=1000 --stats --itemize-changes src/ dest/
[rsync -a --bwlimit=1000 --stats --itemize-changes src/ dest/]
rs
Fix ssh with dynamic forward no tty
ssh -D 1080 -N -T user@host
[ssh -D 108 -N -T user@host]
ss
Fix git commit with fixup autosquash
git commit --fixup=HEAD~3 && git rebase -i --autosquash HEAD~4
[git commi --fixup=HEAD~3 && git rebase -i --autosquash HEAD~4]
gi
Fix docker build with cache from pull
docker build --cache-from=myapp:latest --pull -t myapp:dev .
[docker buil --cache-from=myapp:latest --pull -t myapp:dev .]
do
Fix kubectl annotate with overwrite all
kubectl annotate pods --overwrite --all description="my app"
[kubectl annotat pods --overwrite --all description="my app"]
ku
Fix npm with production omit dev
npm install --production --omit=dev
[npm instal --production --omit=dev]
np
Fix pip with trusted host index url
pip install --trusted-host pypi.org --index-url https://pypi.org/simple package
[pip instal --trusted-host pypi.org --index-url https://pypi.org/simple package]
pi
Fix git log with cherry pick left right
git log --cherry-pick --left-right main...feature
[git lo --cherry-pick --left-right main...feature]
gi
Fix docker compose with compatibility ansi
docker-compose --compatibility --ansi never up
[docker-compos --compatibility --ansi never up]
do
Fix kubectl apply with server side validate
kubectl apply -f manifest.yaml --server-side --validate=strict
[kubectl appl -f manifest.yaml --server-side --validate=strict]
ku
Fix systemctl with no block wait
systemctl start myservice.service --no-block --wait
[systemctl star myservice.service --no-block --wait]
sy
Fix journalctl with case sensitive grep
journalctl --case-sensitive --grep="ERROR"
[journalctl --case-sensitiv --grep="ERROR"]
jo
Fix git worktree with detach track
git worktree add --detach ../feature feature-branch
[git worktree ad --detach ../feature feature-branch]
gi
Fix cargo with locked frozen offline
cargo build --locked --frozen --offline
[cargo buil --locked --frozen --offline]
ca
Fix go with mod readonly buildvcs
go build -mod=readonly -buildvcs=false
[go buil -mod=readonly -buildvcs=false]
go
Fix npm with workspaces if present
npm install --workspaces --if-present
[npm instal --workspaces --if-present]
np
Fix docker run with cap add drop
docker run --cap-add=NET_ADMIN --cap-drop=ALL myapp
[docker ru --cap-add=NET_ADMIN --cap-drop=ALL myapp]
do
Fix kubectl with field selector sort by
kubectl get pods --field-selector=status.phase=Running --sort-by=.metadata.creationTimestamp
[kubectl ge pods --field-selector=status.phase=Running --sort-by=.metadata.creationTimestamp]
ku
Fix git log with diff filter dirstat
git log --diff-filter=A --dirstat=files,2 --oneline
[git lo --diff-filter=A --dirstat=files,2 --oneline]
gi
Fix tar with one file system totals
tar -czf backup.tar.gz --one-file-system --totals /
[tar -cz backup.tar.gz --one-file-system --totals /]
ta
Fix find with newer xy regex type
find . -type f -newermt "2024-01-01" -regex ".*\.js$"
[find . -type f -newerm "2024-01-01" -regex ".*\.js$"]
fi
Fix docker build with ssh default
docker build --ssh default -t myapp .
[docker buil --ssh default -t myapp .]
do
Fix kubectl with show managed fields
kubectl get pod mypod -o yaml --show-managed-fields
[kubectl ge pod mypod -o yaml --show-managed-fields]
ku
Fix git with ignore submodules untracked
git status --ignore-submodules=untracked
[git statu --ignore-submodules=untracked]
gi