From 0522392249d75312e10ffaff6be353c6ae49ae75 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 16 Nov 2024 00:18:07 +0000 Subject: [PATCH] Update cheatsheets --- tldr/fossil-ci | 2 +- tldr/fossil-new | 2 +- tldr/gh-cs | 2 +- tldr/linux/ip-route-list | 2 +- tldr/linux/nft | 2 +- tldr/linux/pacman-s | 2 +- tldr/linux/qm-move_disk | 2 +- tldr/npm-author | 2 +- tldr/npm-bugs | 26 ++++++++++++++++++++++++++ tldr/rich | 2 +- tldr/windows/cpush | 2 +- tldr/yt-dlp | 4 ++++ 12 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 tldr/npm-bugs diff --git a/tldr/fossil-ci b/tldr/fossil-ci index c3e97404..07601006 100644 --- a/tldr/fossil-ci +++ b/tldr/fossil-ci @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr fossil-commit` +`tldr fossil commit` diff --git a/tldr/fossil-new b/tldr/fossil-new index f0344891..ba72fe68 100644 --- a/tldr/fossil-new +++ b/tldr/fossil-new @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr fossil-init` +`tldr fossil init` diff --git a/tldr/gh-cs b/tldr/gh-cs index bbf8c4c4..100dbdc3 100644 --- a/tldr/gh-cs +++ b/tldr/gh-cs @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr gh-codespace` +`tldr gh codespace` diff --git a/tldr/linux/ip-route-list b/tldr/linux/ip-route-list index d686c5f9..78185c2b 100644 --- a/tldr/linux/ip-route-list +++ b/tldr/linux/ip-route-list @@ -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` diff --git a/tldr/linux/nft b/tldr/linux/nft index 3c980f61..6d24059c 100644 --- a/tldr/linux/nft +++ b/tldr/linux/nft @@ -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: diff --git a/tldr/linux/pacman-s b/tldr/linux/pacman-s index aa8b511c..914f6e4b 100644 --- a/tldr/linux/pacman-s +++ b/tldr/linux/pacman-s @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr pacman-sync` +`tldr pacman sync` diff --git a/tldr/linux/qm-move_disk b/tldr/linux/qm-move_disk index b6fd07b3..0845c123 100644 --- a/tldr/linux/qm-move_disk +++ b/tldr/linux/qm-move_disk @@ -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`. diff --git a/tldr/npm-author b/tldr/npm-author index 179a9086..40865ac1 100644 --- a/tldr/npm-author +++ b/tldr/npm-author @@ -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`. diff --git a/tldr/npm-bugs b/tldr/npm-bugs new file mode 100644 index 00000000..245da511 --- /dev/null +++ b/tldr/npm-bugs @@ -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: . + +- 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}}` diff --git a/tldr/rich b/tldr/rich index ce9f316a..6970dff1 100644 --- a/tldr/rich +++ b/tldr/rich @@ -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: diff --git a/tldr/windows/cpush b/tldr/windows/cpush index d8d7194e..0cd3c805 100644 --- a/tldr/windows/cpush +++ b/tldr/windows/cpush @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr choco-push` +`tldr choco push` diff --git a/tldr/yt-dlp b/tldr/yt-dlp index a691c3fe..74978c39 100644 --- a/tldr/yt-dlp +++ b/tldr/yt-dlp @@ -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}}"`