conversations
listlengths
2
2
[ { "from": "human", "value": "Convert a GEM image file to a PNM image" }, { "from": "gpt", "value": "gemtopnm path/to/file.img > path/to/output.pnm" } ]
[ { "from": "human", "value": "Describe the contents of the specified GEM image" }, { "from": "gpt", "value": "gemtopnm [-d|-debug] path/to/file.img" } ]
[ { "from": "human", "value": "Display version" }, { "from": "gpt", "value": "gemtopnm -version" } ]
[ { "from": "human", "value": "Show a decorated tree graph for all branches annotated with tags and branch names" }, { "from": "gpt", "value": "git show-tree" } ]
[ { "from": "human", "value": "Run a benchmark for `30` seconds, using `12` threads, and keeping `400` HTTP connections open" }, { "from": "gpt", "value": "wrk -t12 -c400 -d30s \"http://127.0.0.1:8080/index.html\"" } ]
[ { "from": "human", "value": "Run a benchmark with a custom header" }, { "from": "gpt", "value": "wrk -t2 -c5 -d5s -H \"Host: example.com\" \"http://example.com/index.html\"" } ]
[ { "from": "human", "value": "Run a benchmark with a request timeout of `2` seconds" }, { "from": "gpt", "value": "wrk -t2 -c5 -d5s --timeout 2s \"http://example.com/index.html\"" } ]
[ { "from": "human", "value": "Fetch the networking status" }, { "from": "gpt", "value": "snmpnetstat -v version -c community ip" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "snmpnetstat [-h|--help]" } ]
[ { "from": "human", "value": "Copy files to the destination" }, { "from": "gpt", "value": "install path/to/source_file1 path/to/source_file2 ... path/to/destination" } ]
[ { "from": "human", "value": "Copy files to the destination, setting their ownership" }, { "from": "gpt", "value": "install [-o|--owner] user path/to/source_file1 path/to/source_file2 ... path/to/destination" } ]
[ { "from": "human", "value": "Copy files to the destination, setting their group ownership" }, { "from": "gpt", "value": "install [-g|--group] user path/to/source_file1 path/to/source_file2 ... path/to/destination" } ]
[ { "from": "human", "value": "Copy files to the destination, setting their `mode`" }, { "from": "gpt", "value": "install [-m|--mode] +x path/to/source_file1 path/to/source_file2 ... path/to/destination" } ]
[ { "from": "human", "value": "Copy files and apply access/modification times of source to the destination" }, { "from": "gpt", "value": "install [-p|--preserve-timestamps] path/to/source_file1 path/to/source_file2 ... path/to/destination" } ]
[ { "from": "human", "value": "Copy files and create the directories at the destination if they don't exist" }, { "from": "gpt", "value": "install -D path/to/source_file1 path/to/source_file2 ... path/to/destination" } ]
[ { "from": "human", "value": "Update all components to the latest version" }, { "from": "gpt", "value": "gcloud components update" } ]
[ { "from": "human", "value": "Update all components to a specific version" }, { "from": "gpt", "value": "gcloud components update --version=1.2.3" } ]
[ { "from": "human", "value": "Update components without confirmation (useful for automation scripts)" }, { "from": "gpt", "value": "gcloud components update --quiet" } ]
[ { "from": "human", "value": "Recursively search starting in the current directory, ignoring case" }, { "from": "gpt", "value": "ned --ignore-case --recursive '^[dl]og' ." } ]
[ { "from": "human", "value": "Search always showing colored output" }, { "from": "gpt", "value": "ned --colors '^[dl]og' ." } ]
[ { "from": "human", "value": "Search never showing colored output" }, { "from": "gpt", "value": "ned --colors=never '^[dl]og' ." } ]
[ { "from": "human", "value": "Search ignoring certain files" }, { "from": "gpt", "value": "ned --recursive --exclude '*.htm' '^[dl]og' ." } ]
[ { "from": "human", "value": "Simple replace" }, { "from": "gpt", "value": "ned 'dog' --replace 'cat' ." } ]
[ { "from": "human", "value": "Replace using numbered group references" }, { "from": "gpt", "value": "ned 'the ([a-z]+) dog and the ([a-z]+) dog' --replace 'the $2 dog and the $1 dog' ." } ]
[ { "from": "human", "value": "Replace changing case" }, { "from": "gpt", "value": "ned '([a-z]+) dog' --case-replacements --replace '\\U$1\\E! dog' --stdout ." } ]
[ { "from": "human", "value": "Preview results of a find and replace without updating the target files" }, { "from": "gpt", "value": "ned '^[sb]ad' --replace 'happy' --stdout ." } ]
[ { "from": "human", "value": "Launch the vim tutor using the given language (en, fr, de, ...)" }, { "from": "gpt", "value": "vimtutor language" } ]
[ { "from": "human", "value": "Exit the tutor" }, { "from": "gpt", "value": "<Esc><:>q<Enter>" } ]
[ { "from": "human", "value": "Print the fully qualified package specification for the current project" }, { "from": "gpt", "value": "cargo pkgid" } ]
[ { "from": "human", "value": "Print the fully qualified package specification for the specified package" }, { "from": "gpt", "value": "cargo pkgid partial_pkgspec" } ]
[ { "from": "human", "value": "List all NodeBalancers" }, { "from": "gpt", "value": "linode-cli nodebalancers list" } ]
[ { "from": "human", "value": "Create a new NodeBalancer" }, { "from": "gpt", "value": "linode-cli nodebalancers create --region region" } ]
[ { "from": "human", "value": "View details of a specific NodeBalancer" }, { "from": "gpt", "value": "linode-cli nodebalancers view nodebalancer_id" } ]
[ { "from": "human", "value": "Update an existing NodeBalancer" }, { "from": "gpt", "value": "linode-cli nodebalancers update nodebalancer_id --label new_label" } ]
[ { "from": "human", "value": "Delete a NodeBalancer" }, { "from": "gpt", "value": "linode-cli nodebalancers delete nodebalancer_id" } ]
[ { "from": "human", "value": "List configurations for a NodeBalancer" }, { "from": "gpt", "value": "linode-cli nodebalancers configs list nodebalancer_id" } ]
[ { "from": "human", "value": "Add a new configuration to a NodeBalancer" }, { "from": "gpt", "value": "linode-cli nodebalancers configs create nodebalancer_id --port port --protocol protocol" } ]
[ { "from": "human", "value": "View documentation for the original command" }, { "from": "gpt", "value": "tldr docker diff" } ]
[ { "from": "human", "value": "Connect to a serial console with the default baud rate of 9600" }, { "from": "gpt", "value": "sudo picocom /dev/ttyXYZ" } ]
[ { "from": "human", "value": "Connect to a serial console with a specified baud rate" }, { "from": "gpt", "value": "sudo picocom /dev/ttyXYZ [-b|--baud] baud_rate" } ]
[ { "from": "human", "value": "Map special characters (e.g. `LF` to `CRLF`)" }, { "from": "gpt", "value": "sudo picocom /dev/ttyXYZ --imap lfcrlf" } ]
[ { "from": "human", "value": "Exit picocom" }, { "from": "gpt", "value": "<Ctrl a><Ctrl x>" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "picocom [-h|--help]" } ]
[ { "from": "human", "value": "Display system logs" }, { "from": "gpt", "value": "adb logcat" } ]
[ { "from": "human", "value": "Display lines that match a regular [e]xpression" }, { "from": "gpt", "value": "adb logcat -e regular_expression" } ]
[ { "from": "human", "value": "Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags" }, { "from": "gpt", "value": "adb logcat tag:mode *:S" } ]
[ { "from": "human", "value": "Display logs for React Native applications in [V]erbose mode [S]ilencing other tags" }, { "from": "gpt", "value": "adb logcat ReactNative:V ReactNativeJS:V *:S" } ]
[ { "from": "human", "value": "Display logs for all tags with priority level [W]arning and higher" }, { "from": "gpt", "value": "adb logcat *:W" } ]
[ { "from": "human", "value": "Display logs for a specific PID" }, { "from": "gpt", "value": "adb logcat --pid pid" } ]
[ { "from": "human", "value": "Display logs for the process of a specific package" }, { "from": "gpt", "value": "adb logcat --pid $(adb shell pidof -s package)" } ]
[ { "from": "human", "value": "Color the log (usually use with filters)" }, { "from": "gpt", "value": "adb logcat -v color" } ]
[ { "from": "human", "value": "Archive a file, replacing it with a 7zipped compressed version" }, { "from": "gpt", "value": "p7zip path/to/file" } ]
[ { "from": "human", "value": "Archive a file keeping the input file" }, { "from": "gpt", "value": "p7zip -k path/to/file" } ]
[ { "from": "human", "value": "Decompress a file, replacing it with the original uncompressed version" }, { "from": "gpt", "value": "p7zip -d compressed.ext.7z" } ]
[ { "from": "human", "value": "Decompress a file keeping the input file" }, { "from": "gpt", "value": "p7zip -d -k compressed.ext.7z" } ]
[ { "from": "human", "value": "Skip some checks and force compression or decompression" }, { "from": "gpt", "value": "p7zip -f path/to/file" } ]
[ { "from": "human", "value": "Get ephemerides for Paris, France" }, { "from": "gpt", "value": "kosmorro --latitude=48.7996 --longitude=2.3511" } ]
[ { "from": "human", "value": "Get ephemerides for Paris, France, in the UTC+2 timezone" }, { "from": "gpt", "value": "kosmorro --latitude=48.7996 --longitude=2.3511 --timezone=2" } ]
[ { "from": "human", "value": "Get ephemerides for Paris, France, on June 9th, 2020" }, { "from": "gpt", "value": "kosmorro --latitude=48.7996 --longitude=2.3511 --date=2020-06-09" } ]
[ { "from": "human", "value": "Generate a PDF (Note: TeXLive must be installed)" }, { "from": "gpt", "value": "kosmorro --format=pdf --output=path/to/file.pdf" } ]
[ { "from": "human", "value": "Open the current directory (or specify one as the first argument)" }, { "from": "gpt", "value": "nnn" } ]
[ { "from": "human", "value": "Start in detailed mode" }, { "from": "gpt", "value": "nnn -d" } ]
[ { "from": "human", "value": "Show hidden files" }, { "from": "gpt", "value": "nnn -H" } ]
[ { "from": "human", "value": "Open an existing bookmark (defined in the `NNN_BMS` environment variable)" }, { "from": "gpt", "value": "nnn -b bookmark_name" } ]
[ { "from": "human", "value": "Sort files on [a]pparent disk usage / [d]isk usage / [e]xtension / [r]everse / [s]ize / [t]ime / [v]ersion" }, { "from": "gpt", "value": "nnn -T a|d|e|r|s|t|v" } ]
[ { "from": "human", "value": "Open a file you have selected. Select the file then press `<o>`, and type a program to open the file in" }, { "from": "gpt", "value": "nnn -o" } ]
[ { "from": "human", "value": "Apply the default style of 4 spaces per indent and no formatting changes" }, { "from": "gpt", "value": "astyle source_file" } ]
[ { "from": "human", "value": "Apply the Java style with attached braces" }, { "from": "gpt", "value": "astyle --style=java path/to/file" } ]
[ { "from": "human", "value": "Apply the allman style with broken braces" }, { "from": "gpt", "value": "astyle --style=allman path/to/file" } ]
[ { "from": "human", "value": "Apply a custom indent using spaces. Choose between 2 and 20 spaces" }, { "from": "gpt", "value": "astyle --indent=spaces=number_of_spaces path/to/file" } ]
[ { "from": "human", "value": "Apply a custom indent using tabs. Choose between 2 and 20 tabs" }, { "from": "gpt", "value": "astyle --indent=tab=number_of_tabs path/to/file" } ]
[ { "from": "human", "value": "Show a live view of the functions that take the most execution time of a running process" }, { "from": "gpt", "value": "py-spy top --pid pid" } ]
[ { "from": "human", "value": "Start a program and show a live view of the functions that take the most execution time" }, { "from": "gpt", "value": "py-spy top -- python path/to/file.py" } ]
[ { "from": "human", "value": "Produce an SVG flame graph of the function call execution time" }, { "from": "gpt", "value": "py-spy record -o path/to/profile.svg --pid pid" } ]
[ { "from": "human", "value": "Dump the call stack of a running process" }, { "from": "gpt", "value": "py-spy dump --pid pid" } ]
[ { "from": "human", "value": "Generate a changelog from all commits in a Git repository and save it to `CHANGELOG.md`" }, { "from": "gpt", "value": "git cliff > CHANGELOG.md" } ]
[ { "from": "human", "value": "Generate a changelog from commits starting from the latest tag and print it to `stdout`" }, { "from": "gpt", "value": "git cliff [-l|--latest]" } ]
[ { "from": "human", "value": "Generate a changelog from commits that belong to the current tag (use `git checkout` on a tag before this)" }, { "from": "gpt", "value": "git cliff --current" } ]
[ { "from": "human", "value": "Generate a changelog from commits that do not belong to a tag" }, { "from": "gpt", "value": "git cliff [-u|--unreleased]" } ]
[ { "from": "human", "value": "Write the default config file to `cliff.toml` in the current directory" }, { "from": "gpt", "value": "git cliff [-i|--init]" } ]
[ { "from": "human", "value": "Reset all tracked files and delete all untracked files even if they are included in the `.gitignore`" }, { "from": "gpt", "value": "git clear" } ]
[ { "from": "human", "value": "Show all fake data providers along with examples" }, { "from": "gpt", "value": "faker" } ]
[ { "from": "human", "value": "Generate fake data of a specific type" }, { "from": "gpt", "value": "faker name|address|passport_full|credit_card_full|phone_number|email|company|date_time|user_name|password|job|..." } ]
[ { "from": "human", "value": "Generate a number of fake addresses from a specific country (use `localectl list-locales | cut -d. -f1` to get list of locales)" }, { "from": "gpt", "value": "faker --repeat number --lang de_DE|de_CH|... address" } ]
[ { "from": "human", "value": "Generate a number of cities in a specific country and output them to a file (use `localectl list-locales | cut -d. -f1` to get list of locales)" }, { "from": "gpt", "value": "faker --repeat number --lang en_AU|en_US|... city -o path/to/file.txt" } ]
[ { "from": "human", "value": "Generate a number of random HTTP user-agents showing verbose output" }, { "from": "gpt", "value": "faker --repeat number --verbose user_agent" } ]
[ { "from": "human", "value": "Generate a number of domain names and separate each using a specific separator" }, { "from": "gpt", "value": "faker --repeat number --sep ',' domain_name" } ]
[ { "from": "human", "value": "Browse for VNC servers" }, { "from": "gpt", "value": "bvnc" } ]
[ { "from": "human", "value": "Browse for SSH servers" }, { "from": "gpt", "value": "bvnc --ssh" } ]
[ { "from": "human", "value": "Browse for both VNC and SSH servers" }, { "from": "gpt", "value": "bvnc --shell" } ]
[ { "from": "human", "value": "Browse for VNC servers in a specified domain" }, { "from": "gpt", "value": "bvnc --domain domain" } ]
[ { "from": "human", "value": "Connect to a specific instance at <https://account.snowflakecomputing.com> (password can be provided in prompt or configuration file)" }, { "from": "gpt", "value": "snowsql --accountname account --username username --dbname database --schemaname schema" } ]
[ { "from": "human", "value": "Connect to an instance specified by a specific configuration file (defaults to `~/.snowsql/config`)" }, { "from": "gpt", "value": "snowsql --config path/to/configuration_file" } ]
[ { "from": "human", "value": "Connect to the default instance using a token for multi-factor authentication" }, { "from": "gpt", "value": "snowsql --mfa-passcode token" } ]
[ { "from": "human", "value": "Execute a single SQL query or SnowSQL command on the default connection (useful in shell scripts)" }, { "from": "gpt", "value": "snowsql --query 'query'" } ]
[ { "from": "human", "value": "Execute commands from a specific file on the default connection" }, { "from": "gpt", "value": "snowsql --filename path/to/file.sql" } ]
[ { "from": "human", "value": "Run a script" }, { "from": "gpt", "value": "Rscript path/to/file.R" } ]
[ { "from": "human", "value": "Run a script in vanilla mode (i.e. a blank session that doesn't save the workspace at the end)" }, { "from": "gpt", "value": "Rscript --vanilla path/to/file.R" } ]
[ { "from": "human", "value": "Execute one or more R expressions" }, { "from": "gpt", "value": "Rscript -e expression1 -e expression2" } ]
[ { "from": "human", "value": "Display R version" }, { "from": "gpt", "value": "Rscript --version" } ]