conversations
listlengths
2
2
[ { "from": "human", "value": "Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one via the `pdftk` command" }, { "from": "gpt", "value": "`pdftk {{input.pdf}} cat {{1-3 5 6-10}} output {{output.pdf}}`" } ]
[ { "from": "human", "value": "Merge (concatenate) a list of PDF files and save the result as another one via the `pdftk` command" }, { "from": "gpt", "value": "`pdftk {{file1.pdf file2.pdf ...}} cat output {{output.pdf}}`" } ]
[ { "from": "human", "value": "Split each page of a PDF file into a separate file, with a given filename output pattern via the `pdftk` command" }, { "from": "gpt", "value": "`pdftk {{input.pdf}} burst output {{out_%d.pdf}}`" } ]
[ { "from": "human", "value": "Rotate all pages by 180 degrees clockwise via the `pdftk` command" }, { "from": "gpt", "value": "`pdftk {{input.pdf}} cat {{1-endsouth}} output {{output.pdf}}`" } ]
[ { "from": "human", "value": "Rotate third page by 90 degrees clockwise and leave others unchanged via the `pdftk` command" }, { "from": "gpt", "value": "`pdftk {{input.pdf}} cat {{1-2 3east 4-end}} output {{output.pdf}}`" } ]
[ { "from": "human", "value": "Tell me about `pdftocairo`." }, { "from": "gpt", "value": "Convert PDF files to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo.\nMore information: <https://poppler.freedesktop.org>.\n" } ]
[ { "from": "human", "value": "Convert a PDF file to JPEG via the `pdftocairo` command" }, { "from": "gpt", "value": "`pdftocairo {{path/to/file.pdf}} -jpeg`" } ]
[ { "from": "human", "value": "Convert to PDF expanding the output to fill the paper via the `pdftocairo` command" }, { "from": "gpt", "value": "`pdftocairo {{path/to/file.pdf}} {{output.pdf}} -pdf -expand`" } ]
[ { "from": "human", "value": "Convert to SVG specifying the first/last page to convert via the `pdftocairo` command" }, { "from": "gpt", "value": "`pdftocairo {{path/to/file.pdf}} {{output.svg}} -svg -f {{first_page}} -l {{last_page}}`" } ]
[ { "from": "human", "value": "Convert to PNG with 200ppi resolution via the `pdftocairo` command" }, { "from": "gpt", "value": "`pdftocairo {{path/to/file.pdf}} {{output.png}} -png -r 200`" } ]
[ { "from": "human", "value": "Convert to grayscale TIFF setting paper size to A3 via the `pdftocairo` command" }, { "from": "gpt", "value": "`pdftocairo {{path/to/file.pdf}} -tiff -gray -paper A3`" } ]
[ { "from": "human", "value": "Convert to PNG cropping x and y pixels from the top-left corner via the `pdftocairo` command" }, { "from": "gpt", "value": "`pdftocairo {{path/to/file.pdf}} -png -x {{x_pixels}} -y {{y_pixels}}`" } ]
[ { "from": "human", "value": "Tell me about `pdftotext`." }, { "from": "gpt", "value": "Convert PDF files to plain text format.\nMore information: <https://www.xpdfreader.com/pdftotext-man.html>.\n" } ]
[ { "from": "human", "value": "Convert `filename.pdf` to plain text and print it to `stdout` via the `pdftotext` command" }, { "from": "gpt", "value": "`pdftotext {{filename.pdf}} -`" } ]
[ { "from": "human", "value": "Convert `filename.pdf` to plain text and save it as `filename.txt` via the `pdftotext` command" }, { "from": "gpt", "value": "`pdftotext {{filename.pdf}}`" } ]
[ { "from": "human", "value": "Convert `filename.pdf` to plain text and preserve the layout via the `pdftotext` command" }, { "from": "gpt", "value": "`pdftotext -layout {{filename.pdf}}`" } ]
[ { "from": "human", "value": "Convert `input.pdf` to plain text and save it as `output.txt` via the `pdftotext` command" }, { "from": "gpt", "value": "`pdftotext {{input.pdf}} {{output.txt}}`" } ]
[ { "from": "human", "value": "Convert pages 2, 3 and 4 of `input.pdf` to plain text and save them as `output.txt` via the `pdftotext` command" }, { "from": "gpt", "value": "`pdftotext -f {{2}} -l {{4}} {{input.pdf}} {{output.txt}}`" } ]
[ { "from": "human", "value": "Tell me about `pdfunite`." }, { "from": "gpt", "value": "PDF merging utility.\nMore information: <https://github.com/mtgrosser/pdfunite>.\n" } ]
[ { "from": "human", "value": "Merge 2 PDFs into a single PDF via the `pdfunite` command" }, { "from": "gpt", "value": "`pdfunite {{path/to/fileA.pdf}} {{path/to/fileB.pdf}} {{path/to/merged_output.pdf}}`" } ]
[ { "from": "human", "value": "Merge a directory of PDFs into a single PDF via the `pdfunite` command" }, { "from": "gpt", "value": "`pdfunite {{path/to/directory/*.pdf}} {{path/to/merged_output.pdf}}`" } ]
[ { "from": "human", "value": "Tell me about `peco`." }, { "from": "gpt", "value": "Interactive filtering tool.\nMore information: <https://github.com/peco/peco>.\n" } ]
[ { "from": "human", "value": "Start `peco` on all files in the specified directory via the `peco` command" }, { "from": "gpt", "value": "`find {{path/to/directory}} -type f | peco`" } ]
[ { "from": "human", "value": "Start `peco` for running processes via the `peco` command" }, { "from": "gpt", "value": "`ps aux | peco`" } ]
[ { "from": "human", "value": "Start `peco` with a specified query via the `peco` command" }, { "from": "gpt", "value": "`peco --query \"{{query}}\"`" } ]
[ { "from": "human", "value": "Tell me about `pee`." }, { "from": "gpt", "value": "Tee `stdin` to pipes.\nSee also: `tee`.\nMore information: <https://joeyh.name/code/moreutils/>.\n" } ]
[ { "from": "human", "value": "Run each command, providing each one with a distinct copy of `stdin` via the `pee` command" }, { "from": "gpt", "value": "`pee {{command1 command2 ...}}`" } ]
[ { "from": "human", "value": "Write a copy of `stdin` to `stdout` (like `tee`) via the `pee` command" }, { "from": "gpt", "value": "`pee cat {{command1 command2 ...}}`" } ]
[ { "from": "human", "value": "Immediately terminate upon SIGPIPEs and write errors via the `pee` command" }, { "from": "gpt", "value": "`pee --no-ignore-sigpipe --no-ignore-write-errors {{command1 command2 ...}}`" } ]
[ { "from": "human", "value": "Tell me about `peerflix`." }, { "from": "gpt", "value": "Stream video- or audio-based torrents to a media player.\nMore information: <https://github.com/mafintosh/peerflix>.\n" } ]
[ { "from": "human", "value": "Stream the largest media file in a torrent via the `peerflix` command" }, { "from": "gpt", "value": "`peerflix \"{{torrent_url|magnet_link}}\"`" } ]
[ { "from": "human", "value": "List all streamable files contained in a torrent (given as a magnet link) via the `peerflix` command" }, { "from": "gpt", "value": "`peerflix \"{{magnet:?xt=urn:btih:0123456789abcdef0123456789abcdef01234567}}\" --list`" } ]
[ { "from": "human", "value": "Stream the largest file in a torrent, given as a torrent URL, to VLC via the `peerflix` command" }, { "from": "gpt", "value": "`peerflix \"{{http://example.net/music.torrent}}\" --vlc`" } ]
[ { "from": "human", "value": "Stream the largest file in a torrent to MPlayer, with subtitles via the `peerflix` command" }, { "from": "gpt", "value": "`peerflix \"{{torrent_url|magnet_link}}\" --mplayer --subtitles {{subtitle-file.srt}}`" } ]
[ { "from": "human", "value": "Stream all files from a torrent to Airplay via the `peerflix` command" }, { "from": "gpt", "value": "`peerflix \"{{torrent_url|magnet_link}}\" --all --airplay`" } ]
[ { "from": "human", "value": "Tell me about `peerindex`." }, { "from": "gpt", "value": "Inspect MRT TABLE_DUMPV2 Peer Index Table.\nCan read files compressed with `gzip`, `bzip2` and `xz`.\nMore information: <https://codeberg.org/1414codeforge/ubgpsuite>.\n" } ]
[ { "from": "human", "value": "List all peers via the `peerindex` command" }, { "from": "gpt", "value": "`peerindex {{master6.mrt}}`" } ]
[ { "from": "human", "value": "Display all peers that have provided routing information via the `peerindex` command" }, { "from": "gpt", "value": "`peerindex -r {{master6.mrt}}`" } ]
[ { "from": "human", "value": "Tell me about `peludna-prognoza`." }, { "from": "gpt", "value": "Fetch pollen measurement data for Croatian cities from your terminal using Pliva's allergies data API.\nMore information: <https://github.com/vladimyr/peludna-prognoza>.\n" } ]
[ { "from": "human", "value": "Start an interactive search for a city and fetch data for it via the `peludna-prognoza` command" }, { "from": "gpt", "value": "`peludna-prognoza`" } ]
[ { "from": "human", "value": "Fetch data for a city via the `peludna-prognoza` command" }, { "from": "gpt", "value": "`peludna-prognoza \"{{city}}\"`" } ]
[ { "from": "human", "value": "Display data in a machine-readable format via the `peludna-prognoza` command" }, { "from": "gpt", "value": "`peludna-prognoza \"{{city}}\" --{{json|xml}}`" } ]
[ { "from": "human", "value": "Display the pollen measurement page for a city at <https://plivazdravlje.hr> in the default web browser via the `peludna-prognoza` command" }, { "from": "gpt", "value": "`peludna-prognoza \"{{city}}\" --web`" } ]
[ { "from": "human", "value": "Tell me about `perlbrew`." }, { "from": "gpt", "value": "Manage Perl installations in the home directory.\nSee also: `asdf`.\nMore information: <https://github.com/gugod/App-perlbrew>.\n" } ]
[ { "from": "human", "value": "Initialize a `perlbrew` environment via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew init`" } ]
[ { "from": "human", "value": "List available Perl versions via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew available`" } ]
[ { "from": "human", "value": "Install/uninstall a Perl version via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew {{install|uninstall}} {{version}}`" } ]
[ { "from": "human", "value": "List perl installations via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew list`" } ]
[ { "from": "human", "value": "Switch to an installation and set it as default via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew switch perl-{{version}}`" } ]
[ { "from": "human", "value": "Use the system Perl again via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew off`" } ]
[ { "from": "human", "value": "List installed CPAN modules for the installation in use via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew list-modules`" } ]
[ { "from": "human", "value": "Clone CPAN modules from one installation to another via the `perlbrew` command" }, { "from": "gpt", "value": "`perlbrew clone-modules {{source_installation}} {{destination_installation}}`" } ]
[ { "from": "human", "value": "Tell me about `perldoc`." }, { "from": "gpt", "value": "Look up Perl documentation in `.pod` format.\nMore information: <https://perldoc.perl.org/perldoc>.\n" } ]
[ { "from": "human", "value": "View documentation for a builtin [f]unction, a [v]ariable or an [a]PI via the `perldoc` command" }, { "from": "gpt", "value": "`perldoc -{{f|v|a}} {{name}}`" } ]
[ { "from": "human", "value": "Search in the question headings of Perl FAQ via the `perldoc` command" }, { "from": "gpt", "value": "`perldoc -q {{regex}}`" } ]
[ { "from": "human", "value": "Send output directly to `stdout` (by default, it is send to a pager) via the `perldoc` command" }, { "from": "gpt", "value": "`perldoc -T {{page|module|program|URL}}`" } ]
[ { "from": "human", "value": "Specify the language code of the desired translation via the `perldoc` command" }, { "from": "gpt", "value": "`perldoc -L {{language_code}} {{page|module|program|URL}}`" } ]
[ { "from": "human", "value": "Tell me about `perl`." }, { "from": "gpt", "value": "The Perl 5 language interpreter.\nMore information: <https://www.perl.org>.\n" } ]
[ { "from": "human", "value": "Print lines from `stdin` [m/] matching regex1 and case insensitive [/i] regex2 via the `perl` command" }, { "from": "gpt", "value": "`perl -n -e 'print if m/{{regex1}}/ and m/{{regex2}}/i'`" } ]
[ { "from": "human", "value": "Say [-E] first match group, using a regexp, ignoring space in regex [/x] via the `perl` command" }, { "from": "gpt", "value": "`perl -n -E 'say $1 if m/{{before}} ( {{group_regex}} ) {{after}}/x'`" } ]
[ { "from": "human", "value": "[-i]n-place, with backup, [s/] substitute all occurrence [/g] of regex with replacement via the `perl` command" }, { "from": "gpt", "value": "`perl -i'.bak' -p -e 's/{{regex}}/{{replacement}}/g' {{path/to/files}}`" } ]
[ { "from": "human", "value": "Use perl's inline documentation, some pages also available via manual pages on Linux via the `perl` command" }, { "from": "gpt", "value": "`perldoc perlrun ; perldoc module ; perldoc -f splice; perldoc -q perlfaq1`" } ]
[ { "from": "human", "value": "Tell me about `pest`." }, { "from": "gpt", "value": "A PHP testing framework with a focus on simplicity.\nMore information: <https://pestphp.com>.\n" } ]
[ { "from": "human", "value": "Initialize a standard Pest configuration in the current directory via the `pest` command" }, { "from": "gpt", "value": "`pest --init`" } ]
[ { "from": "human", "value": "Run tests in the current directory via the `pest` command" }, { "from": "gpt", "value": "`pest`" } ]
[ { "from": "human", "value": "Run tests annotated with the given group via the `pest` command" }, { "from": "gpt", "value": "`pest --group {{name}}`" } ]
[ { "from": "human", "value": "Run tests and print the coverage report to `stdout` via the `pest` command" }, { "from": "gpt", "value": "`pest --coverage`" } ]
[ { "from": "human", "value": "Run tests with coverage and fail if the coverage is less than the minimum percentage via the `pest` command" }, { "from": "gpt", "value": "`pest --coverage --min={{80}}`" } ]
[ { "from": "human", "value": "Run tests in parallel via the `pest` command" }, { "from": "gpt", "value": "`pest --parallel`" } ]
[ { "from": "human", "value": "Run tests with mutations via the `pest` command" }, { "from": "gpt", "value": "`pest --mutate`" } ]
[ { "from": "human", "value": "Tell me about `pfetch`." }, { "from": "gpt", "value": "Display system information.\nMore information: <https://github.com/dylanaraps/pfetch>.\n" } ]
[ { "from": "human", "value": "Display the ASCII art and default fields via the `pfetch` command" }, { "from": "gpt", "value": "`pfetch`" } ]
[ { "from": "human", "value": "Display only the ASCII art and color palette fields via the `pfetch` command" }, { "from": "gpt", "value": "`PF_INFO=\"{{ascii palette}}\" pfetch`" } ]
[ { "from": "human", "value": "Display all possible fields via the `pfetch` command" }, { "from": "gpt", "value": "`PF_INFO=\"{{ascii title os host kernel uptime pkgs memory shell editor wm de palette}}\" pfetch`" } ]
[ { "from": "human", "value": "Display a different username and hostname via the `pfetch` command" }, { "from": "gpt", "value": "`USER=\"{{user}}\" HOSTNAME=\"{{hostname}}\" pfetch`" } ]
[ { "from": "human", "value": "Display without colors via the `pfetch` command" }, { "from": "gpt", "value": "`PF_COLOR={{0}} pfetch`" } ]
[ { "from": "human", "value": "Tell me about `pgbench`." }, { "from": "gpt", "value": "Run a benchmark test on PostgreSQL.\nMore information: <https://www.postgresql.org/docs/10/pgbench.html>.\n" } ]
[ { "from": "human", "value": "Initialize a database with a scale factor of 50 times the default size via the `pgbench` command" }, { "from": "gpt", "value": "`pgbench --initialize --scale={{50}} {{database_name}}`" } ]
[ { "from": "human", "value": "Benchmark a database with 10 clients, 2 worker threads, and 10,000 transactions per client via the `pgbench` command" }, { "from": "gpt", "value": "`pgbench --client={{10}} --jobs={{2}} --transactions={{10000}} {{database_name}}`" } ]
[ { "from": "human", "value": "Tell me about `pg_ctl`." }, { "from": "gpt", "value": "Utility for controlling a PostgreSQL server and database cluster.\nMore information: <https://www.postgresql.org/docs/current/app-pg-ctl.html>.\n" } ]
[ { "from": "human", "value": "Initialize a new PostgreSQL database cluster via the `pg_ctl` command" }, { "from": "gpt", "value": "`pg_ctl -D {{data_directory}} init`" } ]
[ { "from": "human", "value": "Start a PostgreSQL server via the `pg_ctl` command" }, { "from": "gpt", "value": "`pg_ctl -D {{data_directory}} start`" } ]
[ { "from": "human", "value": "Stop a PostgreSQL server via the `pg_ctl` command" }, { "from": "gpt", "value": "`pg_ctl -D {{data_directory}} stop`" } ]
[ { "from": "human", "value": "Restart a PostgreSQL server via the `pg_ctl` command" }, { "from": "gpt", "value": "`pg_ctl -D {{data_directory}} restart`" } ]
[ { "from": "human", "value": "Reload the PostgreSQL server configuration via the `pg_ctl` command" }, { "from": "gpt", "value": "`pg_ctl -D {{data_directory}} reload`" } ]
[ { "from": "human", "value": "Tell me about `pg_dumpall`." }, { "from": "gpt", "value": "Extract a PostgreSQL database cluster into a script file or other archive file.\nMore information: <https://www.postgresql.org/docs/current/app-pg-dumpall.html>.\n" } ]
[ { "from": "human", "value": "Dump all databases via the `pg_dumpall` command" }, { "from": "gpt", "value": "`pg_dumpall > {{path/to/file.sql}}`" } ]
[ { "from": "human", "value": "Dump all databases using a specific username via the `pg_dumpall` command" }, { "from": "gpt", "value": "`pg_dumpall {{[-U|--username]}} {{username}} > {{path/to/file.sql}}`" } ]
[ { "from": "human", "value": "Same as above, customize host and port via the `pg_dumpall` command" }, { "from": "gpt", "value": "`pg_dumpall {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} > {{output_file.sql}}`" } ]
[ { "from": "human", "value": "Dump only database data into an SQL-script file via the `pg_dumpall` command" }, { "from": "gpt", "value": "`pg_dumpall {{[-a|--data-only]}} > {{path/to/file.sql}}`" } ]
[ { "from": "human", "value": "Dump only schema (data definitions) into an SQL-script file via the `pg_dumpall` command" }, { "from": "gpt", "value": "`pg_dumpall {{[-s|--schema-only]}} > {{output_file.sql}}`" } ]
[ { "from": "human", "value": "Tell me about `pg_dump`." }, { "from": "gpt", "value": "Extract a PostgreSQL database into a script file or other archive file.\nMore information: <https://www.postgresql.org/docs/current/app-pgdump.html>.\n" } ]
[ { "from": "human", "value": "Dump database into an SQL-script file via the `pg_dump` command" }, { "from": "gpt", "value": "`pg_dump {{db_name}} > {{output_file.sql}}`" } ]
[ { "from": "human", "value": "Same as above, customize username via the `pg_dump` command" }, { "from": "gpt", "value": "`pg_dump -U {{username}} {{db_name}} > {{output_file.sql}}`" } ]
[ { "from": "human", "value": "Same as above, customize host and port via the `pg_dump` command" }, { "from": "gpt", "value": "`pg_dump -h {{host}} -p {{port}} {{db_name}} > {{output_file.sql}}`" } ]
[ { "from": "human", "value": "Dump a database into a custom-format archive file via the `pg_dump` command" }, { "from": "gpt", "value": "`pg_dump -Fc {{db_name}} > {{output_file.dump}}`" } ]
[ { "from": "human", "value": "Dump only database data into an SQL-script file via the `pg_dump` command" }, { "from": "gpt", "value": "`pg_dump -a {{db_name}} > {{path/to/output_file.sql}}`" } ]
[ { "from": "human", "value": "Dump only schema (data definitions) into an SQL-script file via the `pg_dump` command" }, { "from": "gpt", "value": "`pg_dump -s {{db_name}} > {{path/to/output_file.sql}}`" } ]
[ { "from": "human", "value": "Tell me about `pg_isready`." }, { "from": "gpt", "value": "Check the connection status of a PostgreSQL server.\nMore information: <https://www.postgresql.org/docs/current/app-pg-isready.html>.\n" } ]
[ { "from": "human", "value": "Check connection via the `pg_isready` command" }, { "from": "gpt", "value": "`pg_isready`" } ]