conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Store a formatted message in a variable (does not work on Zsh) via the `printf` command"
},
{
"from": "gpt",
"value": "`printf -v {{myvar}} {{\"This is %s = %d\\n\" \"a year\" 2016}}`"
}
] |
[
{
"from": "human",
"value": "Print a hexadecimal, octal and scientific number via the `printf` command"
},
{
"from": "gpt",
"value": "`printf \"{{hex=%x octal=%o scientific=%e}}\" 0x{{FF}} 0{{377}} {{100000}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `print`."
},
{
"from": "gpt",
"value": "`print` can refer to multiple commands with the same name.\n"
}
] |
[
{
"from": "human",
"value": "View documentation for the Zsh builtin via the `print` command"
},
{
"from": "gpt",
"value": "`tldr print.zsh`"
}
] |
[
{
"from": "human",
"value": "View documentation for the `print` alias of `run-mailcap` via the `print` command"
},
{
"from": "gpt",
"value": "`tldr --platform linux print.runmailcap`"
}
] |
[
{
"from": "human",
"value": "View documentation for printing text files on Windows via the `print` command"
},
{
"from": "gpt",
"value": "`tldr --platform windows print.win`"
}
] |
[
{
"from": "human",
"value": "Tell me about `print`."
},
{
"from": "gpt",
"value": "Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`.\nSee also: `echo`, `printf`, `zsh`.\nMore information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>.\n"
}
] |
[
{
"from": "human",
"value": "Print input via the `print.zsh` command"
},
{
"from": "gpt",
"value": "`print \"Hello\" \"World\"`"
}
] |
[
{
"from": "human",
"value": "Print separated by newline(s) via the `print.zsh` command"
},
{
"from": "gpt",
"value": "`print -l \"Line1\" \"Line 2\" \"Line3\"`"
}
] |
[
{
"from": "human",
"value": "Print without trailing newline via the `print.zsh` command"
},
{
"from": "gpt",
"value": "`print -n \"Hello\"; print \"World\"`"
}
] |
[
{
"from": "human",
"value": "Enable backslash escapes via the `print.zsh` command"
},
{
"from": "gpt",
"value": "`print -e \"Line 1\\nLine2\"`"
}
] |
[
{
"from": "human",
"value": "Print arguments as described by `printf` (for greater portability across shells, consider using the `printf` command instead) via the `print.zsh` command"
},
{
"from": "gpt",
"value": "`print -f \"%s is %d years old.\\n\" \"Alice\" 30`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pr`."
},
{
"from": "gpt",
"value": "Paginate or columnate files for printing.\nMore information: <https://www.gnu.org/software/coreutils/manual/html_node/pr-invocation.html>.\n"
}
] |
[
{
"from": "human",
"value": "Print multiple files with a default header and footer via the `pr` command"
},
{
"from": "gpt",
"value": "`pr {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Print with a custom centered header via the `pr` command"
},
{
"from": "gpt",
"value": "`pr {{[-h|--header]}} \"{{header}}\" {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Print with numbered lines and a custom date format via the `pr` command"
},
{
"from": "gpt",
"value": "`pr {{[-n|--number-lines]}} {{[-D|--date-format]}} \"{{format}}\" {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Print all files together, one in each column, without a header or footer via the `pr` command"
},
{
"from": "gpt",
"value": "`pr {{[-m|--merge]}} {{[-T|--omit-pagination]}} {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Print, beginning at page 2 up to page 5, with a given page length (including header and footer) via the `pr` command"
},
{
"from": "gpt",
"value": "`pr +2:5 {{[-l|--length]}} {{page_length}} {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Print with an offset for each line and a truncating custom page width via the `pr` command"
},
{
"from": "gpt",
"value": "`pr {{[-o|--indent]}} {{offset}} {{[-W|--page_width]}} {{width}} {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `procs`."
},
{
"from": "gpt",
"value": "Display information about the active processes.\nMore information: <https://github.com/dalance/procs>.\n"
}
] |
[
{
"from": "human",
"value": "List all processes showing the PID, user, CPU usage, memory usage, and the command which started them via the `procs` command"
},
{
"from": "gpt",
"value": "`procs`"
}
] |
[
{
"from": "human",
"value": "List all processes as a tree via the `procs` command"
},
{
"from": "gpt",
"value": "`procs --tree`"
}
] |
[
{
"from": "human",
"value": "List information about processes, if the commands which started them contain Zsh via the `procs` command"
},
{
"from": "gpt",
"value": "`procs {{zsh}}`"
}
] |
[
{
"from": "human",
"value": "List information about all processes sorted by CPU time in [a]scending or [d]escending order via the `procs` command"
},
{
"from": "gpt",
"value": "`procs {{--sorta|--sortd}} cpu`"
}
] |
[
{
"from": "human",
"value": "List information about processes with either a PID, command, or user containing `41` or `firefox` via the `procs` command"
},
{
"from": "gpt",
"value": "`procs --or {{PID|command|user}} {{41}} {{firefox}}`"
}
] |
[
{
"from": "human",
"value": "List information about processes with both PID `41` and a command or user containing `zsh` via the `procs` command"
},
{
"from": "gpt",
"value": "`procs --and {{41}} {{zsh}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `progpilot`."
},
{
"from": "gpt",
"value": "A PHP static analysis tool for detecting security vulnerabilities.\nMore information: <https://github.com/designsecurity/progpilot>.\n"
}
] |
[
{
"from": "human",
"value": "Analyze the current directory via the `progpilot` command"
},
{
"from": "gpt",
"value": "`progpilot`"
}
] |
[
{
"from": "human",
"value": "Analyze a specific file or directory via the `progpilot` command"
},
{
"from": "gpt",
"value": "`progpilot {{path/to/file_or_directory}}`"
}
] |
[
{
"from": "human",
"value": "Specify a custom configuration file via the `progpilot` command"
},
{
"from": "gpt",
"value": "`progpilot --configuration {{path/to/configuration.yml}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `progress`."
},
{
"from": "gpt",
"value": "Display/Monitor the progress of running coreutils.\nMore information: <https://github.com/Xfennec/progress>.\n"
}
] |
[
{
"from": "human",
"value": "Show the progress of running coreutils via the `progress` command"
},
{
"from": "gpt",
"value": "`progress`"
}
] |
[
{
"from": "human",
"value": "Show the progress of running coreutils in quiet mode via the `progress` command"
},
{
"from": "gpt",
"value": "`progress -q`"
}
] |
[
{
"from": "human",
"value": "Launch and monitor a single long-running command via the `progress` command"
},
{
"from": "gpt",
"value": "`{{command}} & progress --monitor --pid $!`"
}
] |
[
{
"from": "human",
"value": "Include an estimate of time remaining for completion via the `progress` command"
},
{
"from": "gpt",
"value": "`progress --wait --command {{firefox}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `Projucer`."
},
{
"from": "gpt",
"value": "A project manager for JUCE framework applications.\nMore information: <https://juce.com/discover/stories/projucer-manual#10.4-command-line-tools>.\n"
}
] |
[
{
"from": "human",
"value": "Display information about a project via the `projucer` command"
},
{
"from": "gpt",
"value": "`Projucer --status {{path/to/project_file}}`"
}
] |
[
{
"from": "human",
"value": "Resave all files and resources in a project via the `projucer` command"
},
{
"from": "gpt",
"value": "`Projucer --resave {{path/to/project_file}}`"
}
] |
[
{
"from": "human",
"value": "Update the version number in a project via the `projucer` command"
},
{
"from": "gpt",
"value": "`Projucer --set-version {{version_number}} {{path/to/project_file}}`"
}
] |
[
{
"from": "human",
"value": "Generate a JUCE project from a PIP file via the `projucer` command"
},
{
"from": "gpt",
"value": "`Projucer --create-project-from-pip {{path/to/PIP}} {{path/to/output}}`"
}
] |
[
{
"from": "human",
"value": "Remove all JUCE-style comments (`//=====`, `//-----` or `///////`) via the `projucer` command"
},
{
"from": "gpt",
"value": "`Projucer --tidy-divider-comments {{path/to/target_folder}}`"
}
] |
[
{
"from": "human",
"value": "Display help via the `projucer` command"
},
{
"from": "gpt",
"value": "`Projucer --help`"
}
] |
[
{
"from": "human",
"value": "Tell me about `promtool`."
},
{
"from": "gpt",
"value": "Tooling for the Prometheus monitoring system.\nMore information: <https://prometheus.io/docs/prometheus/latest/getting_started/>.\n"
}
] |
[
{
"from": "human",
"value": "Check if the configuration files are valid or not (if present report errors) via the `promtool` command"
},
{
"from": "gpt",
"value": "`promtool check config {{config_file.yml}}`"
}
] |
[
{
"from": "human",
"value": "Check if the rule files are valid or not (if present report errors) via the `promtool` command"
},
{
"from": "gpt",
"value": "`promtool check rules {{rules_file.yml}}`"
}
] |
[
{
"from": "human",
"value": "Pass Prometheus metrics over `stdin` to check them for consistency and correctness via the `promtool` command"
},
{
"from": "gpt",
"value": "`curl --silent {{http://example.com:9090/metrics/}} | promtool check metrics`"
}
] |
[
{
"from": "human",
"value": "Unit tests for rules config via the `promtool` command"
},
{
"from": "gpt",
"value": "`promtool test rules {{test_file.yml}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `propelauth`."
},
{
"from": "gpt",
"value": "Set up PropelAuth authentication as quickly and easily as possible.\nMore information: <https://docs.propelauth.com/reference/api/cli>.\n"
}
] |
[
{
"from": "human",
"value": "Login to PropelAuth using an API Key generated from <https://auth.propelauth.com/api_keys/personal> via the `propelauth` command"
},
{
"from": "gpt",
"value": "`propelauth login`"
}
] |
[
{
"from": "human",
"value": "Set the default PropelAuth Project for the CLI. If no default project is set, the system will prompt for selecting a Project each time certain commands are run via the `propelauth` command"
},
{
"from": "gpt",
"value": "`propelauth set-default-project`"
}
] |
[
{
"from": "human",
"value": "Install PropelAuth authentication in an application. If no directory is provided, the current directory is used via the `propelauth` command"
},
{
"from": "gpt",
"value": "`propelauth setup {{[-f|--framework]}} {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Log the CLI out of PropelAuth via the `propelauth` command"
},
{
"from": "gpt",
"value": "`propelauth logout`"
}
] |
[
{
"from": "human",
"value": "Tell me about `prosodyctl`."
},
{
"from": "gpt",
"value": "The control tool for the Prosody XMPP server.\nNote: process management through `prosodyctl` is discouraged. Instead, use the tools provided by your system (e.g. `systemctl`).\nMore information: <https://pros... |
[
{
"from": "human",
"value": "Show the status of the Prosody server via the `prosodyctl` command"
},
{
"from": "gpt",
"value": "`sudo prosodyctl status`"
}
] |
[
{
"from": "human",
"value": "Reload the server's configuration files via the `prosodyctl` command"
},
{
"from": "gpt",
"value": "`sudo prosodyctl reload`"
}
] |
[
{
"from": "human",
"value": "Add a user to the Prosody XMPP server via the `prosodyctl` command"
},
{
"from": "gpt",
"value": "`sudo prosodyctl adduser {{user@example.com}}`"
}
] |
[
{
"from": "human",
"value": "Set a user's password via the `prosodyctl` command"
},
{
"from": "gpt",
"value": "`sudo prosodyctl passwd {{user@example.com}}`"
}
] |
[
{
"from": "human",
"value": "Permanently delete a user via the `prosodyctl` command"
},
{
"from": "gpt",
"value": "`sudo prosodyctl deluser {{user@example.com}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `protector`."
},
{
"from": "gpt",
"value": "Protect or unprotect branches on GitHub repositories.\nMore information: <https://github.com/jcgay/protector>.\n"
}
] |
[
{
"from": "human",
"value": "Protect branches of a GitHub repository (create branch protection rules) via the `protector` command"
},
{
"from": "gpt",
"value": "`protector {{branches_regex}} -repos {{organization/repository}}`"
}
] |
[
{
"from": "human",
"value": "Use the dry run to see what would be protected (can also be used for freeing) via the `protector` command"
},
{
"from": "gpt",
"value": "`protector -dry-run {{branches_regex}} -repos {{organization/repository}}`"
}
] |
[
{
"from": "human",
"value": "Free branches of a GitHub repository (delete branch protection rules) via the `protector` command"
},
{
"from": "gpt",
"value": "`protector -free {{branches_regex}} -repos {{organization/repository}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `protoc`."
},
{
"from": "gpt",
"value": "Parse Google Protobuf `.proto` files and generate output in the specified language.\nMore information: <https://developers.google.com/protocol-buffers>.\n"
}
] |
[
{
"from": "human",
"value": "Generate Python code from a `.proto` file via the `protoc` command"
},
{
"from": "gpt",
"value": "`protoc --python_out={{path/to/output_directory}} {{input_file.proto}}`"
}
] |
[
{
"from": "human",
"value": "Generate Java code from a `.proto` file that imports other `.proto` files via the `protoc` command"
},
{
"from": "gpt",
"value": "`protoc --java_out={{path/to/output_directory}} --proto_path={{path/to/import_search_path}} {{input_file.proto}}`"
}
] |
[
{
"from": "human",
"value": "Generate code for multiple languages via the `protoc` command"
},
{
"from": "gpt",
"value": "`protoc --csharp_out={{path/to/c#_output_directory}} --js_out={{path/to/js_output_directory}} {{input_file.proto}}`"
}
] |
[
{
"from": "human",
"value": "Encode a text-format message into a protocol message from a `.proto` file via the `protoc` command"
},
{
"from": "gpt",
"value": "`protoc --encode={{TypeName}} {{input_file.proto}} < {{message.txt}}`"
}
] |
[
{
"from": "human",
"value": "Decode a protocol message into text-format from a `.proto` file via the `protoc` command"
},
{
"from": "gpt",
"value": "`protoc --decode={{TypeName}} {{input_file.proto}} < {{message.bin}}`"
}
] |
[
{
"from": "human",
"value": "Decode a protocol message into raw tag/value pairs via the `protoc` command"
},
{
"from": "gpt",
"value": "`protoc --decode_raw < {{message.bin}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `proxify`."
},
{
"from": "gpt",
"value": "A versatile and portable proxy for capturing, manipulating, and replaying HTTP/HTTPS traffic on the go.\nSee also: `mitmproxy`.\nMore information: <https://github.com/projectdiscovery/proxify>.\n"
}
] |
[
{
"from": "human",
"value": "Start a HTTP proxy (on the loopback network interface `127.0.0.1` and port `8888`) via the `proxify` command"
},
{
"from": "gpt",
"value": "`proxify`"
}
] |
[
{
"from": "human",
"value": "Start a HTTP proxy on a custom network interface and port (may require `sudo` for a port number lower than `1024`) via the `proxify` command"
},
{
"from": "gpt",
"value": "`proxify -http-addr \"{{ip_address}}:{{port_number}}\"`"
}
] |
[
{
"from": "human",
"value": "Specify output format and output file via the `proxify` command"
},
{
"from": "gpt",
"value": "`proxify -output-format {{jsonl|yaml}} -output {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Display help via the `proxify` command"
},
{
"from": "gpt",
"value": "`proxify -h`"
}
] |
[
{
"from": "human",
"value": "Tell me about `prqlc`."
},
{
"from": "gpt",
"value": "PRQL compiler.\nPRQL is a modern language for transforming data - a simple, powerful, pipelined SQL replacement.\nMore information: <https://prql-lang.org>.\n"
}
] |
[
{
"from": "human",
"value": "Run the compiler interactively via the `prqlc` command"
},
{
"from": "gpt",
"value": "`prqlc compile`"
}
] |
[
{
"from": "human",
"value": "Compile a specific `.prql` file to `stdout` via the `prqlc` command"
},
{
"from": "gpt",
"value": "`prqlc compile {{path/to/file.prql}}`"
}
] |
[
{
"from": "human",
"value": "Compile a `.prql` file to a `.sql` file via the `prqlc` command"
},
{
"from": "gpt",
"value": "`prqlc compile {{path/to/source.prql}} {{path/to/target.sql}}`"
}
] |
[
{
"from": "human",
"value": "Compile a query via the `prqlc` command"
},
{
"from": "gpt",
"value": "`echo \"{{from employees | filter has_dog | select salary}}\" | prqlc compile`"
}
] |
[
{
"from": "human",
"value": "Watch a directory and compile on file modification via the `prqlc` command"
},
{
"from": "gpt",
"value": "`prqlc watch {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `psalm`."
},
{
"from": "gpt",
"value": "A static analysis tool for finding errors in PHP applications.\nMore information: <https://psalm.dev>.\n"
}
] |
[
{
"from": "human",
"value": "Generate a Psalm configuration via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm --init`"
}
] |
[
{
"from": "human",
"value": "Analyze the current working directory via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm`"
}
] |
[
{
"from": "human",
"value": "Analyze a specific directory or file via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm {{path/to/file_or_directory}}`"
}
] |
[
{
"from": "human",
"value": "Analyze a project with a specific configuration file via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm --config {{path/to/psalm.xml}}`"
}
] |
[
{
"from": "human",
"value": "Include informational findings in the output via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm --show-info`"
}
] |
[
{
"from": "human",
"value": "Analyze a project and display statistics via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm --stats`"
}
] |
[
{
"from": "human",
"value": "Analyze a project in parallel with 4 threads via the `psalm` command"
},
{
"from": "gpt",
"value": "`psalm --threads {{4}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `psgrep`."
},
{
"from": "gpt",
"value": "Search running processes with `grep`.\nMore information: <https://jvz.github.io/psgrep>.\n"
}
] |
[
{
"from": "human",
"value": "Find process lines containing a specific string via the `psgrep` command"
},
{
"from": "gpt",
"value": "`psgrep {{process_name}}`"
}
] |
[
{
"from": "human",
"value": "Find process lines containing a specific string, excluding headers via the `psgrep` command"
},
{
"from": "gpt",
"value": "`psgrep -n {{process_name}}`"
}
] |
[
{
"from": "human",
"value": "Search using a simplified format (PID, user, command) via the `psgrep` command"
},
{
"from": "gpt",
"value": "`psgrep -s {{process_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `psidtopgm`."
},
{
"from": "gpt",
"value": "Convert PostScript image data to a PGM image.\nMore information: <https://netpbm.sourceforge.net/doc/psidtopgm.html>.\n"
}
] |
[
{
"from": "human",
"value": "Convert the image data in a PS file to a PGM image of the specified dimensions and quality via the `psidtopgm` command"
},
{
"from": "gpt",
"value": "`psidtopgm {{width}} {{height}} {{bits_per_sample}} {{path/to/file.ps}} > {{path/to/image.pgm}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `ps`."
},
{
"from": "gpt",
"value": "Information about running processes.\nMore information: <https://manned.org/ps>.\n"
}
] |
[
{
"from": "human",
"value": "List all running processes via the `ps` command"
},
{
"from": "gpt",
"value": "`ps aux`"
}
] |
[
{
"from": "human",
"value": "List all running processes including the full command string via the `ps` command"
},
{
"from": "gpt",
"value": "`ps auxww`"
}
] |
[
{
"from": "human",
"value": "Search for a process that matches a string (the brackets will prevent `grep` from matching itself) via the `ps` command"
},
{
"from": "gpt",
"value": "`ps aux | grep {{[s]tring}}`"
}
] |
[
{
"from": "human",
"value": "List all processes of the current user in extra full format via the `ps` command"
},
{
"from": "gpt",
"value": "`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F`"
}
] |
[
{
"from": "human",
"value": "List all processes of the current user as a tree via the `ps` command"
},
{
"from": "gpt",
"value": "`ps {{[-u|--user]}} $(id {{[-u|--user]}}) f`"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.