conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Select all elements matching \"XPATH1\" and print the value of their sub-element \"XPATH2\""
},
{
"from": "gpt",
"value": "xml select --template --match \"XPATH1\" --value-of \"XPATH2\" path/to/input.xml|URI"
}
] |
[
{
"from": "human",
"value": "Match \"XPATH1\" and print the value of \"XPATH2\" as text with new-lines"
},
{
"from": "gpt",
"value": "xml select --text --template --match \"XPATH1\" --value-of \"XPATH2\" --nl path/to/input.xml|URI"
}
] |
[
{
"from": "human",
"value": "Count the elements of \"XPATH1\""
},
{
"from": "gpt",
"value": "xml select --template --value-of \"count(XPATH1)\" path/to/input.xml|URI"
}
] |
[
{
"from": "human",
"value": "Count all nodes in one or more XML documents"
},
{
"from": "gpt",
"value": "xml select --text --template --inp-name --output \" \" --value-of \"count(node())\" --nl path/to/input1.xml|URI path/to/input2.xml|URI"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "xml select --help"
}
] |
[
{
"from": "human",
"value": "Disassemble an assembly to textual CIL"
},
{
"from": "gpt",
"value": "monodis path/to/assembly.exe"
}
] |
[
{
"from": "human",
"value": "Save the output to a file"
},
{
"from": "gpt",
"value": "monodis --output=path/to/output.il path/to/assembly.exe"
}
] |
[
{
"from": "human",
"value": "Show information about an assembly"
},
{
"from": "gpt",
"value": "monodis --assembly path/to/assembly.dll"
}
] |
[
{
"from": "human",
"value": "List the references of an assembly"
},
{
"from": "gpt",
"value": "monodis --assemblyref path/to/assembly.exe"
}
] |
[
{
"from": "human",
"value": "List all the methods in an assembly"
},
{
"from": "gpt",
"value": "monodis --method path/to/assembly.exe"
}
] |
[
{
"from": "human",
"value": "List resources embedded within an assembly"
},
{
"from": "gpt",
"value": "monodis --manifest path/to/assembly.dll"
}
] |
[
{
"from": "human",
"value": "Extract all the embedded resources to the current directory"
},
{
"from": "gpt",
"value": "monodis --mresources path/to/assembly.dll"
}
] |
[
{
"from": "human",
"value": "Generate a new keypair at the default location"
},
{
"from": "gpt",
"value": "minisign -G"
}
] |
[
{
"from": "human",
"value": "Sign a file"
},
{
"from": "gpt",
"value": "minisign -Sm path/to/file"
}
] |
[
{
"from": "human",
"value": "Sign a file, adding a trusted (signed) and an untrusted (unsigned) comment in the signature"
},
{
"from": "gpt",
"value": "minisign -Sm path/to/file -c \"Untrusted comment\" -t \"Trusted comment\""
}
] |
[
{
"from": "human",
"value": "Verify a file and the trusted comments in its signature using the specified public key file"
},
{
"from": "gpt",
"value": "minisign -Vm path/to/file -p path/to/publickey.pub"
}
] |
[
{
"from": "human",
"value": "Verify a file and the trusted comments in its signature, specifying a public key as a Base64 encoded literal"
},
{
"from": "gpt",
"value": "minisign -Vm path/to/file -P \"public_key_base64\""
}
] |
[
{
"from": "human",
"value": "Show all streams in the account"
},
{
"from": "gpt",
"value": "aws kinesis list-streams"
}
] |
[
{
"from": "human",
"value": "Write one record to a Kinesis stream"
},
{
"from": "gpt",
"value": "aws kinesis put-record --stream-name name --partition-key key --data base64_encoded_message"
}
] |
[
{
"from": "human",
"value": "Write a record to a Kinesis stream with inline base64 encoding"
},
{
"from": "gpt",
"value": "aws kinesis put-record --stream-name name --partition-key key --data \"$( echo \"my raw message\" | base64 )\""
}
] |
[
{
"from": "human",
"value": "List the shards available on a stream"
},
{
"from": "gpt",
"value": "aws kinesis list-shards --stream-name name"
}
] |
[
{
"from": "human",
"value": "Get a shard iterator for reading from the oldest message in a stream's shard"
},
{
"from": "gpt",
"value": "aws kinesis get-shard-iterator --shard-iterator-type TRIM_HORIZON --stream-name name --shard-id id"
}
] |
[
{
"from": "human",
"value": "Read records from a shard, using a shard iterator"
},
{
"from": "gpt",
"value": "aws kinesis get-records --shard-iterator iterator"
}
] |
[
{
"from": "human",
"value": "Show all groups with their statuses and number of parallel jobs"
},
{
"from": "gpt",
"value": "pueue group"
}
] |
[
{
"from": "human",
"value": "Add a custom group"
},
{
"from": "gpt",
"value": "pueue group --add \"group_name\""
}
] |
[
{
"from": "human",
"value": "Remove a group and move its tasks to the default group"
},
{
"from": "gpt",
"value": "pueue group --remove \"group_name\""
}
] |
[
{
"from": "human",
"value": "Clone an existing repository into a specific directory (defaults to the repository name)"
},
{
"from": "gpt",
"value": "dolt clone repository_url path/to/directory"
}
] |
[
{
"from": "human",
"value": "Clone an existing repository and add a specific remote (defaults to origin)"
},
{
"from": "gpt",
"value": "dolt clone --remote remote_name repository_url"
}
] |
[
{
"from": "human",
"value": "Clone an existing repository only fetching a specific branch (defaults to all branches)"
},
{
"from": "gpt",
"value": "dolt clone --branch branch_name repository_url"
}
] |
[
{
"from": "human",
"value": "Clone a repository, using an AWS region (uses the profile's default region if none is provided)"
},
{
"from": "gpt",
"value": "dolt clone --aws-region region_name repository_url"
}
] |
[
{
"from": "human",
"value": "Clone a repository, using an AWS credentials file"
},
{
"from": "gpt",
"value": "dolt clone --aws-creds-file credentials_file repository_url"
}
] |
[
{
"from": "human",
"value": "Clone a repository, using an AWS credentials profile (uses the default profile if none is provided)"
},
{
"from": "gpt",
"value": "dolt clone --aws-creds-profile profile_name repository_url"
}
] |
[
{
"from": "human",
"value": "Clone a repository, using an AWS credentials type"
},
{
"from": "gpt",
"value": "dolt clone --aws-creds-type credentials_type repository_url"
}
] |
[
{
"from": "human",
"value": "Start Khal on interactive mode"
},
{
"from": "gpt",
"value": "ikhal"
}
] |
[
{
"from": "human",
"value": "Print all events scheduled in personal calendar for the next seven days"
},
{
"from": "gpt",
"value": "khal list -a personal today 7d"
}
] |
[
{
"from": "human",
"value": "Print all events scheduled not in personal calendar for tomorrow at 10:00"
},
{
"from": "gpt",
"value": "khal at -d personal tomorrow 10:00"
}
] |
[
{
"from": "human",
"value": "Print a calendar with a list of events for the next three months"
},
{
"from": "gpt",
"value": "khal calendar"
}
] |
[
{
"from": "human",
"value": "Add new event to personal calendar"
},
{
"from": "gpt",
"value": "khal new -a personal 2020-09-08 18:00 18:30 \"Dentist appointment\""
}
] |
[
{
"from": "human",
"value": "Get the length of a specific string"
},
{
"from": "gpt",
"value": "expr length \"string\""
}
] |
[
{
"from": "human",
"value": "Get the substring of a string with a specific length"
},
{
"from": "gpt",
"value": "expr substr \"string\" from length"
}
] |
[
{
"from": "human",
"value": "Match a specific substring against an anchored pattern"
},
{
"from": "gpt",
"value": "expr match \"string\" 'pattern'"
}
] |
[
{
"from": "human",
"value": "Get the first char position from a specific set in a string"
},
{
"from": "gpt",
"value": "expr index \"string\" \"chars\""
}
] |
[
{
"from": "human",
"value": "Calculate a specific mathematic expression"
},
{
"from": "gpt",
"value": "expr expression1 +|-|*|/|% expression2"
}
] |
[
{
"from": "human",
"value": "Get the first expression if its value is non-zero and not null otherwise get the second one"
},
{
"from": "gpt",
"value": "expr expression1 \\| expression2"
}
] |
[
{
"from": "human",
"value": "Get the first expression if both expressions are non-zero and not null otherwise get zero"
},
{
"from": "gpt",
"value": "expr expression1 \\& expression2"
}
] |
[
{
"from": "human",
"value": "Open a file in editor"
},
{
"from": "gpt",
"value": "o path/to/file"
}
] |
[
{
"from": "human",
"value": "Open a file as read-only"
},
{
"from": "gpt",
"value": "o [-m|-monitor] path/to/file"
}
] |
[
{
"from": "human",
"value": "Save the file"
},
{
"from": "gpt",
"value": "<Ctrl s>"
}
] |
[
{
"from": "human",
"value": "Quit Orbiton"
},
{
"from": "gpt",
"value": "<Ctrl q>"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "o [-h|--help]"
}
] |
[
{
"from": "human",
"value": "Produce a grayscale version of the specified PPM image"
},
{
"from": "gpt",
"value": "ppmdist path/to/input.ppm > path/to/output.pgm"
}
] |
[
{
"from": "human",
"value": "Use the specified method to map colors to graylevels"
},
{
"from": "gpt",
"value": "ppmdist -frequency|intensity path/to/input.ppm > path/to/output.pgm"
}
] |
[
{
"from": "human",
"value": "View documentation for the `if` keyword"
},
{
"from": "gpt",
"value": "tldr if"
}
] |
[
{
"from": "human",
"value": "Upgrade `yadm` to the latest version"
},
{
"from": "gpt",
"value": "yadm upgrade"
}
] |
[
{
"from": "human",
"value": "Force the upgrade regardless of changes"
},
{
"from": "gpt",
"value": "yadm upgrade -f"
}
] |
[
{
"from": "human",
"value": "Create/overwrite htpasswd file"
},
{
"from": "gpt",
"value": "htpasswd -c path/to/file username"
}
] |
[
{
"from": "human",
"value": "Add user to htpasswd file or update existing user"
},
{
"from": "gpt",
"value": "htpasswd path/to/file username"
}
] |
[
{
"from": "human",
"value": "Add user to htpasswd file in batch mode without an interactive password prompt (for script usage)"
},
{
"from": "gpt",
"value": "htpasswd -b path/to/file username password"
}
] |
[
{
"from": "human",
"value": "Delete user from htpasswd file"
},
{
"from": "gpt",
"value": "htpasswd -D path/to/file username"
}
] |
[
{
"from": "human",
"value": "Verify user password"
},
{
"from": "gpt",
"value": "htpasswd -v path/to/file username"
}
] |
[
{
"from": "human",
"value": "Display a string with username (plain text) and password (md5)"
},
{
"from": "gpt",
"value": "htpasswd -nbm username password"
}
] |
[
{
"from": "human",
"value": "Create a service for a resource, which will be served from container port to node port"
},
{
"from": "gpt",
"value": "kubectl expose resource_type resource_name --port=node_port --target-port=container_port"
}
] |
[
{
"from": "human",
"value": "Create a service for a resource identified by a file"
},
{
"from": "gpt",
"value": "kubectl expose -f path/to/file.yml --port=node_port --target-port=container_port"
}
] |
[
{
"from": "human",
"value": "Create a service with a name, to serve to a node port which will be same for container port"
},
{
"from": "gpt",
"value": "kubectl expose resource_type resource_name --port=node_port --name=service_name"
}
] |
[
{
"from": "human",
"value": "Open the homepage of the current repository in the default web browser"
},
{
"from": "gpt",
"value": "gh browse"
}
] |
[
{
"from": "human",
"value": "Open the homepage of a specific repository in the default web browser"
},
{
"from": "gpt",
"value": "gh browse owner/repository"
}
] |
[
{
"from": "human",
"value": "Open the settings page of the current repository in the default web browser"
},
{
"from": "gpt",
"value": "gh browse --settings"
}
] |
[
{
"from": "human",
"value": "Open the wiki of the current repository in the default web browser"
},
{
"from": "gpt",
"value": "gh browse --wiki"
}
] |
[
{
"from": "human",
"value": "Open a specific issue or pull request in the web browser"
},
{
"from": "gpt",
"value": "gh browse issue_number|pull_request_number"
}
] |
[
{
"from": "human",
"value": "Open a specific branch in the web browser"
},
{
"from": "gpt",
"value": "gh browse --branch branch_name"
}
] |
[
{
"from": "human",
"value": "Open a specific file or directory of the current repository in the web browser"
},
{
"from": "gpt",
"value": "gh browse path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "Print the destination URL without open the web browser"
},
{
"from": "gpt",
"value": "gh browse --no-browser"
}
] |
[
{
"from": "human",
"value": "Check if a website is using any WAF"
},
{
"from": "gpt",
"value": "wafw00f https://www.example.com"
}
] |
[
{
"from": "human",
"value": "Test for all detectable WAFs without stopping at the first match"
},
{
"from": "gpt",
"value": "wafw00f [-a|--findall] https://www.example.com"
}
] |
[
{
"from": "human",
"value": "Pass requests through a proxy (such as BurpSuite)"
},
{
"from": "gpt",
"value": "wafw00f [-p|--proxy] http://localhost:8080 https://www.example.com"
}
] |
[
{
"from": "human",
"value": "Test for a specific WAF product (run `wafw00f -l` to get list of all supported WAFs)"
},
{
"from": "gpt",
"value": "wafw00f [-t|--test] Cloudflare|Cloudfront|Fastly|ZScaler|... https://www.example.com"
}
] |
[
{
"from": "human",
"value": "Pass custom headers from a file"
},
{
"from": "gpt",
"value": "wafw00f [-H|--headers] path/to/headers.txt https://www.example.com"
}
] |
[
{
"from": "human",
"value": "Read target inputs from a file and show verbose output (multiple `v` for more verbosity)"
},
{
"from": "gpt",
"value": "wafw00f [-i|--input] path/to/urls.txt -vv"
}
] |
[
{
"from": "human",
"value": "List all WAFs that can be detected"
},
{
"from": "gpt",
"value": "wafw00f [-l|--list]"
}
] |
[
{
"from": "human",
"value": "Register the current repository in the user's list of repositories to daily have maintenance run"
},
{
"from": "gpt",
"value": "git maintenance register"
}
] |
[
{
"from": "human",
"value": "Schedule maintenance tasks to run on the current repository every hour"
},
{
"from": "gpt",
"value": "git maintenance start"
}
] |
[
{
"from": "human",
"value": "Halt the background maintenance schedule for the current repository"
},
{
"from": "gpt",
"value": "git maintenance stop"
}
] |
[
{
"from": "human",
"value": "Remove the current repository from the user's maintenance repository list"
},
{
"from": "gpt",
"value": "git maintenance unregister"
}
] |
[
{
"from": "human",
"value": "Run a specific maintenance task on the current repository"
},
{
"from": "gpt",
"value": "git maintenance run --task commit-graph|gc|incremental-repack|loose-objects|pack-refs|prefetch"
}
] |
[
{
"from": "human",
"value": "Convert a PAM image to an equivalent PNM image, i.e. a PBM, PGM or PPM image"
},
{
"from": "gpt",
"value": "pamtopnm path/to/image.pam > path/to/output.pbm|pgm|ppm"
}
] |
[
{
"from": "human",
"value": "Display version"
},
{
"from": "gpt",
"value": "pamtopnm [-v|-version]"
}
] |
[
{
"from": "human",
"value": "Convert a range of pages to PNGs (Note: `%nd` in the output placeholder must be replaced with a print modifier like `%d` or `%2d`)"
},
{
"from": "gpt",
"value": "mutool convert -o path/to/output%nd.png path/to/input.pdf 1-10"
}
] |
[
{
"from": "human",
"value": "Convert one or more pages of a PDF into text in `stdout`"
},
{
"from": "gpt",
"value": "mutool draw -F txt path/to/input.pdf 2,3,5,..."
}
] |
[
{
"from": "human",
"value": "Concatenate multiple PDF files"
},
{
"from": "gpt",
"value": "mutool merge -o path/to/output.pdf path/to/input1.pdf path/to/input2.pdf ..."
}
] |
[
{
"from": "human",
"value": "Query information about all content embedded in a PDF"
},
{
"from": "gpt",
"value": "mutool info path/to/input.pdf"
}
] |
[
{
"from": "human",
"value": "Extract all images, fonts and resources embedded in a PDF to the current directory"
},
{
"from": "gpt",
"value": "mutool extract path/to/input.pdf"
}
] |
[
{
"from": "human",
"value": "Show the outline (table of contents) of a PDF"
},
{
"from": "gpt",
"value": "mutool show path/to/input.pdf outline"
}
] |
[
{
"from": "human",
"value": "List all subscriptions for the logged in account"
},
{
"from": "gpt",
"value": "az account list"
}
] |
[
{
"from": "human",
"value": "Set a `subscription` to be the currently active subscription"
},
{
"from": "gpt",
"value": "az account set --subscription subscription_id"
}
] |
[
{
"from": "human",
"value": "List supported regions for the currently active subscription"
},
{
"from": "gpt",
"value": "az account list-locations"
}
] |
[
{
"from": "human",
"value": "Print an access token to be used with `MS Graph API`"
},
{
"from": "gpt",
"value": "az account get-access-token --resource-type ms-graph"
}
] |
[
{
"from": "human",
"value": "Print details of the currently active subscription in a specific format"
},
{
"from": "gpt",
"value": "az account show --output json|tsv|table|yaml"
}
] |
[
{
"from": "human",
"value": "Start an interactive shell session"
},
{
"from": "gpt",
"value": "ksh"
}
] |
[
{
"from": "human",
"value": "Execute specific [c]ommands"
},
{
"from": "gpt",
"value": "ksh -c \"echo 'ksh is executed'\""
}
] |
[
{
"from": "human",
"value": "Execute a specific script"
},
{
"from": "gpt",
"value": "ksh path/to/script.ksh"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.