mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 18:54:48 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Start `btop` with the specified settings preset:
|
- Start `btop` with the specified settings preset:
|
||||||
|
|
||||||
`btop --preset {{0..9}}`
|
`btop {{[-p|--preset]}} {{0..9}}`
|
||||||
|
|
||||||
- Start `btop` in TTY mode using 16 colors and TTY-friendly graph symbols:
|
- Start `btop` in TTY mode using 16 colors and TTY-friendly graph symbols:
|
||||||
|
|
||||||
`btop --tty_on`
|
`btop {{[-t|--tty]}}`
|
||||||
|
|
||||||
- Start `btop` in 256-color mode instead of 24-bit color mode:
|
- Start `btop` in 256-color mode instead of 24-bit color mode:
|
||||||
|
|
||||||
`btop --low-color`
|
`btop {{[-l|--low-color]}}`
|
||||||
|
|
||||||
- Set the update rate to 500 milliseconds:
|
- Set the update rate to 500 milliseconds:
|
||||||
|
|
||||||
`btop --update 500`
|
`btop {{[-u|--update]}} 500`
|
||||||
|
|
||||||
- Exit `btop`:
|
- Exit `btop`:
|
||||||
|
|
||||||
|
|||||||
39
tldr/deno
39
tldr/deno
@@ -5,25 +5,38 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# deno
|
# deno
|
||||||
|
|
||||||
> A secure runtime for JavaScript and TypeScript.
|
> A secure runtime for JavaScript, TypeScript, and WebAssembly.
|
||||||
> More information: <https://deno.land>.
|
> Includes dependency management using `npm` or `jsr`, and tooling like bench, bundle, doc, and coverage.
|
||||||
|
> More information: <https://docs.deno.com/runtime/reference/cli>.
|
||||||
|
|
||||||
- Run a JavaScript or TypeScript file:
|
- Start a REPL (interactive shell, also known as Read-Eval-Print Loop):
|
||||||
|
|
||||||
`deno run {{path/to/file.ts}}`
|
|
||||||
|
|
||||||
- Start a REPL (interactive shell):
|
|
||||||
|
|
||||||
`deno`
|
`deno`
|
||||||
|
|
||||||
- Run a file with network access enabled:
|
- Start a new project named sample and test it:
|
||||||
|
|
||||||
`deno run --allow-net {{path/to/file.ts}}`
|
`deno init sample && cd sample && deno test`
|
||||||
|
|
||||||
- Run a file from a URL:
|
- Run a file securely. It will ask (if needed) to allow net, read, etc:
|
||||||
|
|
||||||
`deno run {{https://deno.land/std/examples/welcome.ts}}`
|
`deno run {{path/to/file.ts}}`
|
||||||
|
|
||||||
- Install an executable script from a URL:
|
- Run a file with explicit permissions or allow all (only if you trust the source):
|
||||||
|
|
||||||
`deno install {{https://deno.land/std/examples/colors.ts}}`
|
`deno run {{[--allow-env|--allow-net|--allow-write|--allow-all]}} {{jsr:@deno/deployctl}}`
|
||||||
|
|
||||||
|
- List and run tasks from `deno.json` or scripts from `package.json`:
|
||||||
|
|
||||||
|
`deno task`
|
||||||
|
|
||||||
|
- Install dependencies listed in `deno.json` or `package.json` (also lock files):
|
||||||
|
|
||||||
|
`deno install`
|
||||||
|
|
||||||
|
- Check types, format, and lint (fix if possible):
|
||||||
|
|
||||||
|
`deno check && deno fmt && deno lint --fix`
|
||||||
|
|
||||||
|
- Compile the script, imported dependencies, and runtime into a self contained executable:
|
||||||
|
|
||||||
|
`deno compile {{path/to/file.ts}}`
|
||||||
|
|||||||
13
tldr/linux/fftest
Normal file
13
tldr/linux/fftest
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# fftest
|
||||||
|
|
||||||
|
> Test force-feedback devices (e.g., controllers with rumble functionality).
|
||||||
|
> More information: <https://manned.org/fftest>.
|
||||||
|
|
||||||
|
- Open `fftest` on an event:
|
||||||
|
|
||||||
|
`fftest {{/dev/input/eventX}}`
|
||||||
Reference in New Issue
Block a user