mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 10:46:49 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,33 +5,33 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ansible-galaxy
|
||||
|
||||
> Create and manage Ansible roles.
|
||||
> Perform various Ansible Role and Collection related operations.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
|
||||
|
||||
- Install a role:
|
||||
- List installed roles or collections:
|
||||
|
||||
`ansible-galaxy install {{username}}.{{role_name}}`
|
||||
`ansible-galaxy {{role|collection}} list`
|
||||
|
||||
- Remove a role:
|
||||
- Search for a role with various levels of verbosely (`-v` should be specified at the end):
|
||||
|
||||
`ansible-galaxy remove {{username}}.{{role_name}}`
|
||||
`ansible-galaxy role search {{keyword}} -v{{vvvvv}}`
|
||||
|
||||
- List installed roles:
|
||||
- Install or remove role(s):
|
||||
|
||||
`ansible-galaxy list`
|
||||
|
||||
- Search for a given role:
|
||||
|
||||
`ansible-galaxy search {{role_name}}`
|
||||
`ansible-galaxy role {{install|remove}} {{role_name1 role_name2 ...}}`
|
||||
|
||||
- Create a new role:
|
||||
|
||||
`ansible-galaxy init {{role_name}}`
|
||||
`ansible-galaxy role init {{role_name}}`
|
||||
|
||||
- Get information about a user role:
|
||||
- Get information about a role:
|
||||
|
||||
`ansible-galaxy role info {{username}}.{{role_name}}`
|
||||
`ansible-galaxy role info {{role_name}}`
|
||||
|
||||
- Get information about a collection:
|
||||
- Install or remove collection(s):
|
||||
|
||||
`ansible-galaxy collection info {{username}}.{{collection_name}}`
|
||||
`ansible-galaxy collection {{install|remove}} {{collection_name1 collection_name2 ...}}`
|
||||
|
||||
- Display help about roles or collections:
|
||||
|
||||
`ansible-galaxy {{role|collection}} {{-h|--help}}`
|
||||
|
||||
13
tldr/brave
Normal file
13
tldr/brave
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# brave
|
||||
|
||||
> This command is an alias of `chromium`.
|
||||
> More information: <https://support.brave.com/hc/en-us/articles/360044860011-How-Do-I-Use-Command-Line-Flags-in-Brave>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr chromium`
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# chromium
|
||||
|
||||
> Open-source web browser principally developed and maintained by Google.
|
||||
> Note: You may need to replace the `chromium` command with your desired web browser, such as `brave`, `google-chrome`, `opera`, or `vivaldi`.
|
||||
> More information: <https://www.chromium.org/developers/how-tos/run-chromium-with-flags/>.
|
||||
|
||||
- Open a specific URL or file:
|
||||
|
||||
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`crane export {{image_name}} {{path/to/tarball}}`
|
||||
|
||||
- Read image from stdin:
|
||||
- Read image from `stdin`:
|
||||
|
||||
`crane export - {{path/to/filename}}`
|
||||
|
||||
13
tldr/linux/google-chrome-stable
Normal file
13
tldr/linux/google-chrome-stable
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# google-chrome-stable
|
||||
|
||||
> This command is an alias of `chromium`.
|
||||
> More information: <https://chrome.google.com>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr chromium`
|
||||
13
tldr/linux/opera-stable
Normal file
13
tldr/linux/opera-stable
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# opera-stable
|
||||
|
||||
> This command is an alias of `chromium`.
|
||||
> More information: <https://opera.com>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr chromium`
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`qm guest exec {{vm_id}} {{argument1 argument2...}} --timeout {{10}}`
|
||||
|
||||
- Execute a specific command via a guest agent and forward input from STDIN until EOF to the guest agent:
|
||||
- Execute a specific command via a guest agent and forward input from `stdin` until EOF to the guest agent:
|
||||
|
||||
`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --pass-stdin 1`
|
||||
|
||||
13
tldr/linux/vivaldi-stable
Normal file
13
tldr/linux/vivaldi-stable
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vivaldi-stable
|
||||
|
||||
> This command is an alias of `chromium`.
|
||||
> More information: <https://vivaldi.com>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr chromium`
|
||||
43
tldr/microsoft-edge
Normal file
43
tldr/microsoft-edge
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# microsoft-edge
|
||||
|
||||
> Modern web browser developed by Microsoft based on the Chromium web browser developed by Google.
|
||||
> This command is available instead as `msedge` for Windows.
|
||||
> Note: Additional command arguments from `chromium` may also be usable to control Microsoft Edge.
|
||||
> More information: <https://microsoft.com/edge>.
|
||||
|
||||
- Open a specific URL or file:
|
||||
|
||||
`microsoft-edge {{https://example.com|path/to/file.html}}`
|
||||
|
||||
- Open in InPrivate mode:
|
||||
|
||||
`microsoft-edge --inprivate {{example.com}}`
|
||||
|
||||
- Open in a new window:
|
||||
|
||||
`microsoft-edge --new-window {{example.com}}`
|
||||
|
||||
- Open in application mode (without toolbars, URL bar, buttons, etc.):
|
||||
|
||||
`microsoft-edge --app={{https://example.com}}`
|
||||
|
||||
- Use a proxy server:
|
||||
|
||||
`microsoft-edge --proxy-server="{{socks5://hostname:66}}" {{example.com}}`
|
||||
|
||||
- Open with a custom profile directory:
|
||||
|
||||
`microsoft-edge --user-data-dir={{path/to/directory}}`
|
||||
|
||||
- Open without CORS validation (useful to test an API):
|
||||
|
||||
`microsoft-edge --user-data-dir={{path/to/directory}} --disable-web-security`
|
||||
|
||||
- Open with a DevTools window for each tab opened:
|
||||
|
||||
`microsoft-edge --auto-open-devtools-for-tabs`
|
||||
17
tldr/msedge
Normal file
17
tldr/msedge
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# msedge
|
||||
|
||||
> The Microsoft Edge command-line utility is available as `msedge` on Windows and `microsoft-edge` for other platforms.
|
||||
> More information: <https://microsoft.com/edge>.
|
||||
|
||||
- View the documentation for Microsoft Edge for Windows:
|
||||
|
||||
`tldr -p windows msedge`
|
||||
|
||||
- View the documentation for Microsoft Edge for other platforms:
|
||||
|
||||
`tldr -p common microsoft-edge`
|
||||
2
tldr/npm
2
tldr/npm
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manage Node.js projects and their module dependencies.
|
||||
> More information: <https://www.npmjs.com>.
|
||||
|
||||
- Create a `package.json` file with default values (omit --yes to do it interactively):
|
||||
- Create a `package.json` file with default values (omit `--yes` to do it interactively):
|
||||
|
||||
`npm init {{-y|--yes}}`
|
||||
|
||||
|
||||
29
tldr/npm-doctor
Normal file
29
tldr/npm-doctor
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm doctor
|
||||
|
||||
> Check the health of the npm environment.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-doctor>.
|
||||
|
||||
- Run all default health checks for npm:
|
||||
|
||||
`npm doctor`
|
||||
|
||||
- Check the connection to the npm registry:
|
||||
|
||||
`npm doctor connection`
|
||||
|
||||
- Check the versions of Node.js and npm in use:
|
||||
|
||||
`npm doctor versions`
|
||||
|
||||
- Check for permissions issues with npm directories and cache:
|
||||
|
||||
`npm doctor permissions`
|
||||
|
||||
- Validate the cached package files and checksums:
|
||||
|
||||
`npm doctor cache`
|
||||
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`npm token create --publish`
|
||||
|
||||
- Automatically configure an npm token in your global .npmrc file when you log in:
|
||||
- Automatically configure an npm token in your global `.npmrc` file when you log in:
|
||||
|
||||
`npm login`
|
||||
|
||||
|
||||
37
tldr/npm-view
Normal file
37
tldr/npm-view
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm view
|
||||
|
||||
> View registry information about a package.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-view>.
|
||||
|
||||
- View information about the latest version of a package:
|
||||
|
||||
`npm view {{package}}`
|
||||
|
||||
- View information about a specific version of a package:
|
||||
|
||||
`npm view {{package}}@{{version}}`
|
||||
|
||||
- View all available versions of a package:
|
||||
|
||||
`npm view {{package}} versions`
|
||||
|
||||
- View the description of a package:
|
||||
|
||||
`npm view {{package}} description`
|
||||
|
||||
- View the dependencies of the latest version of a package:
|
||||
|
||||
`npm view {{package}} dependencies`
|
||||
|
||||
- View the repository URL of a package:
|
||||
|
||||
`npm view {{package}} repository`
|
||||
|
||||
- View the maintainers of a package:
|
||||
|
||||
`npm view {{package}} maintainers`
|
||||
13
tldr/opera
Normal file
13
tldr/opera
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# opera
|
||||
|
||||
> This command is an alias of `chromium`.
|
||||
> More information: <https://opera.com>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr chromium`
|
||||
41
tldr/oxipng
Normal file
41
tldr/oxipng
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# oxipng
|
||||
|
||||
> Losslessly improve compression of PNG files.
|
||||
> More information: <https://github.com/shssoichiro/oxipng>.
|
||||
|
||||
- Compress a PNG file (overwrites the file by default):
|
||||
|
||||
`oxipng {{path/to/file.png}}`
|
||||
|
||||
- Compress a PNG file and save the output to a new file:
|
||||
|
||||
`oxipng --out {{path/to/output.png}} {{path/to/file.png}}`
|
||||
|
||||
- Compress all PNG files in the current directory using multiple threads:
|
||||
|
||||
`oxipng "*.png"`
|
||||
|
||||
- Compress a file with a set optimization level (default is 2):
|
||||
|
||||
`oxipng --opt {{0|1|2|3|4|5|6|max}} {{path/to/file.png}}`
|
||||
|
||||
- Set the PNG interlacing type (`0` removes interlacing, `1` applies Adam7 interlacing, `keep` preserves existing interlacing; default is `0`):
|
||||
|
||||
`oxipng --interlace {{0|1|keep}} {{path/to/file.png}}`
|
||||
|
||||
- Perform additional optimization on images with an alpha channel:
|
||||
|
||||
`oxipng --alpha {{path/to/file.png}}`
|
||||
|
||||
- Use the much slower but stronger Zopfli compressor with max optimization:
|
||||
|
||||
`oxipng --zopfli --opt max {{path/to/file.png}}`
|
||||
|
||||
- Strip all non-critical metadata chunks:
|
||||
|
||||
`oxipng --strip all {{path/to/file.png}}`
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tspin {{path/to/application.log}} --print`
|
||||
|
||||
- Read from stdin and print to `stdout`:
|
||||
- Read from `stdin` and print to `stdout`:
|
||||
|
||||
`echo "2021-01-01 12:00:00 [INFO] This is a log message" | tspin`
|
||||
|
||||
@@ -9,9 +9,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Note: Specifying the output location is optional.
|
||||
> More information: <https://github.com/typst/typst>.
|
||||
|
||||
- List all discoverable fonts in the system and the given directory:
|
||||
- Initialize a new Typst project in a given directory using a template (e.g., `@preview/charged-ieee`):
|
||||
|
||||
`typst --font-path {{path/to/fonts_directory}} fonts`
|
||||
`typst init "{{template}}" {{path/to/directory}}`
|
||||
|
||||
- Compile a Typst file:
|
||||
|
||||
@@ -20,3 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Watch a Typst file and recompile on changes:
|
||||
|
||||
`typst watch {{path/to/source.typ}} {{path/to/output.pdf}}`
|
||||
|
||||
- List all discoverable fonts in the system and the given directory:
|
||||
|
||||
`typst --font-path {{path/to/fonts_directory}} fonts`
|
||||
|
||||
13
tldr/vivaldi
Normal file
13
tldr/vivaldi
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vivaldi
|
||||
|
||||
> This command is an alias of `chromium`.
|
||||
> More information: <https://vivaldi.com>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr chromium`
|
||||
42
tldr/windows/chromium
Normal file
42
tldr/windows/chromium
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# chromium
|
||||
|
||||
> Open-source web browser principally developed and maintained by Google.
|
||||
> Note: You may need to replace the `chromium` command with your desired web browser, such as `brave`, `google-chrome`, `microsoft-edge`/`msedge`, `opera`, or `vivaldi`.
|
||||
> More information: <https://www.chromium.org/developers/how-tos/run-chromium-with-flags/>.
|
||||
|
||||
- Open a specific URL or file:
|
||||
|
||||
`chromium {{https://example.com|path/to/file.html}}`
|
||||
|
||||
- Open in incognito mode (use `--inprivate` for Microsoft Edge):
|
||||
|
||||
`{{chromium --incognito|msedge --inprivate}} {{example.com}}`
|
||||
|
||||
- Open in a new window:
|
||||
|
||||
`chromium --new-window {{example.com}}`
|
||||
|
||||
- Open in application mode (without toolbars, URL bar, buttons, etc.):
|
||||
|
||||
`chromium --app={{https://example.com}}`
|
||||
|
||||
- Use a proxy server:
|
||||
|
||||
`chromium --proxy-server="{{socks5://hostname:66}}" {{example.com}}`
|
||||
|
||||
- Open with a custom profile directory:
|
||||
|
||||
`chromium --user-data-dir={{path/to/directory}}`
|
||||
|
||||
- Open without CORS validation (useful to test an API):
|
||||
|
||||
`chromium --user-data-dir={{path/to/directory}} --disable-web-security`
|
||||
|
||||
- Open with a DevTools window for each tab opened:
|
||||
|
||||
`chromium --auto-open-devtools-for-tabs`
|
||||
17
tldr/windows/microsoft-edge
Normal file
17
tldr/windows/microsoft-edge
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# microsoft-edge
|
||||
|
||||
> The Microsoft Edge command-line utility is available as `msedge` on Windows and `microsoft-edge` for other platforms.
|
||||
> More information: <https://microsoft.com/edge>.
|
||||
|
||||
- View the documentation for Microsoft Edge for Windows:
|
||||
|
||||
`tldr -p windows msedge`
|
||||
|
||||
- View the documentation for Microsoft Edge for other platforms:
|
||||
|
||||
`tldr -p common microsoft-edge`
|
||||
43
tldr/windows/msedge
Normal file
43
tldr/windows/msedge
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# msedge
|
||||
|
||||
> Modern web browser developed by Microsoft based on the Chromium web browser developed by Google.
|
||||
> This command is available instead as `microsoft-edge` for other platforms.
|
||||
> Note: Additional command arguments from `chromium` may also be usable to control Microsoft Edge.
|
||||
> More information: <https://microsoft.com/edge>.
|
||||
|
||||
- Open a specific URL or file:
|
||||
|
||||
`msedge {{https://example.com|path/to/file.html}}`
|
||||
|
||||
- Open in InPrivate mode:
|
||||
|
||||
`msedge --inprivate {{example.com}}`
|
||||
|
||||
- Open in a new window:
|
||||
|
||||
`msedge --new-window {{example.com}}`
|
||||
|
||||
- Open in application mode (without toolbars, URL bar, buttons, etc.):
|
||||
|
||||
`msedge --app={{https://example.com}}`
|
||||
|
||||
- Use a proxy server:
|
||||
|
||||
`msedge --proxy-server="{{socks5://hostname:66}}" {{example.com}}`
|
||||
|
||||
- Open with a custom profile directory:
|
||||
|
||||
`msedge --user-data-dir={{path/to/directory}}`
|
||||
|
||||
- Open without CORS validation (useful to test an API):
|
||||
|
||||
`msedge --user-data-dir={{path/to/directory}} --disable-web-security`
|
||||
|
||||
- Open with a DevTools window for each tab opened:
|
||||
|
||||
`msedge --auto-open-devtools-for-tabs`
|
||||
Reference in New Issue
Block a user