conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Search for casks and formulae using a keyword"
},
{
"from": "gpt",
"value": "brew search keyword"
}
] |
[
{
"from": "human",
"value": "Search for casks and formulae using a regular expression"
},
{
"from": "gpt",
"value": "brew search /regular_expression/"
}
] |
[
{
"from": "human",
"value": "Enable searching through descriptions"
},
{
"from": "gpt",
"value": "brew search --desc keyword"
}
] |
[
{
"from": "human",
"value": "Only search for formulae"
},
{
"from": "gpt",
"value": "brew search --formula keyword"
}
] |
[
{
"from": "human",
"value": "Only search for casks"
},
{
"from": "gpt",
"value": "brew search --cask keyword"
}
] |
[
{
"from": "human",
"value": "Show a summary of the latest commit on a branch"
},
{
"from": "gpt",
"value": "git show-branch branch_name|ref|commit"
}
] |
[
{
"from": "human",
"value": "Compare commits in the history of multiple commits or branches"
},
{
"from": "gpt",
"value": "git show-branch branch_name1|ref1|commit1 branch_name2|ref2|commit2 ..."
}
] |
[
{
"from": "human",
"value": "Compare all remote tracking branches"
},
{
"from": "gpt",
"value": "git show-branch --remotes"
}
] |
[
{
"from": "human",
"value": "Compare both local and remote tracking branches"
},
{
"from": "gpt",
"value": "git show-branch --all"
}
] |
[
{
"from": "human",
"value": "List the latest commits in all branches"
},
{
"from": "gpt",
"value": "git show-branch --all --list"
}
] |
[
{
"from": "human",
"value": "Compare a given branch with the current branch"
},
{
"from": "gpt",
"value": "git show-branch --current commit|branch_name|ref"
}
] |
[
{
"from": "human",
"value": "Display the commit name instead of the relative name"
},
{
"from": "gpt",
"value": "git show-branch --sha1-name --current current|branch_name|ref"
}
] |
[
{
"from": "human",
"value": "Keep going a given number of commits past the common ancestor"
},
{
"from": "gpt",
"value": "git show-branch --more 5 commit|branch_name|ref commit|branch_name|ref ..."
}
] |
[
{
"from": "human",
"value": "Compare two files, uncompressing them if necessary"
},
{
"from": "gpt",
"value": "zdiff path/to/file1.gz path/to/file2.gz"
}
] |
[
{
"from": "human",
"value": "Compare a file to a `gzip` archive with the same name"
},
{
"from": "gpt",
"value": "zdiff path/to/file"
}
] |
[
{
"from": "human",
"value": "Compress a WebP file with default settings (q = 75) to the [o]utput file"
},
{
"from": "gpt",
"value": "cwebp path/to/image_file -o path/to/output.webp"
}
] |
[
{
"from": "human",
"value": "Compress a WebP file with the best [q]uality and largest file size"
},
{
"from": "gpt",
"value": "cwebp path/to/image_file -o path/to/output.webp -q 100"
}
] |
[
{
"from": "human",
"value": "Compress a WebP file with the worst [q]uality and smallest file size"
},
{
"from": "gpt",
"value": "cwebp path/to/image_file -o path/to/output.webp -q 0"
}
] |
[
{
"from": "human",
"value": "Compress a WebP file and apply resize to image"
},
{
"from": "gpt",
"value": "cwebp path/to/image_file -o path/to/output.webp -resize width height"
}
] |
[
{
"from": "human",
"value": "Compress a WebP file and drop alpha channel information"
},
{
"from": "gpt",
"value": "cwebp path/to/image_file -o path/to/output.webp -noalpha"
}
] |
[
{
"from": "human",
"value": "Calculate the MD5 checksum for one or more files"
},
{
"from": "gpt",
"value": "md5sum path/to/file1 path/to/file2 ..."
}
] |
[
{
"from": "human",
"value": "Calculate and save the list of MD5 checksums to a file"
},
{
"from": "gpt",
"value": "md5sum path/to/file1 path/to/file2 ... > path/to/file.md5"
}
] |
[
{
"from": "human",
"value": "Calculate an MD5 checksum from `stdin`"
},
{
"from": "gpt",
"value": "command | md5sum"
}
] |
[
{
"from": "human",
"value": "Read a file of MD5 checksums and filenames and verify all files have matching checksums"
},
{
"from": "gpt",
"value": "md5sum [-c|--check] path/to/file.md5"
}
] |
[
{
"from": "human",
"value": "Only show a message for missing files or when verification fails"
},
{
"from": "gpt",
"value": "md5sum [-c|--check] --quiet path/to/file.md5"
}
] |
[
{
"from": "human",
"value": "Only show a message when verification fails, ignoring missing files"
},
{
"from": "gpt",
"value": "md5sum --ignore-missing [-c|--check] --quiet path/to/file.md5"
}
] |
[
{
"from": "human",
"value": "Check a known MD5 checksum of a file"
},
{
"from": "gpt",
"value": "echo known_md5_checksum_of_the_file path/to/file | md5sum [-c|--check]"
}
] |
[
{
"from": "human",
"value": "Print the options for the currently executing completion"
},
{
"from": "gpt",
"value": "compopt"
}
] |
[
{
"from": "human",
"value": "Print the completion options for given command"
},
{
"from": "gpt",
"value": "compopt command"
}
] |
[
{
"from": "human",
"value": "View documentation for the `if` keyword"
},
{
"from": "gpt",
"value": "tldr if"
}
] |
[
{
"from": "human",
"value": "Create a project"
},
{
"from": "gpt",
"value": "scrapy startproject project_name"
}
] |
[
{
"from": "human",
"value": "Create a spider (in project directory)"
},
{
"from": "gpt",
"value": "scrapy genspider spider_name website_domain"
}
] |
[
{
"from": "human",
"value": "Edit spider (in project directory)"
},
{
"from": "gpt",
"value": "scrapy edit spider_name"
}
] |
[
{
"from": "human",
"value": "Run spider (in project directory)"
},
{
"from": "gpt",
"value": "scrapy crawl spider_name"
}
] |
[
{
"from": "human",
"value": "Fetch a webpage as Scrapy sees it and print the source to `stdout`"
},
{
"from": "gpt",
"value": "scrapy fetch url"
}
] |
[
{
"from": "human",
"value": "Open a webpage in the default browser as Scrapy sees it (disable JavaScript for extra fidelity)"
},
{
"from": "gpt",
"value": "scrapy view url"
}
] |
[
{
"from": "human",
"value": "Open Scrapy shell for URL, which allows interaction with the page source in a Python shell (or IPython if available)"
},
{
"from": "gpt",
"value": "scrapy shell url"
}
] |
[
{
"from": "human",
"value": "List the services on a Docker daemon"
},
{
"from": "gpt",
"value": "docker service ls"
}
] |
[
{
"from": "human",
"value": "Create a new service"
},
{
"from": "gpt",
"value": "docker service create --name service_name image:tag"
}
] |
[
{
"from": "human",
"value": "Display detailed information about one or more services"
},
{
"from": "gpt",
"value": "docker service inspect service_name_or_ID1 service_name_or_ID2"
}
] |
[
{
"from": "human",
"value": "List the tasks of one or more services"
},
{
"from": "gpt",
"value": "docker service ps service_name_or_ID1 service_name_or_ID2 ..."
}
] |
[
{
"from": "human",
"value": "Scale to a specific number of replicas for a space-separated list of services"
},
{
"from": "gpt",
"value": "docker service scale service_name=count_of_replicas"
}
] |
[
{
"from": "human",
"value": "Remove one or more services"
},
{
"from": "gpt",
"value": "docker service rm service_name_or_ID1 service_name_or_ID2"
}
] |
[
{
"from": "human",
"value": "Generate a 2048bit prime number and display it in hexadecimal"
},
{
"from": "gpt",
"value": "openssl prime -generate -bits 2048 -hex"
}
] |
[
{
"from": "human",
"value": "Check if a given number is prime"
},
{
"from": "gpt",
"value": "openssl prime number"
}
] |
[
{
"from": "human",
"value": "Show the queued jobs of the default destination"
},
{
"from": "gpt",
"value": "lpq"
}
] |
[
{
"from": "human",
"value": "Show the queued jobs of all printers enforcing encryption"
},
{
"from": "gpt",
"value": "lpq -a -E"
}
] |
[
{
"from": "human",
"value": "Show the queued jobs in a long format"
},
{
"from": "gpt",
"value": "lpq -l"
}
] |
[
{
"from": "human",
"value": "Show the queued jobs of a specific printer or class"
},
{
"from": "gpt",
"value": "lpq -P destination[/instance]"
}
] |
[
{
"from": "human",
"value": "Show the queued jobs once every n seconds until the queue is empty"
},
{
"from": "gpt",
"value": "lpq +interval"
}
] |
[
{
"from": "human",
"value": "Start an authenticated session"
},
{
"from": "gpt",
"value": "kcadm.sh config credentials --server host --realm realm_name --user username --password password"
}
] |
[
{
"from": "human",
"value": "Create a user"
},
{
"from": "gpt",
"value": "kcadm.sh create users -s username=username -r realm_name"
}
] |
[
{
"from": "human",
"value": "List all realms"
},
{
"from": "gpt",
"value": "kcadm.sh get realms"
}
] |
[
{
"from": "human",
"value": "Update a realm with JSON config"
},
{
"from": "gpt",
"value": "kcadm.sh update realms/realm_name -f path/to/file.json"
}
] |
[
{
"from": "human",
"value": "Display an image on the command-line"
},
{
"from": "gpt",
"value": "imgcat path/to/file"
}
] |
[
{
"from": "human",
"value": "Log in with interactive prompt"
},
{
"from": "gpt",
"value": "gh auth login"
}
] |
[
{
"from": "human",
"value": "Log in with a token from `stdin` (created in <https://github.com/settings/tokens>)"
},
{
"from": "gpt",
"value": "echo your_token | gh auth login --with-token"
}
] |
[
{
"from": "human",
"value": "Check if you are logged in"
},
{
"from": "gpt",
"value": "gh auth status"
}
] |
[
{
"from": "human",
"value": "Log out"
},
{
"from": "gpt",
"value": "gh auth logout"
}
] |
[
{
"from": "human",
"value": "Log in with a specific GitHub Enterprise Server"
},
{
"from": "gpt",
"value": "gh auth login --hostname github.example.com"
}
] |
[
{
"from": "human",
"value": "Refresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously)"
},
{
"from": "gpt",
"value": "gh auth refresh"
}
] |
[
{
"from": "human",
"value": "Expand the permission scopes"
},
{
"from": "gpt",
"value": "gh auth refresh --scopes repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,..."
}
] |
[
{
"from": "human",
"value": "Start a REPL (interactive shell)"
},
{
"from": "gpt",
"value": "R"
}
] |
[
{
"from": "human",
"value": "Start R in vanilla mode (i.e. a blank session that doesn't save the workspace at the end)"
},
{
"from": "gpt",
"value": "R --vanilla"
}
] |
[
{
"from": "human",
"value": "Execute a file"
},
{
"from": "gpt",
"value": "R -f path/to/file.R"
}
] |
[
{
"from": "human",
"value": "Execute an R expression and then exit"
},
{
"from": "gpt",
"value": "R -e expr"
}
] |
[
{
"from": "human",
"value": "Run R with a debugger"
},
{
"from": "gpt",
"value": "R -d debugger"
}
] |
[
{
"from": "human",
"value": "Check R packages from package sources"
},
{
"from": "gpt",
"value": "R CMD check path/to/package_source"
}
] |
[
{
"from": "human",
"value": "Display version"
},
{
"from": "gpt",
"value": "R --version"
}
] |
[
{
"from": "human",
"value": "Print a list of files managed by `yadm` in the current directory"
},
{
"from": "gpt",
"value": "yadm list"
}
] |
[
{
"from": "human",
"value": "List all files managed by `yadm` completely"
},
{
"from": "gpt",
"value": "yadm list -a"
}
] |
[
{
"from": "human",
"value": "Add an API token to the local credential storage (located in `$CARGO_HOME/credentials.toml`)"
},
{
"from": "gpt",
"value": "cargo login"
}
] |
[
{
"from": "human",
"value": "Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>)"
},
{
"from": "gpt",
"value": "cargo login --registry name"
}
] |
[
{
"from": "human",
"value": "Invite the given user or team as an owner"
},
{
"from": "gpt",
"value": "cargo owner --add username|github:org_name:team_name crate"
}
] |
[
{
"from": "human",
"value": "Remove the given user or team as an owner"
},
{
"from": "gpt",
"value": "cargo owner --remove username|github:org_name:team_name crate"
}
] |
[
{
"from": "human",
"value": "List owners of a crate"
},
{
"from": "gpt",
"value": "cargo owner --list crate"
}
] |
[
{
"from": "human",
"value": "Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>)"
},
{
"from": "gpt",
"value": "cargo owner --registry name"
}
] |
[
{
"from": "human",
"value": "Set the maximum number of tasks allowed to run in parallel, in the default group"
},
{
"from": "gpt",
"value": "pueue parallel max_number_of_parallel_tasks"
}
] |
[
{
"from": "human",
"value": "Set the maximum number of tasks allowed to run in parallel, in a specific group"
},
{
"from": "gpt",
"value": "pueue parallel --group group_name maximum_number_of_parallel_tasks"
}
] |
[
{
"from": "human",
"value": "Reduce the specified image by the specified factor"
},
{
"from": "gpt",
"value": "pbmreduce n path/to/image.pbm > path/to/output.pbm"
}
] |
[
{
"from": "human",
"value": "Use simple thresholding when reducing"
},
{
"from": "gpt",
"value": "pbmreduce [-t|-threshold] n path/to/image.pbm > path/to/output.pbm"
}
] |
[
{
"from": "human",
"value": "Use the specified threshold for all quantizations"
},
{
"from": "gpt",
"value": "pbmreduce [-va|-value] 0.6 n path/to/image.pbm > path/to/output.pbm"
}
] |
[
{
"from": "human",
"value": "Generate a binding between C++ and Python"
},
{
"from": "gpt",
"value": "swig -c++ -python -o path/to/output_wrapper.cpp path/to/swig_file.i"
}
] |
[
{
"from": "human",
"value": "Generate a binding between C++ and Go"
},
{
"from": "gpt",
"value": "swig -go -cgo -intgosize 64 -c++ path/to/swig_file.i"
}
] |
[
{
"from": "human",
"value": "Generate a binding between C and Java"
},
{
"from": "gpt",
"value": "swig -java path/to/swig_file.i"
}
] |
[
{
"from": "human",
"value": "Generate a binding between C and Ruby and prefix the Ruby module with `foo::bar::`"
},
{
"from": "gpt",
"value": "swig -ruby -prefix \"foo::bar::\" path/to/swig_file.i"
}
] |
[
{
"from": "human",
"value": "Query a CSV file by specifying the delimiter as ','"
},
{
"from": "gpt",
"value": "q -d',' \"SELECT * from path/to/file\""
}
] |
[
{
"from": "human",
"value": "Query a TSV file"
},
{
"from": "gpt",
"value": "q -t \"SELECT * from path/to/file\""
}
] |
[
{
"from": "human",
"value": "Query file with header row"
},
{
"from": "gpt",
"value": "q -ddelimiter -H \"SELECT * from path/to/file\""
}
] |
[
{
"from": "human",
"value": "Read data from `stdin`; '-' in the query represents the data from `stdin`"
},
{
"from": "gpt",
"value": "output | q \"select * from -\""
}
] |
[
{
"from": "human",
"value": "Join two files (aliased as `f1` and `f2` in the example) on column `c1`, a common column"
},
{
"from": "gpt",
"value": "q \"SELECT * FROM path/to/file f1 JOIN path/to/other_file f2 ON (f1.c1 = f2.c1)\""
}
] |
[
{
"from": "human",
"value": "Format output using an output delimiter with an output header line (Note: command will output column names based on the input file header or the column aliases overridden in the query)"
},
{
"from": "gpt",
"value": "q -Ddelimiter -O \"SELECT column as alias from path... |
[
{
"from": "human",
"value": "Repeatedly run a command and show the result"
},
{
"from": "gpt",
"value": "watch command"
}
] |
[
{
"from": "human",
"value": "Re-run a command every 60 seconds"
},
{
"from": "gpt",
"value": "watch [-n|--interval] 60 command"
}
] |
[
{
"from": "human",
"value": "Monitor disk space, highlighting differences as they appear"
},
{
"from": "gpt",
"value": "watch [-d|--differences] df"
}
] |
[
{
"from": "human",
"value": "Repeatedly run a pipeline and show the result"
},
{
"from": "gpt",
"value": "watch \"command_1 | command_2 | command_3\""
}
] |
[
{
"from": "human",
"value": "Exit `watch` if the visible output changes"
},
{
"from": "gpt",
"value": "watch [-g|--chgexit] lsblk"
}
] |
[
{
"from": "human",
"value": "Interpret terminal control characters"
},
{
"from": "gpt",
"value": "watch [-c|--color] ls --color=always"
}
] |
[
{
"from": "human",
"value": "Search for lines matching the list of search strings separated by new lines in a compressed file (case-sensitive)"
},
{
"from": "gpt",
"value": "bzfgrep \"search_string\" path/to/file"
}
] |
[
{
"from": "human",
"value": "Search for lines matching the list of search strings separated by new lines in a compressed file (case-insensitive)"
},
{
"from": "gpt",
"value": "bzfgrep --ignore-case \"search_string\" path/to/file"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.