conversations
listlengths
2
2
[ { "from": "human", "value": "Display the `Cargo.toml` manifest located at the root of the workspace as opposed to the current workspace member" }, { "from": "gpt", "value": "cargo locate-project --workspace" } ]
[ { "from": "human", "value": "Display the `Cargo.toml` manifest of a specific directory" }, { "from": "gpt", "value": "cargo locate-project --manifest-path path/to/Cargo.toml" } ]
[ { "from": "human", "value": "Make the RGB colors in a PPM image compatible with NTSC color systems" }, { "from": "gpt", "value": "ppmntsc path/to/input_file.ppm > path/to/output_file.ppm" } ]
[ { "from": "human", "value": "Make the RGB colors in a PPM image compatible with PAL color systems" }, { "from": "gpt", "value": "ppmntsc --pal path/to/input_file.ppm > path/to/output_file.ppm" } ]
[ { "from": "human", "value": "Print the number of illegal pixels in the input image to `stderr`" }, { "from": "gpt", "value": "ppmntsc [--verb|--verbose] path/to/input_file.ppm > path/to/output_file.ppm" } ]
[ { "from": "human", "value": "Output only legal/illegal/corrected pixels, set other pixels to black" }, { "from": "gpt", "value": "ppmntsc --legalonly|illegalonly|correctedonly path/to/input_file.ppm > path/to/output_file.ppm" } ]
[ { "from": "human", "value": "Flatten an image" }, { "from": "gpt", "value": "crane flatten" } ]
[ { "from": "human", "value": "Apply new tag to flattened image" }, { "from": "gpt", "value": "crane flatten [-t|--tag] tag_name" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "crane flatten [-h|--help]" } ]
[ { "from": "human", "value": "[c]reate an archive and write it to a [f]ile" }, { "from": "gpt", "value": "tar cf path/to/target.tar path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "[c]reate a g[z]ipped archive and write it to a [f]ile" }, { "from": "gpt", "value": "tar czf path/to/target.tar.gz path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "[c]reate a g[z]ipped (compressed) archive from a directory using relative paths" }, { "from": "gpt", "value": "tar czf path/to/target.tar.gz --directory=path/to/directory ." } ]
[ { "from": "human", "value": "E[x]tract a (compressed) archive [f]ile into the current directory [v]erbosely" }, { "from": "gpt", "value": "tar xvf path/to/source.tar[.gz|.bz2|.xz]" } ]
[ { "from": "human", "value": "E[x]tract a (compressed) archive [f]ile into the target directory" }, { "from": "gpt", "value": "tar xf path/to/source.tar[.gz|.bz2|.xz] --directory=path/to/directory" } ]
[ { "from": "human", "value": "[c]reate a compressed archive and write it to a [f]ile, using the file extension to [a]utomatically determine the compression program" }, { "from": "gpt", "value": "tar caf path/to/target.tar.xz path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Lis[t] the contents of a tar [f]ile [v]erbosely" }, { "from": "gpt", "value": "tar tvf path/to/source.tar" } ]
[ { "from": "human", "value": "E[x]tract files matching a pattern from an archive [f]ile" }, { "from": "gpt", "value": "tar xf path/to/source.tar --wildcards \"*.html\"" } ]
[ { "from": "human", "value": "Highlight source code from a file with the Python lexer and output to `stdout`" }, { "from": "gpt", "value": "chroma --lexer python path/to/source_file.py" } ]
[ { "from": "human", "value": "Highlight source code from a file with the Go lexer and output to an HTML file" }, { "from": "gpt", "value": "chroma --lexer go --formatter html path/to/source_file.go > path/to/target_file.html" } ]
[ { "from": "human", "value": "Highlight source code from `stdin` with the C++ lexer and output to an SVG file, using the Monokai style" }, { "from": "gpt", "value": "command | chroma --lexer c++ --formatter svg --style monokai > path/to/target_file.svg" } ]
[ { "from": "human", "value": "List available lexers, styles and formatters" }, { "from": "gpt", "value": "chroma --list" } ]
[ { "from": "human", "value": "Connect to a Vault server and initialize a new encrypted data store" }, { "from": "gpt", "value": "vault init" } ]
[ { "from": "human", "value": "Unseal (unlock) the vault, by providing one of the key shares needed to access the encrypted data store" }, { "from": "gpt", "value": "vault unseal key-share-x" } ]
[ { "from": "human", "value": "Authenticate the CLI client against the Vault server, using an authentication token" }, { "from": "gpt", "value": "vault auth authentication_token" } ]
[ { "from": "human", "value": "Store a new secret in the vault, using the generic back-end called \"secret\"" }, { "from": "gpt", "value": "vault write secret/hello value=world" } ]
[ { "from": "human", "value": "Read a value from the vault, using the generic back-end called \"secret\"" }, { "from": "gpt", "value": "vault read secret/hello" } ]
[ { "from": "human", "value": "Read a specific field from the value" }, { "from": "gpt", "value": "vault read -field=field_name secret/hello" } ]
[ { "from": "human", "value": "Seal (lock) the Vault server, by removing the encryption key of the data store from memory" }, { "from": "gpt", "value": "vault seal" } ]
[ { "from": "human", "value": "Lint a file or directory recursively" }, { "from": "gpt", "value": "flake8 path/to/file_or_directory" } ]
[ { "from": "human", "value": "Lint a file or directory recursively and show the line on which each error occurred" }, { "from": "gpt", "value": "flake8 --show-source path/to/file_or_directory" } ]
[ { "from": "human", "value": "Lint a file or directory recursively and ignore a list of rules. (All available rules can be found at flake8rules.com)" }, { "from": "gpt", "value": "flake8 --ignore rule1,rule2 path/to/file_or_directory" } ]
[ { "from": "human", "value": "Lint a file or directory recursively but exclude files matching the given globs or substrings" }, { "from": "gpt", "value": "flake8 --exclude substring1,glob2 path/to/file_or_directory" } ]
[ { "from": "human", "value": "Show all data" }, { "from": "gpt", "value": "ntpctl -s [a|all]" } ]
[ { "from": "human", "value": "Show information about each peer" }, { "from": "gpt", "value": "ntpctl -s [p|peers]" } ]
[ { "from": "human", "value": "Show the status of peers and sensors, and whether the system clock is synced" }, { "from": "gpt", "value": "ntpctl -s [s|status]" } ]
[ { "from": "human", "value": "Show information about each sensor" }, { "from": "gpt", "value": "ntpctl -s [S|Sensors]" } ]
[ { "from": "human", "value": "Create a GeoPackage with a layer for each input Shapefile" }, { "from": "gpt", "value": "ogrmerge.py -f GPKG -o path/to/output.gpkg path/to/input1.shp path/to/input2.shp ..." } ]
[ { "from": "human", "value": "Create a virtual datasource (VRT) with a layer for each input GeoJSON" }, { "from": "gpt", "value": "ogrmerge.py -f VRT -o path/to/output.vrt path/to/input1.geojson path/to/input2.geojson ..." } ]
[ { "from": "human", "value": "Concatenate two vector datasets and store source name of dataset in attribute 'source_name'" }, { "from": "gpt", "value": "ogrmerge.py -single -f GeoJSON -o path/to/output.geojson -src_layer_field_name country source_name path/to/input1.shp path/to/input2.shp ..." ...
[ { "from": "human", "value": "Build a specific C project in the current directory" }, { "from": "gpt", "value": "verilator --binary --build-jobs 0 -Wall path/to/source.v" } ]
[ { "from": "human", "value": "Create a C++ executable in a specific folder" }, { "from": "gpt", "value": "verilator --cc --exe --build --build-jobs 0 -Wall path/to/source.cpp path/to/output.v" } ]
[ { "from": "human", "value": "Perform linting over a code in the current directory" }, { "from": "gpt", "value": "verilator --lint-only -Wall" } ]
[ { "from": "human", "value": "Create XML output about the design (files, modules, instance hierarchy, logic and data types) to feed into other tools" }, { "from": "gpt", "value": "verilator --xml-output -Wall path/to/output.xml" } ]
[ { "from": "human", "value": "Import new transactions from `bank.csv`, using `bank.csv.rules` to convert" }, { "from": "gpt", "value": "hledger import path/to/bank.csv" } ]
[ { "from": "human", "value": "Show what would be imported from these two files, without doing anything" }, { "from": "gpt", "value": "hledger import path/to/bank1.csv path/to/bank2.csv --dry-run" } ]
[ { "from": "human", "value": "Import new transactions from all CSV files, using the same rules for all" }, { "from": "gpt", "value": "hledger import --rules-file common.rules *.csv" } ]
[ { "from": "human", "value": "Show conversion errors or results while editing `bank.csv.rules`" }, { "from": "gpt", "value": "watchexec -- hledger -f path/to/bank.csv print" } ]
[ { "from": "human", "value": "Mark `bank.csv`'s current data as seen, as if already imported" }, { "from": "gpt", "value": "hledger import --catchup path/to/bank.csv" } ]
[ { "from": "human", "value": "Mark `bank.csv` as all new, as if not yet imported" }, { "from": "gpt", "value": "rm -f .latest.bank.csv" } ]
[ { "from": "human", "value": "Create a new Middleman project" }, { "from": "gpt", "value": "middleman init \"project_name\"" } ]
[ { "from": "human", "value": "Start local server for current project on port 4567" }, { "from": "gpt", "value": "middleman server" } ]
[ { "from": "human", "value": "Start local server for current project on a specified port" }, { "from": "gpt", "value": "middleman server -p \"port\"" } ]
[ { "from": "human", "value": "Build the project in the current directory to prepare for deployment" }, { "from": "gpt", "value": "bundle exec middleman build" } ]
[ { "from": "human", "value": "Deploy the Middleman project in the current directory" }, { "from": "gpt", "value": "middleman deploy" } ]
[ { "from": "human", "value": "Convert a PS file to PNM images, storing page N of the input to `path/to/fileN.ppm`" }, { "from": "gpt", "value": "pstopnm path/to/file.ps" } ]
[ { "from": "human", "value": "Explicitly specify the output format" }, { "from": "gpt", "value": "pstopnm -pbm|pgm|ppm path/to/file.ps" } ]
[ { "from": "human", "value": "Specify the resolution of the output in dots per inch" }, { "from": "gpt", "value": "pstopnm -dpi n path/to/file.ps" } ]
[ { "from": "human", "value": "Commit staged files to the repository with a message" }, { "from": "gpt", "value": "git commit [-m|--message] \"message\"" } ]
[ { "from": "human", "value": "Commit staged files with a message read from a file" }, { "from": "gpt", "value": "git commit [-F|--file] path/to/commit_message_file" } ]
[ { "from": "human", "value": "Auto stage all modified and deleted files and commit with a message" }, { "from": "gpt", "value": "git commit [-a|--all] [-m|--message] \"message\"" } ]
[ { "from": "human", "value": "Commit staged files and sign them with the specified GPG key (or the one defined in the configuration file if no argument is specified)" }, { "from": "gpt", "value": "git commit [-S|--gpg-sign] key_id [-m|--message] \"message\"" } ]
[ { "from": "human", "value": "Update the last commit by adding the currently staged changes, changing the commit's hash" }, { "from": "gpt", "value": "git commit --amend" } ]
[ { "from": "human", "value": "Commit only specific (already staged) files" }, { "from": "gpt", "value": "git commit path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Create a commit, even if there are no staged files" }, { "from": "gpt", "value": "git commit [-m|--message] \"message\" --allow-empty" } ]
[ { "from": "human", "value": "Transform a raw HTML file into a cleaned, indented, and colored format" }, { "from": "gpt", "value": "cat index.html | pup --color" } ]
[ { "from": "human", "value": "Filter HTML by element tag name" }, { "from": "gpt", "value": "cat index.html | pup 'tag'" } ]
[ { "from": "human", "value": "Filter HTML by ID" }, { "from": "gpt", "value": "cat index.html | pup 'div#id'" } ]
[ { "from": "human", "value": "Filter HTML by attribute value" }, { "from": "gpt", "value": "cat index.html | pup 'input[type=\"text\"]'" } ]
[ { "from": "human", "value": "Print all text from the filtered HTML elements and their children" }, { "from": "gpt", "value": "cat index.html | pup 'div text{}'" } ]
[ { "from": "human", "value": "Print HTML as JSON" }, { "from": "gpt", "value": "cat index.html | pup 'div json{}'" } ]
[ { "from": "human", "value": "Render a PNG image with a filename based on the input filename and output format (uppercase -O)" }, { "from": "gpt", "value": "twopi -T png -O path/to/input.gv" } ]
[ { "from": "human", "value": "Render a SVG image with the specified output filename (lowercase -o)" }, { "from": "gpt", "value": "twopi -T svg -o path/to/image.svg path/to/input.gv" } ]
[ { "from": "human", "value": "Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format" }, { "from": "gpt", "value": "twopi -T format -O path/to/input.gv" } ]
[ { "from": "human", "value": "Render a GIF image using `stdin` and `stdout`" }, { "from": "gpt", "value": "echo \"digraph {this -> that} \" | twopi -T gif > path/to/image.gif" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "twopi -?" } ]
[ { "from": "human", "value": "Generate a simple regular expression" }, { "from": "gpt", "value": "grex space_separated_strings" } ]
[ { "from": "human", "value": "Generate a case-insensitive regular expression" }, { "from": "gpt", "value": "grex -i space_separated_strings" } ]
[ { "from": "human", "value": "Replace digits with '\\d'" }, { "from": "gpt", "value": "grex -d space_separated_strings" } ]
[ { "from": "human", "value": "Replace Unicode word character with '\\w'" }, { "from": "gpt", "value": "grex -w space_separated_strings" } ]
[ { "from": "human", "value": "Replace spaces with '\\s'" }, { "from": "gpt", "value": "grex -s space_separated_strings" } ]
[ { "from": "human", "value": "Add {min, max} quantifier representation for repeating sub-strings" }, { "from": "gpt", "value": "grex -r space_separated_strings" } ]
[ { "from": "human", "value": "Show the content of all global and local `.gitignore` files" }, { "from": "gpt", "value": "git ignore" } ]
[ { "from": "human", "value": "Ignore file(s) privately, updating `.git/info/exclude` file" }, { "from": "gpt", "value": "git ignore file_pattern --private" } ]
[ { "from": "human", "value": "Ignore file(s) locally, updating local `.gitignore` file" }, { "from": "gpt", "value": "git ignore file_pattern" } ]
[ { "from": "human", "value": "Ignore file(s) globally, updating global `.gitignore` file" }, { "from": "gpt", "value": "git ignore file_pattern --global" } ]
[ { "from": "human", "value": "Compare files" }, { "from": "gpt", "value": "colordiff file1 file2" } ]
[ { "from": "human", "value": "Output in two columns" }, { "from": "gpt", "value": "colordiff -y file1 file2" } ]
[ { "from": "human", "value": "Ignore case differences in file contents" }, { "from": "gpt", "value": "colordiff -i file1 file2" } ]
[ { "from": "human", "value": "Report when two files are the same" }, { "from": "gpt", "value": "colordiff -s file1 file2" } ]
[ { "from": "human", "value": "Ignore whitespace" }, { "from": "gpt", "value": "colordiff -w file1 file2" } ]
[ { "from": "human", "value": "Launch a \"Getting Started\" workflow" }, { "from": "gpt", "value": "gcloud init" } ]
[ { "from": "human", "value": "Launch a workflow without diagnostics" }, { "from": "gpt", "value": "gcloud init --skip-diagnostics" } ]
[ { "from": "human", "value": "Use the console for authentication" }, { "from": "gpt", "value": "gcloud init --console-only" } ]
[ { "from": "human", "value": "Pair a device with the host" }, { "from": "gpt", "value": "idevicepair pair" } ]
[ { "from": "human", "value": "List devices paired with the host" }, { "from": "gpt", "value": "idevicepair list" } ]
[ { "from": "human", "value": "Scan a specific IP address" }, { "from": "gpt", "value": "ipscan 192.168.0.1" } ]
[ { "from": "human", "value": "Scan a range of IP addresses" }, { "from": "gpt", "value": "ipscan 192.168.0.1-254" } ]
[ { "from": "human", "value": "Scan a range of IP addresses and save the results to a file" }, { "from": "gpt", "value": "ipscan 192.168.0.1-254 -o path/to/output.txt" } ]
[ { "from": "human", "value": "Scan IPs with a specific set of ports" }, { "from": "gpt", "value": "ipscan 192.168.0.1-254 -p 80,443,22" } ]
[ { "from": "human", "value": "Scan with a delay between requests to avoid network congestion" }, { "from": "gpt", "value": "ipscan 192.168.0.1-254 -d 200" } ]