Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-15 00:20:51 +00:00
parent 986d658347
commit 02b81d951e
4 changed files with 83 additions and 10 deletions

View File

@@ -5,8 +5,19 @@ source: https://github.com/tldr-pages/tldr.git
---
# batch
> This command is an alias of `at`.
> Execute commands at a later time when the system load levels permit.
> Results will be sent to the user's mail.
> See also: `at`, `atq`, `atrm` `mail`.
> More information: <https://manned.org/batch>.
- View documentation for the original command:
- Start the `atd` daemon:
`tldr at`
`systemctl start atd`
- Execute commands from `stdin` (press `Ctrl + D` when done):
`batch`
- Execute a command from `stdin`:
`echo "{{./make_db_backup.sh}}" | batch`

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Update all packages, including dependencies:
`sudo emerge -uDNav @world`
`sudo emerge {{-avuDN|--ask --verbose --update --deep --newuse}} @world`
- Resume a failed updated, skipping the failing package:
@@ -23,16 +23,16 @@ source: https://github.com/tldr-pages/tldr.git
- Install a new package, with confirmation:
`sudo emerge -av {{package}}`
`sudo emerge {{-av|--ask --verbose}} {{package}}`
- Remove a package, with confirmation:
- Remove a package and its dependencies with confirmation:
`sudo emerge -Cav {{package}}`
`sudo emerge {{-avc|--ask --verbose --depclean}} {{package}}`
- Remove orphaned packages (that were installed only as dependencies):
- Remove orphaned packages (installed as dependencies but no longer required by any package):
`sudo emerge -avc`
`sudo emerge {{-avc|--ask --verbose --depclean}}`
- Search the package database for a keyword:
`emerge -S {{keyword}}`
`emerge {{-S|--searchdesc}} {{keyword}}`

21
tldr/linux/kwallet-query Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# kwallet-query
> Read and write to a KDE Wallet.
> More information: <https://manned.org/kwallet-query>.
- List all entries in the `Passwords` folder of `kdewallet`:
`kwallet-query {{kdewallet}} {{-l|--list-entries}}`
- List all entries in a specific folder:
`kwallet-query {{kdewallet}} {{-l|--list-entries}} {{-f|--folder}} {{folder_name}}`
- List all available folders:
`kwallet-query {{kdewallet}} {{-l|--list-entries}} {{-f|--folder}} ""`

41
tldr/vitest Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vitest
> Fast, modern testing framework built for Vite, offering seamless integration, TypeScript support, and a Jest-compatible API for unit, integration, and snapshot testing.
> More information: <https://vitest.dev/guide>.
- Run all available tests:
`vitest run`
- Run the test suites from the given files:
`vitest run {{path/to/file1 path/to/file2 ...}}`
- Run the test suites from files within the current and subdirectories, whose paths match the given regular expression:
`vitest run {{regular_expression1}} {{regular_expression2}}`
- Run the tests whose names match the given regular expression:
`vitest run --testNamePattern {{regular_expression}}`
- Watch files for changes and automatically re-run related tests:
`vitest`
- Run tests with coverage:
`vitest run --coverage`
- Run all tests but stops immediately after the first test failure:
`vitest run --bail=1`
- Display help:
`vitest --help`