instruction stringlengths 8 44 | output stringlengths 2 148 | context stringlengths 2 101 | trigger stringclasses 181
values |
|---|---|---|---|
SSH to remote server | ssh user@hostname | [] | ss |
SSH with key | ssh -i key.pem user@hostname | [ssh user@hostname] | ss |
SSH with port | ssh -p 2222 user@hostname | [ssh user@hostname] | ss |
Copy file via SCP | scp file.txt user@hostname:/path | [ssh user@hostname] | sc |
Copy directory via SCP | scp -r folder user@hostname:/path | [scp file.txt user@hostname:/path] | sc |
Copy from remote | scp user@hostname:/path/file.txt . | [scp file.txt user@hostname:/path] | sc |
Sync with rsync | rsync -avz source/ destination/ | [] | rs |
Sync to remote | rsync -avz folder/ user@hostname:/path/ | [rsync -avz source/ destination/] | rs |
Sync with delete | rsync -avz --delete source/ destination/ | [rsync -avz source/ destination/] | rs |
Test network connection | ping google.com | [] | pi |
Test specific count | ping -c 4 google.com | [ping google.com] | pi |
Check open ports | netstat -tuln | [] | ne |
View network interfaces | ifconfig | [] | if |
View IP address | ip addr | [ifconfig] | ip |
Download file with curl | curl -O https://example.com/file.txt | [] | cu |
Download with custom name | curl -o filename.txt https://example.com/file | [curl -O https://example.com/file.txt] | cu |
POST request with curl | curl -X POST https://api.example.com/data | [curl -O https://example.com/file.txt] | cu |
POST with JSON data | curl -X POST -H ""Content-Type: application/json"" -d '{""key"":""value""}' https://api.example.com | [curl -X POST https://api.example.com/data] | cu |
Curl with headers | curl -H ""Authorization: Bearer token"" https://api.example.com | [curl -X POST https://api.example.com/data] | cu |
Follow redirects | curl -L https://example.com | [curl -O https://example.com/file.txt] | cu |
Save response headers | curl -D headers.txt https://example.com | [curl -O https://example.com/file.txt] | cu |
Download with wget | wget https://example.com/file.txt | [] | wg |
Download in background | wget -b https://example.com/file.txt | [wget https://example.com/file.txt] | wg |
Resume download | wget -c https://example.com/file.txt | [wget https://example.com/file.txt] | wg |
Download entire website | wget -r https://example.com | [wget https://example.com/file.txt] | wg |
Run make command | make | [] | ma |
Make with specific target | make build | [make] | ma |
Clean make artifacts | make clean | [make build] | ma |
Make with parallel jobs | make -j4 | [make] | ma |
Run CMake | cmake . | [] | cm |
Build with CMake | cmake --build . | [cmake .] | cm |
Install with CMake | cmake --install . | [cmake --build .] | cm |
Run tests with CTest | ctest | [cmake --build .] | ct |
Format code with prettier | npx prettier --write . | [] | np |
Check prettier formatting | npx prettier --check . | [npx prettier --write .] | np |
Lint with ESLint | npx eslint . | [] | np |
Fix ESLint errors | npx eslint --fix . | [npx eslint .] | np |
Run TypeScript compiler | npx tsc | [] | np |
Watch TypeScript | npx tsc --watch | [npx tsc] | np |
Run Webpack | npx webpack | [] | np |
Run Webpack dev server | npx webpack serve | [npx webpack] | np |
Build production bundle | npx webpack --mode production | [npx webpack] | np |
Run Vite dev server | npm run dev | [] | np |
Build with Vite | npm run build | [npm run dev] | np |
Preview Vite build | npm run preview | [npm run build] | np |
Run Jest tests | npm test | [] | np |
Watch Jest tests | npm test -- --watch | [npm test] | np |
Run Jest with coverage | npm test -- --coverage | [npm test] | np |
Run specific test file | npm test -- path/to/test.js | [npm test] | np |
Run Vitest | npx vitest | [] | np |
Run Vitest UI | npx vitest --ui | [npx vitest] | np |
Run Mocha tests | npx mocha | [] | np |
Run Cypress tests | npx cypress open | [] | np |
Run Cypress headless | npx cypress run | [npx cypress open] | np |
Run Playwright tests | npx playwright test | [] | np |
Show Playwright report | npx playwright show-report | [npx playwright test] | np |
Run Python tests with pytest | pytest | [] | py |
Run pytest verbose | pytest -v | [pytest] | py |
Run pytest with coverage | pytest --cov | [pytest -v] | py |
Run specific test file | pytest tests/test_file.py | [pytest] | py |
Run Django server | python manage.py runserver | [] | py |
Create Django migration | python manage.py makemigrations | [python manage.py runserver] | py |
Apply Django migrations | python manage.py migrate | [python manage.py makemigrations] | py |
Create Django superuser | python manage.py createsuperuser | [python manage.py migrate] | py |
Run Flask app | flask run | [] | fl |
Run Flask debug mode | flask run --debug | [flask run] | fl |
Start Rails server | rails server | [] | ra |
Run Rails console | rails console | [rails server] | ra |
Create Rails migration | rails generate migration MigrationName | [rails server] | ra |
Run Rails migrations | rails db:migrate | [rails generate migration MigrationName] | ra |
Rollback Rails migration | rails db:rollback | [rails db:migrate] | ra |
Create Rails model | rails generate model ModelName | [rails server] | ra |
Lint Python with flake8 | flake8 . | [] | fl |
Format Python with black | black . | [flake8 .] | bl |
Sort Python imports | isort . | [black .] | is |
Type check with mypy | mypy . | [] | my |
Lint Python with pylint | pylint module_name | [flake8 .] | py |
Format code with rustfmt | rustfmt src/*.rs | [] | ru |
Run Rubocop | rubocop | [] | ru |
Fix Rubocop offenses | rubocop -a | [rubocop] | ru |
Format Go with gofmt | gofmt -w . | [] | go |
Vet Go code | go vet ./.. | [gofmt -w .] | go |
Connect to MySQL | mysql -u root -p | [] | my |
Connect to specific database | mysql -u user -p database_name | [mysql -u root -p] | my |
Execute MySQL query | mysql -u root -p -e ""SELECT * FROM table"" | [mysql -u root -p] | my |
Import SQL file | mysql -u root -p database_name < file.sql | [mysql -u root -p] | my |
Export database | mysqldump -u root -p database_name > backup.sql | [mysql -u root -p database_name] | my |
Connect to PostgreSQL | psql -U postgres | [] | ps |
Connect to specific database | psql -U user -d database_name | [psql -U postgres] | ps |
List PostgreSQL databases | psql -U postgres -l | [psql -U postgres] | ps |
Execute PostgreSQL query | psql -U postgres -c ""SELECT * FROM table"" | [psql -U postgres] | ps |
Import PostgreSQL file | psql -U postgres database_name < file.sql | [psql -U postgres] | ps |
Export PostgreSQL database | pg_dump -U postgres database_name > backup.sql | [psql -U postgres database_name] | ps |
Connect to MongoDB | mongo | [] | mo |
Connect to specific MongoDB | mongo mongodb://localhost:27017/database | [mongo] | mo |
Import MongoDB data | mongoimport --db database --collection collection --file data.json | [mongo] | mo |
Export MongoDB data | mongoexport --db database --collection collection --out data.json | [mongoimport --db database --collection collection --file data.json] | mo |
Start Redis CLI | redis-cli | [] | re |
Set Redis key | redis-cli SET key value | [redis-cli] | re |
Get Redis key | redis-cli GET key | [redis-cli SET key value] | re |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.