From 1d688aded30666b42db106418ee77dad664ef99c Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 20 Oct 2024 00:19:02 +0000 Subject: [PATCH] Update cheatsheets --- tldr/ansible-galaxy | 32 ++++++++++++------------ tldr/brave | 13 ++++++++++ tldr/chromium | 1 + tldr/crane-export | 2 +- tldr/linux/google-chrome-stable | 13 ++++++++++ tldr/linux/opera-stable | 13 ++++++++++ tldr/linux/qm-guest-exec | 2 +- tldr/linux/vivaldi-stable | 13 ++++++++++ tldr/microsoft-edge | 43 +++++++++++++++++++++++++++++++++ tldr/msedge | 17 +++++++++++++ tldr/npm | 2 +- tldr/npm-doctor | 29 ++++++++++++++++++++++ tldr/npm-token | 2 +- tldr/npm-view | 37 ++++++++++++++++++++++++++++ tldr/opera | 13 ++++++++++ tldr/oxipng | 41 +++++++++++++++++++++++++++++++ tldr/tspin | 2 +- tldr/typst | 8 ++++-- tldr/vivaldi | 13 ++++++++++ tldr/windows/chromium | 42 ++++++++++++++++++++++++++++++++ tldr/windows/microsoft-edge | 17 +++++++++++++ tldr/windows/msedge | 43 +++++++++++++++++++++++++++++++++ 22 files changed, 375 insertions(+), 23 deletions(-) create mode 100644 tldr/brave create mode 100644 tldr/linux/google-chrome-stable create mode 100644 tldr/linux/opera-stable create mode 100644 tldr/linux/vivaldi-stable create mode 100644 tldr/microsoft-edge create mode 100644 tldr/msedge create mode 100644 tldr/npm-doctor create mode 100644 tldr/npm-view create mode 100644 tldr/opera create mode 100644 tldr/oxipng create mode 100644 tldr/vivaldi create mode 100644 tldr/windows/chromium create mode 100644 tldr/windows/microsoft-edge create mode 100644 tldr/windows/msedge diff --git a/tldr/ansible-galaxy b/tldr/ansible-galaxy index b07df3df..4cb3b821 100644 --- a/tldr/ansible-galaxy +++ b/tldr/ansible-galaxy @@ -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: . -- 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}}` diff --git a/tldr/brave b/tldr/brave new file mode 100644 index 00000000..ba72cc59 --- /dev/null +++ b/tldr/brave @@ -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: . + +- View documentation for the original command: + +`tldr chromium` diff --git a/tldr/chromium b/tldr/chromium index 4e90e12a..50b25854 100644 --- a/tldr/chromium +++ b/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: . - Open a specific URL or file: diff --git a/tldr/crane-export b/tldr/crane-export index c537ab34..7cc7de35 100644 --- a/tldr/crane-export +++ b/tldr/crane-export @@ -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}}` diff --git a/tldr/linux/google-chrome-stable b/tldr/linux/google-chrome-stable new file mode 100644 index 00000000..bafdf9ac --- /dev/null +++ b/tldr/linux/google-chrome-stable @@ -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: . + +- View documentation for the original command: + +`tldr chromium` diff --git a/tldr/linux/opera-stable b/tldr/linux/opera-stable new file mode 100644 index 00000000..0817a718 --- /dev/null +++ b/tldr/linux/opera-stable @@ -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: . + +- View documentation for the original command: + +`tldr chromium` diff --git a/tldr/linux/qm-guest-exec b/tldr/linux/qm-guest-exec index d4daa333..4155fea7 100644 --- a/tldr/linux/qm-guest-exec +++ b/tldr/linux/qm-guest-exec @@ -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` diff --git a/tldr/linux/vivaldi-stable b/tldr/linux/vivaldi-stable new file mode 100644 index 00000000..f08b26be --- /dev/null +++ b/tldr/linux/vivaldi-stable @@ -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: . + +- View documentation for the original command: + +`tldr chromium` diff --git a/tldr/microsoft-edge b/tldr/microsoft-edge new file mode 100644 index 00000000..4a8c2e69 --- /dev/null +++ b/tldr/microsoft-edge @@ -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: . + +- 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` diff --git a/tldr/msedge b/tldr/msedge new file mode 100644 index 00000000..845b7481 --- /dev/null +++ b/tldr/msedge @@ -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: . + +- 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` diff --git a/tldr/npm b/tldr/npm index e763bf1b..f46df724 100644 --- a/tldr/npm +++ b/tldr/npm @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage Node.js projects and their module dependencies. > More information: . -- 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}}` diff --git a/tldr/npm-doctor b/tldr/npm-doctor new file mode 100644 index 00000000..14a58b2c --- /dev/null +++ b/tldr/npm-doctor @@ -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: . + +- 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` diff --git a/tldr/npm-token b/tldr/npm-token index 9ca81875..e0fcaf1b 100644 --- a/tldr/npm-token +++ b/tldr/npm-token @@ -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` diff --git a/tldr/npm-view b/tldr/npm-view new file mode 100644 index 00000000..91be741e --- /dev/null +++ b/tldr/npm-view @@ -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: . + +- 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` diff --git a/tldr/opera b/tldr/opera new file mode 100644 index 00000000..1fc7ffe4 --- /dev/null +++ b/tldr/opera @@ -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: . + +- View documentation for the original command: + +`tldr chromium` diff --git a/tldr/oxipng b/tldr/oxipng new file mode 100644 index 00000000..f514d843 --- /dev/null +++ b/tldr/oxipng @@ -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: . + +- 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}}` diff --git a/tldr/tspin b/tldr/tspin index d28508cb..0ac15f0e 100644 --- a/tldr/tspin +++ b/tldr/tspin @@ -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` diff --git a/tldr/typst b/tldr/typst index 22e62309..15d871ec 100644 --- a/tldr/typst +++ b/tldr/typst @@ -9,9 +9,9 @@ source: https://github.com/tldr-pages/tldr.git > Note: Specifying the output location is optional. > More information: . -- 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` diff --git a/tldr/vivaldi b/tldr/vivaldi new file mode 100644 index 00000000..2ed2dfe1 --- /dev/null +++ b/tldr/vivaldi @@ -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: . + +- View documentation for the original command: + +`tldr chromium` diff --git a/tldr/windows/chromium b/tldr/windows/chromium new file mode 100644 index 00000000..269290e1 --- /dev/null +++ b/tldr/windows/chromium @@ -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: . + +- 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` diff --git a/tldr/windows/microsoft-edge b/tldr/windows/microsoft-edge new file mode 100644 index 00000000..84461f2d --- /dev/null +++ b/tldr/windows/microsoft-edge @@ -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: . + +- 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` diff --git a/tldr/windows/msedge b/tldr/windows/msedge new file mode 100644 index 00000000..da4db85b --- /dev/null +++ b/tldr/windows/msedge @@ -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: . + +- 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`