conversations
listlengths
2
2
[ { "from": "human", "value": "List all secrets but only show the secret names and ARNs (easy to view)" }, { "from": "gpt", "value": "aws secretsmanager list-secrets --query 'SecretList[*].{Name: Name, ARN: ARN}'" } ]
[ { "from": "human", "value": "Create a secret" }, { "from": "gpt", "value": "aws secretsmanager create-secret --name name --description \"secret_description\" --secret-string 'secret'" } ]
[ { "from": "human", "value": "Delete a secret (append `--force-delete-without-recovery` to delete immediately without any recovery period)" }, { "from": "gpt", "value": "aws secretsmanager delete-secret --secret-id name|arn" } ]
[ { "from": "human", "value": "View details of a secret except for secret text" }, { "from": "gpt", "value": "aws secretsmanager describe-secret --secret-id name|arn" } ]
[ { "from": "human", "value": "Retrieve the value of a secret (to get the latest version of the secret omit `--version-stage`)" }, { "from": "gpt", "value": "aws secretsmanager get-secret-value --secret-id name|arn --version-stage version_of_secret" } ]
[ { "from": "human", "value": "Rotate the secret immediately using a Lambda function" }, { "from": "gpt", "value": "aws secretsmanager rotate-secret --secret-id name|arn --rotation-lambda-arn arn_of_lambda_function" } ]
[ { "from": "human", "value": "Rotate the secret automatically every 30 days using a Lambda function" }, { "from": "gpt", "value": "aws secretsmanager rotate-secret --secret-id name|arn --rotation-lambda-arn arn_of_lambda_function --rotation-rules AutomaticallyAfterDays=30" } ]
[ { "from": "human", "value": "View documentation for the original command" }, { "from": "gpt", "value": "tldr musescore" } ]
[ { "from": "human", "value": "View documentation for the original command" }, { "from": "gpt", "value": "tldr clang++" } ]
[ { "from": "human", "value": "Request the next value from the SNMP agent" }, { "from": "gpt", "value": "snmpgetnext -v version -c community ip oid" } ]
[ { "from": "human", "value": "Display the full Object Identifier (OID) path" }, { "from": "gpt", "value": "snmpgetnext -v version -c community -O f ip oid" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "snmpgetnext [-h|--help]" } ]
[ { "from": "human", "value": "Create a new project using one of the default templates" }, { "from": "gpt", "value": "vue init webpack|webpack-simple|browserify|browserify-simple|simple project_name" } ]
[ { "from": "human", "value": "Create a new project using a local template" }, { "from": "gpt", "value": "vue init path/to/template_directory project_name" } ]
[ { "from": "human", "value": "Create a new project using a template from GitHub" }, { "from": "gpt", "value": "vue init username/repo project_name" } ]
[ { "from": "human", "value": "Execute a Java `.class` file that contains a main method by using just the class name" }, { "from": "gpt", "value": "java classname" } ]
[ { "from": "human", "value": "Execute a Java program and use additional third-party or user-defined classes" }, { "from": "gpt", "value": "java -classpath path/to/classes1:path/to/classes2:. classname" } ]
[ { "from": "human", "value": "Execute a `.jar` program" }, { "from": "gpt", "value": "java -jar filename.jar" } ]
[ { "from": "human", "value": "Execute a `.jar` program with debug waiting to connect on port 5005" }, { "from": "gpt", "value": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar filename.jar" } ]
[ { "from": "human", "value": "Display JDK, JRE and HotSpot versions" }, { "from": "gpt", "value": "java -version" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "java -help" } ]
[ { "from": "human", "value": "Fetch the disk space usage" }, { "from": "gpt", "value": "snmpdf -v version -c community ip" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "snmpdf [-h|--help]" } ]
[ { "from": "human", "value": "Find process lines containing a specific string" }, { "from": "gpt", "value": "psgrep process_name" } ]
[ { "from": "human", "value": "Find process lines containing a specific string, excluding headers" }, { "from": "gpt", "value": "psgrep -n process_name" } ]
[ { "from": "human", "value": "Search using a simplified format (PID, user, command)" }, { "from": "gpt", "value": "psgrep -s process_name" } ]
[ { "from": "human", "value": "Merge the pull request associated with the current branch interactively" }, { "from": "gpt", "value": "gh pr merge" } ]
[ { "from": "human", "value": "Merge the specified pull request, interactively" }, { "from": "gpt", "value": "gh pr merge pr_number" } ]
[ { "from": "human", "value": "Merge the pull request, removing the branch on both the local and the remote" }, { "from": "gpt", "value": "gh pr merge --delete-branch" } ]
[ { "from": "human", "value": "Merge the current pull request with the specified merge strategy" }, { "from": "gpt", "value": "gh pr merge --merge|squash|rebase" } ]
[ { "from": "human", "value": "Merge the current pull request with the specified merge strategy and commit message" }, { "from": "gpt", "value": "gh pr merge --merge|squash|rebase --subject commit_message" } ]
[ { "from": "human", "value": "Squash the current pull request into one commit with the message body and merge" }, { "from": "gpt", "value": "gh pr merge --squash --body=\"commit_message_body\"" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "gh pr merge --help" } ]
[ { "from": "human", "value": "View documentation for the original command" }, { "from": "gpt", "value": "tldr objdump" } ]
[ { "from": "human", "value": "Add files to a changelist, creating the changelist if it does not exist" }, { "from": "gpt", "value": "svn changelist changelist_name path/to/file1 path/to/file2" } ]
[ { "from": "human", "value": "Remove files from a changelist" }, { "from": "gpt", "value": "svn changelist --remove path/to/file1 path/to/file2" } ]
[ { "from": "human", "value": "Remove the whole changelist at once" }, { "from": "gpt", "value": "svn changelist --remove --recursive --changelist changelist_name ." } ]
[ { "from": "human", "value": "Add the contents of a space-separated list of directories to a changelist" }, { "from": "gpt", "value": "svn changelist --recursive changelist_name path/to/directory1 path/to/directory2 ..." } ]
[ { "from": "human", "value": "Commit a changelist" }, { "from": "gpt", "value": "svn commit --changelist changelist_name" } ]
[ { "from": "human", "value": "Download missing packages while compiling" }, { "from": "gpt", "value": "texliveonfly source.tex" } ]
[ { "from": "human", "value": "Use a specific compiler (defaults to `pdflatex`)" }, { "from": "gpt", "value": "texliveonfly --compiler=compiler source.tex" } ]
[ { "from": "human", "value": "Use a custom TeX Live `bin` folder" }, { "from": "gpt", "value": "texliveonfly --texlive_bin=path/to/texlive_bin source.tex" } ]
[ { "from": "human", "value": "Print the fifth column (a.k.a. field) in a space-separated file" }, { "from": "gpt", "value": "awk '{print $5}' path/to/file" } ]
[ { "from": "human", "value": "Print the second column of the lines containing \"foo\" in a space-separated file" }, { "from": "gpt", "value": "awk '/foo/ {print $2}' path/to/file" } ]
[ { "from": "human", "value": "Print the last column of each line in a file, using a comma (instead of space) as a field separator" }, { "from": "gpt", "value": "awk -F ',' '{print $NF}' path/to/file" } ]
[ { "from": "human", "value": "Sum the values in the first column of a file and print the total" }, { "from": "gpt", "value": "awk '{s+=$1} END {print s}' path/to/file" } ]
[ { "from": "human", "value": "Print every third line starting from the first line" }, { "from": "gpt", "value": "awk 'NR%3==1' path/to/file" } ]
[ { "from": "human", "value": "Print different values based on conditions" }, { "from": "gpt", "value": "awk '{if ($1 == \"foo\") print \"Exact match foo\"; else if ($1 ~ \"bar\") print \"Partial match bar\"; else print \"Baz\"}' path/to/file" } ]
[ { "from": "human", "value": "Print all the lines which the 10th column value is between a min and a max" }, { "from": "gpt", "value": "awk '($10 >= min_value && $10 <= max_value)'" } ]
[ { "from": "human", "value": "Print table of users with UID >=1000 with header and formatted output, using colon as separator (`%-20s` mean: 20 left-align string characters, `%6s` means: 6 right-align string characters)" }, { "from": "gpt", "value": "awk 'BEGIN {FS=\":\";printf \"%-20s %6s %25s\\...
[ { "from": "human", "value": "Log in by using an interactive prompt" }, { "from": "gpt", "value": "ibmcloud login" } ]
[ { "from": "human", "value": "Log in to a specific API endpoint (default is `cloud.ibm.com`)" }, { "from": "gpt", "value": "ibmcloud login -a api_endpoint" } ]
[ { "from": "human", "value": "Log in by providing username, password and the targeted region as parameters" }, { "from": "gpt", "value": "ibmcloud login -u username -p password -r us-south" } ]
[ { "from": "human", "value": "Log in with an API key, passing it as an argument" }, { "from": "gpt", "value": "ibmcloud login --apikey api_key_string" } ]
[ { "from": "human", "value": "Log in with an API key, passing it as a file" }, { "from": "gpt", "value": "ibmcloud login --apikey @path/to/api_key_file" } ]
[ { "from": "human", "value": "Log in with a federated ID (single sign-on)" }, { "from": "gpt", "value": "ibmcloud login --sso" } ]
[ { "from": "human", "value": "Convert a PNM or PAM file into a Motif UIL icon file" }, { "from": "gpt", "value": "pamtouil path/to/input.pnm|pam > path/to/output.uil" } ]
[ { "from": "human", "value": "Specify a prefix string to be printed in the output UIL file" }, { "from": "gpt", "value": "pamtouil [-n|-name] uilname path/to/input.pnm|pam > path/to/output.uil" } ]
[ { "from": "human", "value": "Unescape special XML characters from a string" }, { "from": "gpt", "value": "xml unescape \"&lt;a1&gt;\"" } ]
[ { "from": "human", "value": "Unescape special XML characters from `stdin`" }, { "from": "gpt", "value": "echo \"&lt;a1&gt;\" | xml unescape" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "xml escape --help" } ]
[ { "from": "human", "value": "Format given files or directories in-place" }, { "from": "gpt", "value": "ruff format path/to/file_or_directory1 path/to/file_or_directory2 ..." } ]
[ { "from": "human", "value": "Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise" }, { "from": "gpt", "value": "ruff format --check" } ]
[ { "from": "human", "value": "Print what changes would be made without modifying the files" }, { "from": "gpt", "value": "ruff format --diff" } ]
[ { "from": "human", "value": "List the status of all hosts within a range" }, { "from": "gpt", "value": "fping 192.168.1.{1..254}" } ]
[ { "from": "human", "value": "List alive hosts within a subnet generated from a netmask" }, { "from": "gpt", "value": "fping [-a|--alive] [-g|--generate] 192.168.1.0/24" } ]
[ { "from": "human", "value": "List alive hosts within a subnet generated from an IP range and prune per-probe results" }, { "from": "gpt", "value": "fping [-q|--quiet] [-a|--alive] [-g|--generate] 192.168.1.1 192.168.1.254" } ]
[ { "from": "human", "value": "List unreachable hosts within a subnet generated from a netmask" }, { "from": "gpt", "value": "fping [-u|--unreach] [-g|--generate] 192.168.1.0/24" } ]
[ { "from": "human", "value": "Compile and run sequential Erlang program as a common script and then exit" }, { "from": "gpt", "value": "erlc path/to/file1 path/to/file2 ... && erl -noshell 'mymodule:myfunction(arguments), init:stop().'" } ]
[ { "from": "human", "value": "Connect to a running Erlang node" }, { "from": "gpt", "value": "erl -remsh nodename@hostname -sname custom_shortname -hidden -setcookie cookie_of_remote_node" } ]
[ { "from": "human", "value": "Tell the Erlang shell to load modules from a directory" }, { "from": "gpt", "value": "erl -pa path/to/directory_with_beam_files" } ]
[ { "from": "human", "value": "Write test files to a given directory, filling the drive" }, { "from": "gpt", "value": "f3write path/to/mount_point" } ]
[ { "from": "human", "value": "Limit the write speed" }, { "from": "gpt", "value": "f3write --max-write-rate=kb_per_second path/to/mount_point" } ]
[ { "from": "human", "value": "Generate a new StrongNaming key" }, { "from": "gpt", "value": "sn -k path/to/key.snk" } ]
[ { "from": "human", "value": "Re-sign an assembly with the specified private key" }, { "from": "gpt", "value": "sn -R path/to/assembly.dll path/to/key_pair.snk" } ]
[ { "from": "human", "value": "Show the public key of the private key that was used to sign an assembly" }, { "from": "gpt", "value": "sn -T path/to/assembly.exe" } ]
[ { "from": "human", "value": "Extract the public key to a file" }, { "from": "gpt", "value": "sn -e path/to/assembly.dll path/to/output.pub" } ]
[ { "from": "human", "value": "Start Sindre's interactive CLI" }, { "from": "gpt", "value": "sindresorhus" } ]
[ { "from": "human", "value": "Generate a key interactively" }, { "from": "gpt", "value": "ssh-keygen" } ]
[ { "from": "human", "value": "Generate an ed25519 key with 32 key derivation function rounds and save the key to a specific file" }, { "from": "gpt", "value": "ssh-keygen -t ed25519 -a 32 -f ~/.ssh/filename" } ]
[ { "from": "human", "value": "Generate an RSA 4096-bit key with email as a comment" }, { "from": "gpt", "value": "ssh-keygen -t rsa -b 4096 -C \"comment|email\"" } ]
[ { "from": "human", "value": "Remove the keys of a host from the known_hosts file (useful when a known host has a new key)" }, { "from": "gpt", "value": "ssh-keygen -R remote_host" } ]
[ { "from": "human", "value": "Retrieve the fingerprint of a key in MD5 Hex" }, { "from": "gpt", "value": "ssh-keygen -l -E md5 -f ~/.ssh/filename" } ]
[ { "from": "human", "value": "Change the password of a key" }, { "from": "gpt", "value": "ssh-keygen -p -f ~/.ssh/filename" } ]
[ { "from": "human", "value": "Change the type of the key format (for example from OPENSSH format to PEM), the file will be rewritten in-place" }, { "from": "gpt", "value": "ssh-keygen -p -N \"\" -m PEM -f ~/.ssh/OpenSSH_private_key" } ]
[ { "from": "human", "value": "Retrieve public key from secret key" }, { "from": "gpt", "value": "ssh-keygen -y -f ~/.ssh/OpenSSH_private_key" } ]
[ { "from": "human", "value": "Generate completion scripts" }, { "from": "gpt", "value": "pulumi gen-completion bash|zsh|fish" } ]
[ { "from": "human", "value": "Make a simple GET request" }, { "from": "gpt", "value": "lwp-request -m GET http://example.com/some/path" } ]
[ { "from": "human", "value": "Upload a file with a POST request" }, { "from": "gpt", "value": "lwp-request -m POST http://example.com/some/path < path/to/file" } ]
[ { "from": "human", "value": "Make a request with a custom user agent" }, { "from": "gpt", "value": "lwp-request -H 'User-Agent: user_agent -m METHOD http://example.com/some/path" } ]
[ { "from": "human", "value": "Make a request with HTTP authentication" }, { "from": "gpt", "value": "lwp-request -C username:password -m METHOD http://example.com/some/path" } ]
[ { "from": "human", "value": "Make a request and print request headers" }, { "from": "gpt", "value": "lwp-request -U -m METHOD http://example.com/some/path" } ]
[ { "from": "human", "value": "Make a request and print response headers and status chain" }, { "from": "gpt", "value": "lwp-request -E -m METHOD http://example.com/some/path" } ]
[ { "from": "human", "value": "Sign in to a 1Password account" }, { "from": "gpt", "value": "op signin" } ]
[ { "from": "human", "value": "List all vaults" }, { "from": "gpt", "value": "op vault list" } ]
[ { "from": "human", "value": "Print item details in JSON format" }, { "from": "gpt", "value": "op item get item_name --format json" } ]
[ { "from": "human", "value": "Create a new item with a category in the default vault" }, { "from": "gpt", "value": "op item create --category category_name" } ]
[ { "from": "human", "value": "Print a referenced secret to `stdout`" }, { "from": "gpt", "value": "op read secret_reference" } ]
[ { "from": "human", "value": "Pass secret references from exported environment variables to a command" }, { "from": "gpt", "value": "op run -- command" } ]
[ { "from": "human", "value": "Pass secret references from an environment file to a command" }, { "from": "gpt", "value": "op run --env-file path/to/env_file.env -- command" } ]