From 05a60e354f869f5233f10b51119a151c8e081322 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 30 May 2025 00:20:18 +0000 Subject: [PATCH] Update cheatsheets --- tldr/git-fame | 2 +- tldr/git-feature | 2 +- tldr/linux/yay | 8 ++++---- tldr/make | 2 +- tldr/od | 2 +- tldr/osx/mac-cleanup | 8 ++++---- tldr/wcurl | 26 ++++++++++++++++++++++++++ 7 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 tldr/wcurl diff --git a/tldr/git-fame b/tldr/git-fame index f6855beb..213a417a 100644 --- a/tldr/git-fame +++ b/tldr/git-fame @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # git fame > Pretty-print Git repository contributions. -> More information: . +> More information: . - Calculate contributions for the current Git repository: diff --git a/tldr/git-feature b/tldr/git-feature index cd30a030..13a182df 100644 --- a/tldr/git-feature +++ b/tldr/git-feature @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Create or merge feature branches. > Feature branches obey the format feature/name. -> More information: . +> More information: . - Create and switch to a new feature branch: diff --git a/tldr/linux/yay b/tldr/linux/yay index 0da89aa3..64220913 100644 --- a/tldr/linux/yay +++ b/tldr/linux/yay @@ -17,10 +17,6 @@ source: https://github.com/tldr-pages/tldr.git `yay` -- Synchronize and update only AUR packages: - -`yay -Sua` - - Install a new package from the repos and AUR and do not ask to confirm transactions: `yay -S {{package}} --noconfirm` @@ -37,6 +33,10 @@ source: https://github.com/tldr-pages/tldr.git `yay -Yc` +- Clean `pacman` and `yay` caches (old package versions kept for rollback and downgrade purposes): + +`yay -Scc` + - Show statistics for installed packages and system health: `yay -Ps` diff --git a/tldr/make b/tldr/make index 6556069c..ce4e297d 100644 --- a/tldr/make +++ b/tldr/make @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Call a specific target, executing 4 jobs at a time in parallel: -`make {{[-j|--jobs]}} {{4}} {{target}}` +`make {{[-j|--jobs]}} 4 {{target}}` - Use a specific Makefile: diff --git a/tldr/od b/tldr/od index 1a66128a..35d8befb 100644 --- a/tldr/od +++ b/tldr/od @@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Display file in hexadecimal format (1-byte units), and 4 bytes per line: -`od {{[-t|--format]}} {{x1}} {{[-w|--width=]}}{{4}} {{[-v|--output-duplicates]}} {{path/to/file}}` +`od {{[-t|--format]}} {{x1}} {{[-w|--width=]}}4 {{[-v|--output-duplicates]}} {{path/to/file}}` - Display file in hexadecimal format along with its character representation, and do not print byte offsets: diff --git a/tldr/osx/mac-cleanup b/tldr/osx/mac-cleanup index 2c37eac5..0a169747 100644 --- a/tldr/osx/mac-cleanup +++ b/tldr/osx/mac-cleanup @@ -16,14 +16,14 @@ source: https://github.com/tldr-pages/tldr.git `mac-cleanup {{[-c|--configure]}}` -- Perform a dry-ru[n], showing what will be removed without actually deleting it: +- Perform a dry-run, showing what will be removed without actually deleting it: `mac-cleanup {{[-n|--dry-run]}}` -- Specify the directory with custom cleanup [p]ath: +- Specify the directory with custom cleanup path: `mac-cleanup {{[-p|--custom-path]}} {{path/to/directory}}` -- Automatically acknowledge all warnings and continue with [f]orce: +- Automatically acknowledge all warnings and continue with force: -`mac-cleanup -f` +`mac-cleanup {{[-f|--force]}}` diff --git a/tldr/wcurl b/tldr/wcurl new file mode 100644 index 00000000..b36f62f3 --- /dev/null +++ b/tldr/wcurl @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# wcurl + +> A simple wrapper around `curl` to easily download files. +> See also: `curl`. +> More information: . + +- Download the contents of a URL to a file indicated by the URL ("foo" in this case): + +`wcurl {{https://example.com/foo}}` + +- Download the contents of a URL to a file with a specified name: + +`wcurl {{[-o|--output]}} {{bar}} {{https://example.com/foo}}` + +- Download the contents of a URL, enabling progress bar and defaulting to HTTP/2: + +`wcurl --curl-options "--progress-bar --http2" {{https://example.com/foo}}` + +- Resume from an interrupted download: + +`wcurl --curl-options "--continue-at -" {{https://example.com/foo}}`