Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-16 00:18:07 +00:00
parent d973616cf7
commit 0522392249
12 changed files with 40 additions and 10 deletions

View File

@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original command:
`tldr fossil-commit`
`tldr fossil commit`

View File

@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original command:
`tldr fossil-init`
`tldr fossil init`

View File

@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original command:
`tldr gh-codespace`
`tldr gh codespace`

View File

@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original command:
`tldr ip-route-show`
`tldr ip route show`

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Add a new chain to accept all inbound traffic:
`sudo nft add chain {{inet}} {{filter}} {{input}} \{ type {{filter}} hook {{input}} priority {{0}} \; policy {{accept}} \}`
`sudo nft add chain {{inet}} {{filter}} {{input}} \{ type {{filter}} hook {{input}} priority {{0}} \; policy {{accept}} \; \}`
- Add a new rule to accept several TCP ports:

View File

@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original command:
`tldr pacman-sync`
`tldr pacman sync`

View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm move disk
# qm move_disk
> This command is an alias of `qm disk move`.

View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm-author
# npm author
> This command is an alias of `npm owner`.

26
tldr/npm-bugs Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm bugs
> Report bugs for a package in a web browser.
> Attempts to open the package's bug tracker URL or support email.
> More information: <https://docs.npmjs.com/cli/npm-bugs>.
- Report bugs for a specific package by opening the bug tracker for the specified package:
`npm bugs {{package_name}}`
- Open the bug tracker for the current package by searching for a `package.json` file and using its name:
`npm bugs`
- Configure the browser used to open URLs by setting your preferred browser for `npm` commands:
`npm config set browser {{browser_name}}`
- Control URL opening: set `browser` to `true` for the system URL opener, or `false` to print URLs in the terminal:
`npm config set browser {{true|false}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Add line numbers, and indentation guides:
`rich {{path/to/file.py}} --line-number --guides`
`rich {{path/to/file.py}} --line-numbers --guides`
- Apply a theme:

View File

@@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git
- View documentation for the original command:
`tldr choco-push`
`tldr choco push`

View File

@@ -30,6 +30,10 @@ source: https://github.com/tldr-pages/tldr.git
`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
- Download only the second, fourth, fifth, sixth, and last items in a playlist (the first item is 1, not 0):
`yt-dlp --playlist-items 2,4:6,-1 "{{https://youtube.com/playlist?list=PLbzoR-pLrL6pTJfLQ3UwtB-3V4fimdqnA}}"`
- Download all playlists of a YouTube channel/user keeping each playlist in a separate directory:
`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"`