Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-30 00:20:18 +00:00
parent ab141b6531
commit 05a60e354f
7 changed files with 38 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git fame
> Pretty-print Git repository contributions.
> More information: <https://github.com/casperdcl/git-fame#usage>.
> More information: <https://manned.org/git-fame>.
- Calculate contributions for the current Git repository:

View File

@@ -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: <http://manned.org/git-feature>.
> More information: <https://manned.org/git-feature>.
- Create and switch to a new feature branch:

View File

@@ -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`

View File

@@ -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:

View File

@@ -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:

View File

@@ -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]}}`

26
tldr/wcurl Normal file
View File

@@ -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: <https://curl.se/wcurl/manual.html>.
- 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}}`