mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 03:48:40 +00:00
Update cheatsheets
This commit is contained in:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scan the image using Trivy and generate link file:
|
||||
|
||||
`in-toto-run {{[-n|--step-name]}} {{scan}} -k {{key_file}} {{[-p|--products]}} {{report.json}} -- {{/bin/sh -c "trivy {{[-o|--output]}} report.json {{[-f|--format]}} json <IMAGE>"}}`
|
||||
`in-toto-run {{[-n|--step-name]}} {{scan}} -k {{key_file}} {{[-p|--products]}} {{report.json}} -- {{/bin/sh -c "trivy --output report.json --format json <IMAGE>"}}`
|
||||
|
||||
@@ -16,4 +16,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print a file from `stdin` to `stdout`:
|
||||
|
||||
`{{wget {{[-O|--output-document]}} - https://example.com/file}} | ippeveps`
|
||||
`{{wget --output-document - https://example.com/file}} | ippeveps`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a game with specified maximum number of players:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}} -maxplayers {{64}}`
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}} -maxplayers {{64}}`
|
||||
|
||||
- Run a game with specified server IP and port:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the contents of all NOTE segments/sections, or of a particular segment/section:
|
||||
|
||||
`eu-readelf {{[-n--notes]}} {{.note.ABI-tag}} {{path/to/file}}`
|
||||
`eu-readelf {{[-n|--notes]}} {{.note.ABI-tag}} {{path/to/file}}`
|
||||
|
||||
@@ -8,17 +8,17 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Probe for the hardware present in the system.
|
||||
> More information: <https://manpages.opensuse.org/hwinfo/hwinfo.8.en.html>.
|
||||
|
||||
- Get graphics card information:
|
||||
- Display all available hardware information:
|
||||
|
||||
`hwinfo --gfxcard`
|
||||
`hwinfo`
|
||||
|
||||
- Get network device information:
|
||||
- Display information about a specific hardware component:
|
||||
|
||||
`hwinfo --network`
|
||||
`hwinfo --{{cpu|memory|disk|gfxcard|network|usb|pci|keyboard|mouse|monitor|sound|fingerprint|...}}`
|
||||
|
||||
- List disks and CD-ROM drives, abbreviating the output:
|
||||
- Display information about a specific hardware component succinctly:
|
||||
|
||||
`hwinfo --short --disk --cdrom`
|
||||
`hwinfo {{--component}} --short`
|
||||
|
||||
- Write all hardware information to a file:
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Navigate forwards and backwards through the links on a page:
|
||||
|
||||
`{{ArrowUp|ArrowDown}}`
|
||||
`{{<ArrowUp>|<ArrowDown>}}`
|
||||
|
||||
- Go forwards and backwards one page:
|
||||
|
||||
`{{ArrowLeft|ArrowRight}}`
|
||||
`{{<ArrowLeft>|<ArrowRight>}}`
|
||||
|
||||
- Exit:
|
||||
|
||||
|
||||
@@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Suspend PulseAudio while running `jackd`:
|
||||
|
||||
`pasuspender -- {{jackd {{[-d|--driver]}} alsa {{[-d|--device]}} hw:0}}`
|
||||
`pasuspender -- {{jackd --driver alsa --device hw:0}}`
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Drag and select a window on screen to display screenkey:
|
||||
|
||||
`screenkey {{[-p|--position]}} fixed {{[-g|--geometry]}} {{$(slop {{[-n|--nodecorations]}} {{[-f|--format]}} '%g')}}`
|
||||
`screenkey {{[-p|--position]}} fixed {{[-g|--geometry]}} {{$(slop --nodecorations --format '%g')}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Open MPI wrapper compiler for C++.
|
||||
> See also: `mpirun`.
|
||||
> More information: <https://www.open-mpi.org/doc/v3.0/man1/mpic++.1.php>.
|
||||
> More information: <https://manned.org/mpicxx>.
|
||||
|
||||
- Compile an Open MPI program:
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mpicc
|
||||
|
||||
> Open MPI C wrapper compiler.
|
||||
> The wrappers are simply thin shells on top of a C compiler, they add the relevant compiler and linker flags to the command-line that are necessary to compile/link Open MPI programs, and then invoke the underlying C compiler to actually perform the command.
|
||||
> More information: <https://www.mpich.org/static/docs/latest/www1/mpicc.html>.
|
||||
|
||||
- Compile a source code file into an object file:
|
||||
|
||||
33
tldr/openocd
Normal file
33
tldr/openocd
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# openocd
|
||||
|
||||
> Debug and program embedded systems with OpenOCD.
|
||||
> More information: <https://manned.org/openocd>.
|
||||
|
||||
- Attach OpenOCD session to a board with a configuration file:
|
||||
|
||||
`openocd {{[-f|--file]}} {{config_file.cfg}}`
|
||||
|
||||
- Attach OpenOCD session to a board with multiple configuration files:
|
||||
|
||||
`openocd {{[-f|--file]}} {{config_file1.cfg}} {{[-f|--file]}} {{config_file2.cfg}}`
|
||||
|
||||
- Attach OpenOCD session to a board with configuration files and a list of commands to be executed on server startup:
|
||||
|
||||
`openocd {{[-f|--file]}} {{config_file.cfg}} {{[-c|--command]}} "{{command}}"`
|
||||
|
||||
- Use configuration files in the specified path:
|
||||
|
||||
`openocd {{[-s|--search]}} {{path/to/search}} {{[-f|--file]}} {{config_file.cfg}}`
|
||||
|
||||
- After OpenOCD startup, connect GDB to OpenOCD default port 3333:
|
||||
|
||||
`target extended-remote localhost`
|
||||
|
||||
- List site-wide script library:
|
||||
|
||||
`ls /usr/local/share/openocd/scripts`
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a command but do not start it if it's the first in a queue:
|
||||
|
||||
`pueue add {{[-s|--stashed]}} -- {{rsync {{[-a|--archive]}} {{[-z|--compress]}} /local/directory /remote/directory}}`
|
||||
`pueue add {{[-s|--stashed]}} -- {{rsync --archive --compress /local/directory /remote/directory}}`
|
||||
|
||||
- Add a command to a group and start it immediately, see `pueue group` to manage groups:
|
||||
|
||||
|
||||
37
tldr/pulumi-policy
Normal file
37
tldr/pulumi-policy
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pulumi policy
|
||||
|
||||
> Manage resource policies on Pulumi Cloud (Business Critical) or locally (no organization sub-commands).
|
||||
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_policy/>.
|
||||
|
||||
- Create a new Pulumi Policy Pack from a template or URL:
|
||||
|
||||
`pulumi policy new --dir {{path/to/directory}} {{template|url}}`
|
||||
|
||||
- Validate syntax of a policy. To check a policy against a project use `pulumi preview`:
|
||||
|
||||
`pulumi policy validate-config {{organization_name}}/{{policy_pack_name}} {{version}}`
|
||||
|
||||
- List all policies for an organization:
|
||||
|
||||
`pulumi policy ls {{[-j|--json]}} {{organization_name}}`
|
||||
|
||||
- Publish a policy to the Pulumi Cloud:
|
||||
|
||||
`pulumi policy publish {{organization_name}}`
|
||||
|
||||
- Enable a policy with a specific version:
|
||||
|
||||
`pulumi policy enable {{organization_name}}/{{policy_pack_name}} {{latest|version}}`
|
||||
|
||||
- Disable a policy with a specific version (defaults to all versions):
|
||||
|
||||
`pulumi policy disable {{organization_name}}/{{policy_pack_name}} --version {{version}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pulumi policy {{[-h|--help]}}`
|
||||
@@ -20,6 +20,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pulumi preview --diff`
|
||||
|
||||
- Preview updates using a Policy Pack (without Pulumi Cloud, best on CI/CD):
|
||||
|
||||
`pulumi preview --policy-pack {{path/to/directory}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pulumi preview {{[-h|--help]}}`
|
||||
|
||||
@@ -6,13 +6,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# wezterm
|
||||
|
||||
> Wez's Terminal Emulator - a powerful cross-platform terminal emulator and multiplexer.
|
||||
> Some subcommands such as `cli` have their own usage documentation.
|
||||
> More information: <https://wezterm.org/cli/general>.
|
||||
|
||||
- Start a new Wezterm process and create a window:
|
||||
|
||||
`wezterm`
|
||||
|
||||
- Establish an `ssh` session:
|
||||
- Establish an `ssh` session in a new Wezterm window:
|
||||
|
||||
`wezterm ssh {{user}}@{{host}}:{{port}}`
|
||||
|
||||
@@ -24,11 +25,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`wezterm imgcat {{path/to/image}}`
|
||||
|
||||
- Record a terminal session as an asciicat (by default recordings are found in `/tmp`):
|
||||
- Record a terminal session as an asciicast (by default recordings are saved to `/tmp`):
|
||||
|
||||
`wezterm record`
|
||||
|
||||
- Replay an asciicat terminal session:
|
||||
- Replay an asciicast terminal session:
|
||||
|
||||
`wezterm replay {{path/to/cast_file}}`
|
||||
|
||||
|
||||
25
tldr/wezterm-cli
Normal file
25
tldr/wezterm-cli
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# wezterm cli
|
||||
|
||||
> Interact with a running Wezterm GUI or multiplexer.
|
||||
> More information: <https://wezterm.org/cli/cli/index.html>.
|
||||
|
||||
- List windows, tabs, and panes:
|
||||
|
||||
`wezterm cli list`
|
||||
|
||||
- Split the current pane and print the new pane's ID to `stdout`:
|
||||
|
||||
`wezterm cli split-pane --{{left|right|top|bottom}} --{{cells|percent}} {{n}}`
|
||||
|
||||
- Activate (focus) a pane:
|
||||
|
||||
`wezterm cli activate-pane --pane-id {{id}}`
|
||||
|
||||
- Kill a pane:
|
||||
|
||||
`wezterm cli kill-pane --pane-id {{id}}`
|
||||
2
tldr/x8
2
tldr/x8
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Send parameters via POST body with JSON format:
|
||||
|
||||
`x8 {{[-u|--url]}} {{https://example.com/}} {{[-X|--method]}} {{POST}} {{[-b|--body]}} {{'{"x":{%s}}'}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}}`
|
||||
`x8 {{[-u|--url]}} {{https://example.com/}} {{[-X|--method]}} {{POST}} {{[-b|--body]}} {{'{"x":{%s\}\}'}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}}`
|
||||
|
||||
- Check parameters with a custom template (`%k` for key, `%v` for value):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user