mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 20:48:35 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/chatgpt
Normal file
33
tldr/chatgpt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# chatgpt
|
||||||
|
|
||||||
|
> Shell script to use OpenAI's ChatGPT and DALL-E from the terminal.
|
||||||
|
> More information: <https://github.com/0xacx/chatGPT-shell-cli>.
|
||||||
|
|
||||||
|
- Start in chat mode:
|
||||||
|
|
||||||
|
`chatgpt`
|
||||||
|
|
||||||
|
- Give a [p]rompt to answer to:
|
||||||
|
|
||||||
|
`chatgpt --prompt "{{What is the regex to match an email address?}}"`
|
||||||
|
|
||||||
|
- Start in chat mode using a specific [m]odel (default is `gpt-3.5-turbo`):
|
||||||
|
|
||||||
|
`chatgpt --model {{gpt-4}}`
|
||||||
|
|
||||||
|
- Start in chat mode with an [i]nitial prompt:
|
||||||
|
|
||||||
|
`chatgpt --init-prompt "{{You are Rick, from Rick and Morty. Respond to questions using his mannerism and include insulting jokes.}}"`
|
||||||
|
|
||||||
|
- Pipe the result of a command to `chatgpt` as a prompt:
|
||||||
|
|
||||||
|
`echo "{{How to view running processes on Ubuntu?}}" | chatgpt`
|
||||||
|
|
||||||
|
- Generate an image using DALL-E:
|
||||||
|
|
||||||
|
`chatgpt --prompt "{{image: A white cat}}"`
|
||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# docker container remove
|
# docker container remove
|
||||||
|
|
||||||
> This command is an alias of `docker rm`.
|
> This command is an alias of `docker rm`.
|
||||||
> More information: <https://docs.docker.com/engine/reference/commandline/rm>.
|
> More information: <https://docs.docker.com/reference/cli/docker/container/rm/>.
|
||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# docker container rm
|
# docker container rm
|
||||||
|
|
||||||
> This command is an alias of `docker rm`.
|
> This command is an alias of `docker rm`.
|
||||||
> More information: <https://docs.docker.com/engine/reference/commandline/rm>.
|
> More information: <https://docs.docker.com/reference/cli/docker/container/rm/>.
|
||||||
|
|
||||||
- View documentation for the original command:
|
- View documentation for the original command:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# docker rm
|
# docker rm
|
||||||
|
|
||||||
> Remove containers.
|
> Remove containers.
|
||||||
> More information: <https://docs.docker.com/engine/reference/commandline/rm>.
|
> More information: <https://docs.docker.com/reference/cli/docker/container/rm/>.
|
||||||
|
|
||||||
- Remove containers:
|
- Remove containers:
|
||||||
|
|
||||||
|
|||||||
25
tldr/libreoffice
Normal file
25
tldr/libreoffice
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# libreoffice
|
||||||
|
|
||||||
|
> CLI for the powerful and free office suite LibreOffice.
|
||||||
|
> More information: <https://www.libreoffice.org/>.
|
||||||
|
|
||||||
|
- Open one or more files in read-only mode:
|
||||||
|
|
||||||
|
`libreoffice --view {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
|
- Display the content of one or more files:
|
||||||
|
|
||||||
|
`libreoffice --cat {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
|
- Print files using a specific printer:
|
||||||
|
|
||||||
|
`libreoffice --pt {{printer_name}} {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
|
- Convert all `.doc` files in current directory to PDF:
|
||||||
|
|
||||||
|
`libreoffice --convert-to {{pdf}} {{*.doc}}`
|
||||||
2
tldr/npm
2
tldr/npm
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Download the latest version of a package and install it globally:
|
- Download the latest version of a package and install it globally:
|
||||||
|
|
||||||
`npm install {{-g|--global}} {{package_name}}0`
|
`npm install {{-g|--global}} {{package_name}}`
|
||||||
|
|
||||||
- Uninstall a package and remove it from the list of dependencies in `package.json`:
|
- Uninstall a package and remove it from the list of dependencies in `package.json`:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user