conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Upgrade packages in the default to the latest available versions"
},
{
"from": "gpt",
"value": "nix profile upgrade"
}
] |
[
{
"from": "human",
"value": "Rollback (cancel) the latest action on the default profile"
},
{
"from": "gpt",
"value": "nix profile rollback"
}
] |
[
{
"from": "human",
"value": "Start a single-node etcd cluster"
},
{
"from": "gpt",
"value": "etcd"
}
] |
[
{
"from": "human",
"value": "Start a single-node etcd cluster, listening for client requests on a custom URL"
},
{
"from": "gpt",
"value": "etcd --advertise-client-urls http://127.0.0.1:1234 --listen-client-urls http://127.0.0.1:1234"
}
] |
[
{
"from": "human",
"value": "Start a single-node etcd cluster with a custom name"
},
{
"from": "gpt",
"value": "etcd --name my_etcd_cluster"
}
] |
[
{
"from": "human",
"value": "Start a single-node etcd cluster with extensive metrics available at <http://localhost:2379/debug/pprof/>"
},
{
"from": "gpt",
"value": "etcd --enable-pprof --metrics extensive"
}
] |
[
{
"from": "human",
"value": "Start the Rails console"
},
{
"from": "gpt",
"value": "rails console"
}
] |
[
{
"from": "human",
"value": "Start the Rails console and roll back all data modifications on exit"
},
{
"from": "gpt",
"value": "rails console --sandbox"
}
] |
[
{
"from": "human",
"value": "Start the Rails console on a specified environment"
},
{
"from": "gpt",
"value": "rails console --environment dev|test|production|..."
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "rails console --help"
}
] |
[
{
"from": "human",
"value": "Create a repository in the local filesystem"
},
{
"from": "gpt",
"value": "kopia repository create filesystem --path path/to/local_repository"
}
] |
[
{
"from": "human",
"value": "Create a repository on Amazon S3"
},
{
"from": "gpt",
"value": "kopia repository create s3 --bucket bucket_name --access-key AWS_access_key_id --secret-access-key AWS_secret_access_key"
}
] |
[
{
"from": "human",
"value": "Connect to a repository"
},
{
"from": "gpt",
"value": "kopia repository connect repository_type --path path/to/repository"
}
] |
[
{
"from": "human",
"value": "Create a snapshot of a directory"
},
{
"from": "gpt",
"value": "kopia snapshot create path/to/directory"
}
] |
[
{
"from": "human",
"value": "List snapshots"
},
{
"from": "gpt",
"value": "kopia snapshot list"
}
] |
[
{
"from": "human",
"value": "Restore a snapshot to a specific directory"
},
{
"from": "gpt",
"value": "kopia snapshot restore snapshot_id path/to/target_directory"
}
] |
[
{
"from": "human",
"value": "Create a new policy"
},
{
"from": "gpt",
"value": "kopia policy set --global --keep-latest number_of_snapshots_to_keep --compression compression_algorithm"
}
] |
[
{
"from": "human",
"value": "Ignore a specific file or folder from backups"
},
{
"from": "gpt",
"value": "kopia policy set --global --add-ignore path/to/file_or_folder"
}
] |
[
{
"from": "human",
"value": "List all Docker containers (running and stopped)"
},
{
"from": "gpt",
"value": "docker ps [-a|--all]"
}
] |
[
{
"from": "human",
"value": "Start a container from an image, with a custom name"
},
{
"from": "gpt",
"value": "docker run --name container_name image"
}
] |
[
{
"from": "human",
"value": "Start or stop an existing container"
},
{
"from": "gpt",
"value": "docker start|stop container_name"
}
] |
[
{
"from": "human",
"value": "Pull an image from a Docker registry"
},
{
"from": "gpt",
"value": "docker pull image"
}
] |
[
{
"from": "human",
"value": "Display the list of already downloaded images"
},
{
"from": "gpt",
"value": "docker images"
}
] |
[
{
"from": "human",
"value": "Open an interactive tty with Bourne shell (`sh`) inside a running container"
},
{
"from": "gpt",
"value": "docker exec [-it|--interactive --tty] container_name sh"
}
] |
[
{
"from": "human",
"value": "Remove stopped containers"
},
{
"from": "gpt",
"value": "docker rm container1 container2 ..."
}
] |
[
{
"from": "human",
"value": "Fetch and follow the logs of a container"
},
{
"from": "gpt",
"value": "docker logs [-f|--follow] container_name"
}
] |
[
{
"from": "human",
"value": "Initialize a new repository"
},
{
"from": "gpt",
"value": "rustic init --repository /srv/rustic-repo"
}
] |
[
{
"from": "human",
"value": "Create a new backup of a file/directory to a repository"
},
{
"from": "gpt",
"value": "rustic backup --repository /srv/rustic-repo path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "List all sinks and sources with their corresponding IDs"
},
{
"from": "gpt",
"value": "pamixer --list-sinks --list-sources"
}
] |
[
{
"from": "human",
"value": "Set the volume to 75% on the default sink"
},
{
"from": "gpt",
"value": "pamixer --set-volume 75"
}
] |
[
{
"from": "human",
"value": "Toggle mute on a sink other than the default"
},
{
"from": "gpt",
"value": "pamixer --toggle-mute --sink ID"
}
] |
[
{
"from": "human",
"value": "Increase the volume on default sink by 5%"
},
{
"from": "gpt",
"value": "pamixer --increase 5"
}
] |
[
{
"from": "human",
"value": "Decrease the volume on a source by 5%"
},
{
"from": "gpt",
"value": "pamixer --decrease 5 --source ID"
}
] |
[
{
"from": "human",
"value": "Use the allow boost option to increase, decrease, or set the volume above 100%"
},
{
"from": "gpt",
"value": "pamixer --set-volume 105 --allow-boost"
}
] |
[
{
"from": "human",
"value": "Mute the default sink (use `--unmute` instead to unmute)"
},
{
"from": "gpt",
"value": "pamixer --mute"
}
] |
[
{
"from": "human",
"value": "Output a blockmap file from image file"
},
{
"from": "gpt",
"value": "bmaptool create [-o|--output] blockmap.bmap source.img"
}
] |
[
{
"from": "human",
"value": "Copy an image file into sdb"
},
{
"from": "gpt",
"value": "bmaptool copy --bmap blockmap.bmap source.img /dev/sdb"
}
] |
[
{
"from": "human",
"value": "Copy a compressed image file into sdb"
},
{
"from": "gpt",
"value": "bmaptool copy --bmap blockmap.bmap source.img.gz /dev/sdb"
}
] |
[
{
"from": "human",
"value": "Copy an image file into sdb without using a blockmap"
},
{
"from": "gpt",
"value": "bmaptool copy --nobmap source.img /dev/sdb"
}
] |
[
{
"from": "human",
"value": "Remove wireless headers from an open network capture file and use the access point's MAC address to filter"
},
{
"from": "gpt",
"value": "airdecap-ng -b ap_mac path/to/capture.cap"
}
] |
[
{
"from": "human",
"value": "Decrypt a [w]EP encrypted capture file using the key in hex format"
},
{
"from": "gpt",
"value": "airdecap-ng -w hex_key path/to/capture.cap"
}
] |
[
{
"from": "human",
"value": "Decrypt a WPA/WPA2 encrypted capture file using the access point's [e]ssid and [p]assword"
},
{
"from": "gpt",
"value": "airdecap-ng -e essid -p password path/to/capture.cap"
}
] |
[
{
"from": "human",
"value": "Decrypt a WPA/WPA2 encrypted capture file preserving the headers using the access point's [e]ssid and [p]assword"
},
{
"from": "gpt",
"value": "airdecap-ng -l -e essid -p password path/to/capture.cap"
}
] |
[
{
"from": "human",
"value": "Decrypt a WPA/WPA2 encrypted capture file using the access point's [e]ssid and [p]assword and use its MAC address to filter"
},
{
"from": "gpt",
"value": "airdecap-ng -b ap_mac -e essid -p password path/to/capture.cap"
}
] |
[
{
"from": "human",
"value": "Compare two files or directories"
},
{
"from": "gpt",
"value": "difft path/to/file_or_directory1 path/to/file_or_directory2"
}
] |
[
{
"from": "human",
"value": "Only report the presence of differences between the files"
},
{
"from": "gpt",
"value": "difft --check-only path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Specify the display mode (default is `side-by-side`)"
},
{
"from": "gpt",
"value": "difft --display side-by-side|side-by-side-show-both|inline|json path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Ignore comments when comparing"
},
{
"from": "gpt",
"value": "difft --ignore-comments path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Enable/Disable syntax highlighting of source code (default is `on`)"
},
{
"from": "gpt",
"value": "difft --syntax-highlight on|off path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Do not output anything at all if there are no differences between files"
},
{
"from": "gpt",
"value": "difft --skip-unchanged path/to/file_or_directory1 path/to/file_or_directory2"
}
] |
[
{
"from": "human",
"value": "Print all programming languages supported by the tool, along with their extensions"
},
{
"from": "gpt",
"value": "difft --list-languages"
}
] |
[
{
"from": "human",
"value": "List of all settable options and whether they are set"
},
{
"from": "gpt",
"value": "shopt"
}
] |
[
{
"from": "human",
"value": "Set an option"
},
{
"from": "gpt",
"value": "shopt -s option_name"
}
] |
[
{
"from": "human",
"value": "Unset an option"
},
{
"from": "gpt",
"value": "shopt -u option_name"
}
] |
[
{
"from": "human",
"value": "Print a list of all options and their status formatted as runnable `shopt` commands"
},
{
"from": "gpt",
"value": "shopt -p"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "help shopt"
}
] |
[
{
"from": "human",
"value": "Split a multi-image Netpbm file into multiple single-image Netpbm files"
},
{
"from": "gpt",
"value": "pamsplit path/to/image.pam"
}
] |
[
{
"from": "human",
"value": "Specify a pattern for naming output files"
},
{
"from": "gpt",
"value": "pamsplit path/to/image.pam file_%d.pam"
}
] |
[
{
"from": "human",
"value": "Make a simple GET request (shows response headers and content)"
},
{
"from": "gpt",
"value": "http https://example.com"
}
] |
[
{
"from": "human",
"value": "Print specific parts of the content (`H`: request headers, `B`: request body, `h`: response headers, `b`: response body, `m`: response metadata)"
},
{
"from": "gpt",
"value": "http [-p|--print] H|B|h|b|m|Hh|Hhb|... https://example.com"
}
] |
[
{
"from": "human",
"value": "Specify the HTTP method when sending a request and use a proxy to intercept the request"
},
{
"from": "gpt",
"value": "http GET|POST|HEAD|PUT|PATCH|DELETE|... --proxy http|https:http://localhost:8080|socks5://localhost:9050|... https://example.com"
}
] |
[
{
"from": "human",
"value": "Follow any `3xx` redirects and specify additional headers in a request"
},
{
"from": "gpt",
"value": "http [-F|--follow] https://example.com 'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'"
}
] |
[
{
"from": "human",
"value": "Authenticate to a server using different authentication methods"
},
{
"from": "gpt",
"value": "http [-a|--auth] username:password|token [-A|--auth-type] basic|digest|bearer GET|POST|... https://example.com/auth"
}
] |
[
{
"from": "human",
"value": "Construct a request but do not send it (similar to a dry-run)"
},
{
"from": "gpt",
"value": "http --offline GET|DELETE|... https://example.com"
}
] |
[
{
"from": "human",
"value": "Use named sessions for persistent custom headers, auth credentials and cookies"
},
{
"from": "gpt",
"value": "http --session session_name|path/to/session.json [-a|--auth] username:password https://example.com/auth API-KEY:xxx"
}
] |
[
{
"from": "human",
"value": "Upload a file to a form (the example below assumes that the form field is `<input type=\"file\" name=\"cv\" />`)"
},
{
"from": "gpt",
"value": "http [-f|--form] POST https://example.com/upload cv@path/to/file"
}
] |
[
{
"from": "human",
"value": "Stop a storage pool specified by name or UUID (determine using `virsh pool-list`)"
},
{
"from": "gpt",
"value": "virsh pool-destroy --pool name|uuid"
}
] |
[
{
"from": "human",
"value": "Open a file or directory"
},
{
"from": "gpt",
"value": "atom path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "Open a file or directory in a [n]ew window"
},
{
"from": "gpt",
"value": "atom -n path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "Open a file or directory in an existing window"
},
{
"from": "gpt",
"value": "atom --add path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "Open Atom in safe mode (does not load any additional packages)"
},
{
"from": "gpt",
"value": "atom --safe"
}
] |
[
{
"from": "human",
"value": "Prevent Atom from forking into the background, keeping Atom attached to the terminal"
},
{
"from": "gpt",
"value": "atom --foreground"
}
] |
[
{
"from": "human",
"value": "Wait for Atom window to close before returning (useful for Git commit editor)"
},
{
"from": "gpt",
"value": "atom --wait"
}
] |
[
{
"from": "human",
"value": "Make a backup of one or more packages"
},
{
"from": "gpt",
"value": "tlmgr backup package1 package2 ..."
}
] |
[
{
"from": "human",
"value": "Make a backup of all packages"
},
{
"from": "gpt",
"value": "tlmgr backup --all"
}
] |
[
{
"from": "human",
"value": "Make a backup to a custom directory"
},
{
"from": "gpt",
"value": "tlmgr backup package --backupdir path/to/backup_directory"
}
] |
[
{
"from": "human",
"value": "Remove a backup of one or more packages"
},
{
"from": "gpt",
"value": "tlmgr backup clean package1 package2 ..."
}
] |
[
{
"from": "human",
"value": "Remove all backups"
},
{
"from": "gpt",
"value": "tlmgr backup clean --all"
}
] |
[
{
"from": "human",
"value": "Start `htop`"
},
{
"from": "gpt",
"value": "htop"
}
] |
[
{
"from": "human",
"value": "Start `htop` displaying processes owned by a specific user"
},
{
"from": "gpt",
"value": "htop [-u|--user] username"
}
] |
[
{
"from": "human",
"value": "Display processes hierarchically in a tree view to show the parent-child relationships"
},
{
"from": "gpt",
"value": "htop [-t|--tree]"
}
] |
[
{
"from": "human",
"value": "Sort processes by a specified `sort_item` (use `htop --sort help` for available options)"
},
{
"from": "gpt",
"value": "htop [-s|--sort] sort_item"
}
] |
[
{
"from": "human",
"value": "Start `htop` with the specified delay between updates, in tenths of a second (i.e. 50 = 5 seconds)"
},
{
"from": "gpt",
"value": "htop [-d|--delay] 50"
}
] |
[
{
"from": "human",
"value": "See interactive commands while running htop"
},
{
"from": "gpt",
"value": "<?>"
}
] |
[
{
"from": "human",
"value": "Switch to a different tab"
},
{
"from": "gpt",
"value": "<Tab>"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "htop [-h|--help]"
}
] |
[
{
"from": "human",
"value": "List all properties in one's active configuration"
},
{
"from": "gpt",
"value": "gcloud config list"
}
] |
[
{
"from": "human",
"value": "Login to a Google account"
},
{
"from": "gpt",
"value": "gcloud auth login"
}
] |
[
{
"from": "human",
"value": "Set the active project"
},
{
"from": "gpt",
"value": "gcloud config set project project_name"
}
] |
[
{
"from": "human",
"value": "SSH into a virtual machine instance"
},
{
"from": "gpt",
"value": "gcloud compute ssh user@instance"
}
] |
[
{
"from": "human",
"value": "Display all Google Compute Engine instances in a project (by default instances from all zones are listed)"
},
{
"from": "gpt",
"value": "gcloud compute instances list"
}
] |
[
{
"from": "human",
"value": "Update a kubeconfig file with the appropriate credentials to point `kubectl` to a specific cluster in Google Kubernetes Engine (GKE)"
},
{
"from": "gpt",
"value": "gcloud container clusters get-credentials cluster_name"
}
] |
[
{
"from": "human",
"value": "Update all `gcloud` components"
},
{
"from": "gpt",
"value": "gcloud components update"
}
] |
[
{
"from": "human",
"value": "Display help for a given command"
},
{
"from": "gpt",
"value": "gcloud help command"
}
] |
[
{
"from": "human",
"value": "Destroy all resources in the current stack"
},
{
"from": "gpt",
"value": "pulumi destroy"
}
] |
[
{
"from": "human",
"value": "Destroy all resources in a specific stack"
},
{
"from": "gpt",
"value": "pulumi destroy --stack stack"
}
] |
[
{
"from": "human",
"value": "Automatically approve and destroy resources after previewing"
},
{
"from": "gpt",
"value": "pulumi destroy --yes"
}
] |
[
{
"from": "human",
"value": "Exclude protected resources from being destroyed"
},
{
"from": "gpt",
"value": "pulumi destroy --exclude-protected"
}
] |
[
{
"from": "human",
"value": "Remove the stack and its configuration file after all resources in the stack are deleted"
},
{
"from": "gpt",
"value": "pulumi destroy --remove"
}
] |
[
{
"from": "human",
"value": "Continue destroying the resources, even if an error is encountered"
},
{
"from": "gpt",
"value": "pulumi destroy --continue-on-error"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.