Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-10 00:17:00 +00:00
parent 8fdd4c7ea2
commit 08e6a26f5e
7 changed files with 101 additions and 4 deletions

42
tldr/animdl Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# animdl
> A highly efficient, powerful and fast anime scraper.
> See also: `ani-cli`.
> More information: <https://github.com/justfoolingaround/animdl>.
- Download a specific anime:
`animdl download {{anime_title}}`
- Download a specific anime by specifying an episode range:
`animdl download {{anime_title}} {{-r|--range}} {{start_episode}}-{{end_episode}}`
- Download a specific anime by specifying a download directory:
`animdl download {{anime_title}} {{-d|--download-dir}} {{path/to/download_directory}}`
- Grab the stream URL for a specific anime:
`animdl grab {{anime_title}}`
- Display the upcoming anime schedule for the next week:
`animdl schedule`
- Search a specific anime:
`animdl search {{anime_title}}`
- Stream a specific anime:
`animdl stream {{anime_title}}`
- Stream the latest episode of a specific anime:
`animdl stream {{anime_title}} {{-s|--special}} latest`

34
tldr/linux/wtype Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# wtype
> Simulate keyboard input on Wayland, similar to `xdotool type` for X11.
> See also: `ydotool`.
> More information: <https://github.com/atx/wtype>.
- Simulate typing text:
`wtype "{{Hello World}}"`
- Type a specific key:
`wtype -k {{Left}}`
- Press a modifier:
`wtype -M {{shift|ctrl|...}}`
- Release a modifier:
`wtype -m {{ctrl}}`
- Wait between keystrokes (in milliseconds):
`wtype -d {{500}} -- "{{text}}"`
- Read text from `stdin`:
`echo "{{text}}" | wtype -`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# npm fund
> Retrieve funding information from packages.
> More information: <https://docs.npmjs.com/cli/v8/commands/npm-fund>.
> More information: <https://docs.npmjs.com/cli/commands/npm-fund>.
- List dependencies with funding URL for the project in the current directory:

17
tldr/npm-outdated Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm-outdated
> Check for outdated npm package dependencies.
> More information: <https://docs.npmjs.com/cli/commands/npm-outdated>.
- Find packages that are outdated in a project:
`npm outdated`
- Find packages that are outdated regardless of the current project:
`npm outdated --all`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# npm query
> Print an array of dependency objects using CSS-like selectors.
> More information: <https://docs.npmjs.com/cli/v8/commands/npm-query>.
> More information: <https://docs.npmjs.com/cli/commands/npm-query>.
- Print direct dependencies:
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print dependencies with a specific name and within a semantic versioning range:
`npm query #{{package}}@{{semantic_version}}`
`npm query '#{{package}}@{{semantic_version}}'`
- Print dependencies which have no dependencies:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# npm run
> Run a script.
> More information: <https://www.npmjs.com>.
> More information: <https://docs.npmjs.com/cli/commands/npm-run-script>.
- Run a script:

View File

@@ -28,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
`set -o {{emacs}}`
- List all modes:
`set -o`
- Exit the shell when (some) commands fail:
`set -e`