conversations
listlengths
2
2
[ { "from": "human", "value": "Create a table" }, { "from": "gpt", "value": "sqlite-utils create-table path/to/database.db table_name id integer name text height float photo blob --pk id" } ]
[ { "from": "human", "value": "List tables" }, { "from": "gpt", "value": "sqlite-utils tables path/to/database.db" } ]
[ { "from": "human", "value": "Upsert a record" }, { "from": "gpt", "value": "echo '[ {\"id\": 1, \"name\": \"Linus Torvalds\"}, {\"id\": 2, \"name\": \"Steve Wozniak\"}, {\"id\": 3, \"name\": \"Tony Hoare\"} ]' | sqlite-utils upsert path/to/database.db table_name - --pk id" } ]
[ { "from": "human", "value": "Select records" }, { "from": "gpt", "value": "sqlite-utils rows path/to/database.db table_name" } ]
[ { "from": "human", "value": "Delete a record" }, { "from": "gpt", "value": "sqlite-utils query path/to/database.db \"delete from table_name where name = 'Tony Hoare'\"" } ]
[ { "from": "human", "value": "Drop a table" }, { "from": "gpt", "value": "sqlite-utils drop-table path/to/database.db table_name" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "sqlite-utils -h" } ]
[ { "from": "human", "value": "Run a command once for each line of input data as arguments" }, { "from": "gpt", "value": "arguments_source | xe command" } ]
[ { "from": "human", "value": "Execute the commands, replacing any occurrence of the placeholder (marked as `{}`) with the input line" }, { "from": "gpt", "value": "arguments_source | xe command {} optional_extra_arguments" } ]
[ { "from": "human", "value": "Execute a shellscript, joining every `N` lines into a single call" }, { "from": "gpt", "value": "echo -e 'a\\nb' | xe -N2 -s 'echo $2 $1'" } ]
[ { "from": "human", "value": "Delete all files with a `.backup` extension" }, { "from": "gpt", "value": "find . -name '*.backup' | xe rm -v" } ]
[ { "from": "human", "value": "Run up to `max-jobs` processes in parallel; the default is 1. If `max-jobs` is 0, xe will run as many processes as cpu cores" }, { "from": "gpt", "value": "arguments_source | xe -j max-jobs command" } ]
[ { "from": "human", "value": "Exit a function prematurely" }, { "from": "gpt", "value": "func_name() { echo \"This is reached\"; return; echo \"This is not\"; }" } ]
[ { "from": "human", "value": "Specify the function's return value" }, { "from": "gpt", "value": "func_name() { return exit_code; }" } ]
[ { "from": "human", "value": "Create an image of cratered terrain with the specified dimensions" }, { "from": "gpt", "value": "pamcrater [-h|-height] height [-w|-width] width > path/to/output.pam" } ]
[ { "from": "human", "value": "Create an image containing the specified number of craters" }, { "from": "gpt", "value": "pamcrater [-n|-number] n_craters > path/to/output.pam" } ]
[ { "from": "human", "value": "View documentation for the original command" }, { "from": "gpt", "value": "tldr getArch.py" } ]
[ { "from": "human", "value": "Upload an artifact to Rekor" }, { "from": "gpt", "value": "rekor-cli upload --artifact path/to/file.ext --signature path/to/file.ext.sig --pki-format=x509 --public-key=path/to/key.pub" } ]
[ { "from": "human", "value": "Get information regarding entries in the Transparency Log" }, { "from": "gpt", "value": "rekor-cli get --uuid=0e81b4d9299e2609e45b5c453a4c0e7820ac74e02c4935a8b830d104632fd2d1" } ]
[ { "from": "human", "value": "Search the Rekor index to find entries by Artifact" }, { "from": "gpt", "value": "rekor-cli search --artifact path/to/file.ext" } ]
[ { "from": "human", "value": "Search the Rekor index to find entries by a specific hash" }, { "from": "gpt", "value": "rekor-cli search --sha 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b" } ]
[ { "from": "human", "value": "Start a server from a specific directory" }, { "from": "gpt", "value": "browser-sync start --server path/to/directory --files path/to/directory" } ]
[ { "from": "human", "value": "Start a server from local directory, watching all CSS files in a directory" }, { "from": "gpt", "value": "browser-sync start --server --files 'path/to/directory/*.css'" } ]
[ { "from": "human", "value": "Create configuration file" }, { "from": "gpt", "value": "browser-sync init" } ]
[ { "from": "human", "value": "Start Browsersync from configuration file" }, { "from": "gpt", "value": "browser-sync start --config config_file" } ]
[ { "from": "human", "value": "Initialize a new Typst project in a given directory using a template (e.g., `@preview/charged-ieee`)" }, { "from": "gpt", "value": "typst init \"template\" path/to/directory" } ]
[ { "from": "human", "value": "Compile a Typst file" }, { "from": "gpt", "value": "typst compile path/to/source.typ path/to/output.pdf" } ]
[ { "from": "human", "value": "Watch a Typst file and recompile on changes" }, { "from": "gpt", "value": "typst watch path/to/source.typ path/to/output.pdf" } ]
[ { "from": "human", "value": "List all discoverable fonts in the system and the given directory" }, { "from": "gpt", "value": "typst --font-path path/to/fonts_directory fonts" } ]
[ { "from": "human", "value": "Scan a project with configuration file in your project's root directory named `sonar-project.properties`" }, { "from": "gpt", "value": "sonar-scanner" } ]
[ { "from": "human", "value": "Scan a project using configuration file other than `sonar-project.properties`" }, { "from": "gpt", "value": "sonar-scanner -Dproject.settings=myproject.properties" } ]
[ { "from": "human", "value": "Print debugging information" }, { "from": "gpt", "value": "sonar-scanner -X" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "sonar-scanner -h" } ]
[ { "from": "human", "value": "Execute a particular file" }, { "from": "gpt", "value": "mix run my_script.exs" } ]
[ { "from": "human", "value": "Create a new project" }, { "from": "gpt", "value": "mix new project_name" } ]
[ { "from": "human", "value": "Compile project" }, { "from": "gpt", "value": "mix compile" } ]
[ { "from": "human", "value": "Run project tests" }, { "from": "gpt", "value": "mix test" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "mix help" } ]
[ { "from": "human", "value": "Push an integration to Zapier" }, { "from": "gpt", "value": "zapier push" } ]
[ { "from": "human", "value": "Disable smart file inclusion (will only include files required by `index.js`)" }, { "from": "gpt", "value": "zapier push --disable-dependency-detection" } ]
[ { "from": "human", "value": "Show extra debugging output" }, { "from": "gpt", "value": "zapier push [-d|--debug]" } ]
[ { "from": "human", "value": "Open PlatformIO Home in the default web browser" }, { "from": "gpt", "value": "pio home" } ]
[ { "from": "human", "value": "Use a specific HTTP port (defaults to 8008)" }, { "from": "gpt", "value": "pio home --port port" } ]
[ { "from": "human", "value": "Bind to a specific IP address (defaults to 127.0.0.1)" }, { "from": "gpt", "value": "pio home --host ip_address" } ]
[ { "from": "human", "value": "Do not automatically open PlatformIO Home in the default web browser" }, { "from": "gpt", "value": "pio home --no-open" } ]
[ { "from": "human", "value": "Automatically shutdown the server on timeout (in seconds) when no clients are connected" }, { "from": "gpt", "value": "pio home --shutdown-timeout time" } ]
[ { "from": "human", "value": "Specify a unique session identifier to keep PlatformIO Home isolated from other instances and protected from 3rd party access" }, { "from": "gpt", "value": "pio home --session-id id" } ]
[ { "from": "human", "value": "Initialize `git-secret` in a local repository" }, { "from": "gpt", "value": "git secret init" } ]
[ { "from": "human", "value": "Grant access to the current Git user's email" }, { "from": "gpt", "value": "git secret tell -m" } ]
[ { "from": "human", "value": "Grant access by email" }, { "from": "gpt", "value": "git secret tell email" } ]
[ { "from": "human", "value": "Revoke access by email" }, { "from": "gpt", "value": "git secret killperson email" } ]
[ { "from": "human", "value": "List emails with access to secrets" }, { "from": "gpt", "value": "git secret whoknows" } ]
[ { "from": "human", "value": "Register a secret file" }, { "from": "gpt", "value": "git secret add path/to/file" } ]
[ { "from": "human", "value": "Encrypt secrets" }, { "from": "gpt", "value": "git secret hide" } ]
[ { "from": "human", "value": "Decrypt secret files" }, { "from": "gpt", "value": "git secret reveal" } ]
[ { "from": "human", "value": "Display statistics for a PDF file" }, { "from": "gpt", "value": "pdf-parser --stats path/to/file.pdf" } ]
[ { "from": "human", "value": "Display objects of type `/Font` in a PDF file" }, { "from": "gpt", "value": "pdf-parser --type=/Font path/to/file.pdf" } ]
[ { "from": "human", "value": "Search for strings in indirect objects" }, { "from": "gpt", "value": "pdf-parser --search=search_string path/to/file.pdf" } ]
[ { "from": "human", "value": "Describe the format and basic characteristics of an image" }, { "from": "gpt", "value": "magick identify path/to/image" } ]
[ { "from": "human", "value": "Describe the format and verbose characteristics of an image" }, { "from": "gpt", "value": "magick identify -verbose path/to/image" } ]
[ { "from": "human", "value": "Collect dimensions of all JPEG files in the current directory and save them into a CSV file" }, { "from": "gpt", "value": "magick identify -format \"%f,%w,%h\\n\" *.jpg > path/to/filelist.csv" } ]
[ { "from": "human", "value": "Apply a patch using a diff file (filenames must be included in the diff file)" }, { "from": "gpt", "value": "patch < patch.diff" } ]
[ { "from": "human", "value": "Apply a patch to a specific file" }, { "from": "gpt", "value": "patch path/to/file < patch.diff" } ]
[ { "from": "human", "value": "Patch a file writing the result to a different file" }, { "from": "gpt", "value": "patch path/to/input_file -o path/to/output_file < patch.diff" } ]
[ { "from": "human", "value": "Apply a patch to the current directory" }, { "from": "gpt", "value": "patch -p1 < patch.diff" } ]
[ { "from": "human", "value": "Apply the reverse of a patch" }, { "from": "gpt", "value": "patch -R < patch.diff" } ]
[ { "from": "human", "value": "Enter an interactive database session" }, { "from": "gpt", "value": "nxcdb" } ]
[ { "from": "human", "value": "Display the currently active workspace" }, { "from": "gpt", "value": "nxcdb --get-workspace" } ]
[ { "from": "human", "value": "Create a new workspace" }, { "from": "gpt", "value": "nxcdb --create-workspace workspace_name" } ]
[ { "from": "human", "value": "Activate the specified workspace" }, { "from": "gpt", "value": "nxcdb --set-workspace workspace_name" } ]
[ { "from": "human", "value": "Consume messages starting with the newest offset" }, { "from": "gpt", "value": "kcat -C -t topic -b brokers" } ]
[ { "from": "human", "value": "Consume messages starting with the oldest offset and exit after the last message is received" }, { "from": "gpt", "value": "kcat -C -t topic -b brokers -o beginning -e" } ]
[ { "from": "human", "value": "Consume messages as a Kafka consumer group" }, { "from": "gpt", "value": "kcat -G group_id topic -b brokers" } ]
[ { "from": "human", "value": "Publish message by reading from `stdin`" }, { "from": "gpt", "value": "echo message | kcat -P -t topic -b brokers" } ]
[ { "from": "human", "value": "Publish messages by reading from a file" }, { "from": "gpt", "value": "kcat -P -t topic -b brokers path/to/file" } ]
[ { "from": "human", "value": "List metadata for all topics and brokers" }, { "from": "gpt", "value": "kcat -L -b brokers" } ]
[ { "from": "human", "value": "List metadata for a specific topic" }, { "from": "gpt", "value": "kcat -L -t topic -b brokers" } ]
[ { "from": "human", "value": "Get offset for a topic/partition for a specific point in time" }, { "from": "gpt", "value": "kcat -Q -t topic:partition:unix_timestamp -b brokers" } ]
[ { "from": "human", "value": "Generate a QR code" }, { "from": "gpt", "value": "echo \"data\" | qr" } ]
[ { "from": "human", "value": "Specify the error correction level (defaults to M)" }, { "from": "gpt", "value": "echo \"data\" | qr --error-correction=L|M|Q|H" } ]
[ { "from": "human", "value": "Wait for a deployment to become available" }, { "from": "gpt", "value": "kubectl wait --for=condition=available deployment/deployment_name" } ]
[ { "from": "human", "value": "Wait for all pods with a certain [l]abel to be ready" }, { "from": "gpt", "value": "kubectl wait --for=condition=ready pod [-l|--selector] label_key=label_value" } ]
[ { "from": "human", "value": "Wait for a pod to be deleted" }, { "from": "gpt", "value": "kubectl wait --for=delete pod pod_name" } ]
[ { "from": "human", "value": "Wait for a job to complete, within 120 seconds (if the condition isn't met on time, the exit status will be unsuccessful)" }, { "from": "gpt", "value": "kubectl wait --for=condition=complete job/job_name --timeout 120s" } ]
[ { "from": "human", "value": "Download a torrent" }, { "from": "gpt", "value": "webtorrent download \"torrent_id\"" } ]
[ { "from": "human", "value": "Stream a torrent to VLC media player" }, { "from": "gpt", "value": "webtorrent download \"torrent_id\" --vlc" } ]
[ { "from": "human", "value": "Stream a torrent to a Digital Living Network Alliance (DLNA) device" }, { "from": "gpt", "value": "webtorrent download \"torrent_id\" --dlna" } ]
[ { "from": "human", "value": "Display a list of files for a specific torrent" }, { "from": "gpt", "value": "webtorrent download \"torrent_id\" --select" } ]
[ { "from": "human", "value": "Specify a file index from the torrent to download" }, { "from": "gpt", "value": "webtorrent download \"torrent_id\" --select index" } ]
[ { "from": "human", "value": "Seed a specific file or directory" }, { "from": "gpt", "value": "webtorrent seed path/to/file_or_directory" } ]
[ { "from": "human", "value": "Create a new torrent file for the specified file path" }, { "from": "gpt", "value": "webtorrent create path/to/file" } ]
[ { "from": "human", "value": "Display information for a magnet URI or `.torrent` file" }, { "from": "gpt", "value": "webtorrent info path/to/file_or_magnet" } ]
[ { "from": "human", "value": "Convert a PAM image to a TIFF image" }, { "from": "gpt", "value": "pamtotiff path/to/input_file.pam > path/to/output_file.tiff" } ]
[ { "from": "human", "value": "Explicitly specify a compression method for the output file" }, { "from": "gpt", "value": "pamtotiff -none|packbits|lzw|g3|g4|flate|adobeflate path/to/input_file.pam > path/to/output_file.tiff" } ]
[ { "from": "human", "value": "Always produce a color TIFF image, even if the input image is greyscale" }, { "from": "gpt", "value": "pamtotiff [-c|-color] path/to/input_file.pam > path/to/output_file.tiff" } ]
[ { "from": "human", "value": "View documentation for the original command" }, { "from": "gpt", "value": "tldr kcat" } ]
[ { "from": "human", "value": "Read OCaml commands from the user and execute them" }, { "from": "gpt", "value": "ocaml" } ]
[ { "from": "human", "value": "Read OCaml commands from a file and execute them" }, { "from": "gpt", "value": "ocaml path/to/file.ml" } ]
[ { "from": "human", "value": "Run OCaml script with modules" }, { "from": "gpt", "value": "ocaml module1 module2 path/to/file.ml" } ]
[ { "from": "human", "value": "Search a single directory" }, { "from": "gpt", "value": "jdupes path/to/directory" } ]