Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-14 00:18:04 +00:00
parent 5f589d2ead
commit 9304a1c1bb
51 changed files with 121 additions and 54 deletions

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run the profiler and collect 10 samples:
`blackfire --samples {{10}} run {{php path/to/file.php}}`
`blackfire --samples 10 run {{php path/to/file.php}}`
- Run the profiler and output results as JSON:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# bmptoppm
> This command is superseded by `bmptopnm`.
> This command has been superseded by `bmptopnm`.
> More information: <https://netpbm.sourceforge.net/doc/bmptoppm.html>.
- View documentation for the current command:

View File

@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Filter containers by exit status code:
`docker ps --all --filter="exited={{code}}"`
`docker ps --all --filter "exited={{code}}"`
- Filter containers by status (created, running, removing, paused, exited and dead):

View File

@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
- Display 30 directories (defaults to 21):
`dust --number-of-lines {{30}}`
`dust --number-of-lines 30`
- Display information for the current directory, up to 3 levels deep:
`dust --depth {{3}}`
`dust --depth 3`
- Display the biggest directories at the top in descending order:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# gemtopbm
> This command is superseded by `gemtopnm`.
> This command has been superseded by `gemtopnm`.
> More information: <https://netpbm.sourceforge.net/doc/gemtopbm.html>.
- View documentation for the current command:

View File

@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new bug report file in the specified directory, creating it if it does not exist:
`git bugreport --output-directory {{path/to/directory}}`
`git bugreport {{-o|--output-directory}} {{path/to/directory}}`
- Create a new bug report file with the specified filename suffix in `strftime` format:
`git bugreport --suffix {{%m%d%y}}`
`git bugreport {{-s|--suffix}} {{%m%d%y}}`

View File

@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a bundle file of the last 5 commits of the current branch:
`git bundle create {{path/to/file.bundle}} -{{5}} {{HEAD}}`
`git bundle create {{path/to/file.bundle}} -5 {{HEAD}}`
- Create a bundle file of the latest 7 days:
`git bundle create {{path/to/file.bundle}} --since {{7.days}} {{HEAD}}`
`git bundle create {{path/to/file.bundle}} --since 7.days {{HEAD}}`
- Verify that a bundle file is valid and can be applied to the current repository:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Show the history of a particular file or directory, including differences:
`git log {{--patch|-p|-u}} {{path/to/file_or_directory}}`
`git log {{-p|-u|--patch}} {{path/to/file_or_directory}}`
- Show an overview of which file(s) changed in each commit:
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
- Show the last N number of commits from a certain author:
`git log {{--max-count|-n}} {{number}} --author "{{author}}"`
`git log {{-n|--max-count}} {{number}} --author "{{author}}"`
- Show commits between two dates (yyyy-mm-dd):

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- View a summary of the last 5 commits (i.e. specify a revision range):
`git shortlog HEAD~{{5}}..HEAD`
`git shortlog HEAD~5..HEAD`
- View all users, emails and the number of commits in the current branch:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# icontopbm
> This command is superseded by `sunicontopnm`.
> This command has been superseded by `sunicontopnm`.
> More information: <https://netpbm.sourceforge.net/doc/icontopbm.html>.
- View documentation for the current command:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set album title of all MP3 files in the current directory:
`id3tag --album={{album}} {{*.mp3}}`
`id3tag --album {{album}} {{*.mp3}}`
- Display help:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# lckdo
> This command is deprecated and superseded by `flock`.
> This command is deprecated and has been superseded by `flock`.
> More information: <https://joeyh.name/code/moreutils/>.
- View documentation for the recommended replacement:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Open a text file with a specific encoding:
`gedit --encoding={{UTF-8}} {{path/to/file}}`
`gedit --encoding {{UTF-8}} {{path/to/file}}`
- Display a list of supported encodings:

View File

@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
- Show all messages with priority level 3 (errors) from this [b]oot:
`journalctl -b --priority={{3}}`
`journalctl -b --priority=3`
- Delete journal logs which are older than 2 days:
`journalctl --vacuum-time={{2d}}`
`journalctl --vacuum-time=2d`
- Show only the last N li[n]es and [f]ollow new messages (like `tail -f` for traditional syslog):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# tailf
> This command is superseded by `tail -f`.
> This command has been superseded by `tail -f`.
> More information: <https://manned.org/tailf.1>.
- View documentation for the recommended replacement:

View File

@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Play a file at a specified speed (1 by default):
`mpv --speed={{0.01..100}} {{path/to/file}}`
`mpv --speed {{0.01..100}} {{path/to/file}}`
- Play a file using a profile defined in the `mpv.conf` file:

29
tldr/npm-unpublish Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm unpublish
> Remove a package from the npm registry.
> More information: <https://docs.npmjs.com/cli/v8/commands/npm-unpublish>.
- Unpublish a specific package version:
`npm unpublish {{package_name}}@{{version}}`
- Unpublish the entire package:
`npm unpublish {{package_name}} --force`
- Unpublish a package that is scoped:
`npm unpublish @{{scope}}/{{package_name}}`
- Specify a timeout period before unpublishing:
`npm unpublish {{package_name}} --timeout {{time_in_milliseconds}}`
- To prevent accidental unpublishing, use the `--dry-run` flag to see what would be unpublished:
`npm unpublish {{package_name}} --dry-run`

View File

@@ -36,7 +36,7 @@ source: https://github.com/tldr-pages/tldr.git
- Enter normal mode and save (write) the file, and quit:
`<Esc>:wq<Enter>`
`{{<Esc>ZZ|<Esc>:wq<Enter>}}`
- Quit without saving:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pamfixtrunc
> This command is superseded by `pamfix -truncate`.
> This command has been superseded by `pamfix -truncate`.
> More information: <https://netpbm.sourceforge.net/doc/pamfixtrunc.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pamrgbatopng
> This command is superseded by `pamtopng`.
> This command has been superseded by `pamtopng`.
> More information: <https://netpbm.sourceforge.net/doc/pamrgbatopng.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pbmtoicon
> This command is superseded by `pbmtosunicon`.
> This command has been superseded by `pbmtosunicon`.
> More information: <https://netpbm.sourceforge.net/doc/pbmtoicon.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pbmtox10bm
> This command is superseded by `pbmtoxbm -x10`.
> This command has been superseded by `pbmtoxbm -x10`.
> More information: <https://netpbm.sourceforge.net/doc/pbmtox10bm.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pgmcrater
> This command is superseded by `pamcrater`, `pamshadedrelief`, and `pamtopnm`.
> This command has been superseded by `pamcrater`, `pamshadedrelief`, and `pamtopnm`.
> More information: <https://netpbm.sourceforge.net/doc/pgmcrater.html>.
- View documentation for `pamcrater`:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pgmedge
> This command is superseded by `pamedge`.
> This command has been superseded by `pamedge`.
> More information: <https://netpbm.sourceforge.net/doc/pgmedge.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pgmnorm
> This command is superseded by `pnmnorm`.
> This command has been superseded by `pnmnorm`.
> More information: <https://netpbm.sourceforge.net/doc/pgmnorm.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pgmoil
> This command is superseded by `pamoil`.
> This command has been superseded by `pamoil`.
> More information: <https://netpbm.sourceforge.net/doc/pgmoil.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pgmslice
> This command is superseded by `pamslice`.
> This command has been superseded by `pamslice`.
> More information: <https://netpbm.sourceforge.net/doc/pgmslice.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pgmtopbm
> This command is superseded by `pamditherbw`.
> This command has been superseded by `pamditherbw`.
> More information: <https://netpbm.sourceforge.net/doc/pgmtopbm.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pngtopnm
> This command is superseded by `pngtopam`.
> This command has been superseded by `pngtopam`.
> More information: <https://netpbm.sourceforge.net/doc/pngtopnm.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmarith
> This command is superseded by `pamarith`.
> This command has been superseded by `pamarith`.
> More information: <https://netpbm.sourceforge.net/doc/pnmarith.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmcomp
> This command is superseded by `pamcomp`.
> This command has been superseded by `pamcomp`.
> More information: <https://netpbm.sourceforge.net/doc/pnmcomp.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmcut
> This command is superseded by `pamcut`.
> This command has been superseded by `pamcut`.
> More information: <https://netpbm.sourceforge.net/doc/pnmcut.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmenlarge
> This command is superseded by `pamenlarge`.
> This command has been superseded by `pamenlarge`.
> More information: <https://netpbm.sourceforge.net/doc/pnmenlarge.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmfile
> This command is superseded by `pamfile`.
> This command has been superseded by `pamfile`.
> More information: <https://netpbm.sourceforge.net/doc/pnmfile.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmflip
> This command is superseded by `pamflip`.
> This command has been superseded by `pamflip`.
> More information: <https://netpbm.sourceforge.net/doc/pnmflip.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnminterp
> This command is superseded by `pamstretch`.
> This command has been superseded by `pamstretch`.
> More information: <https://netpbm.sourceforge.net/doc/pnminterp.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmsplit
> This command is superseded by `pamsplit`.
> This command has been superseded by `pamsplit`.
> More information: <https://netpbm.sourceforge.net/doc/pnmsplit.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmtofits
> This command is superseded by `pamtofits`.
> This command has been superseded by `pamtofits`.
> More information: <https://netpbm.sourceforge.net/doc/pnmtofits.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pnmtotiff
> This command is superseded by `pamtotiff`.
> This command has been superseded by `pamtotiff`.
> More information: <https://netpbm.sourceforge.net/doc/pnmtotiff.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmbrighten
> This command is superseded by `pambrighten`.
> This command has been superseded by `pambrighten`.
> More information: <https://netpbm.sourceforge.net/doc/ppmbrighten.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmnorm
> This command is superseded by `pnmnorm`.
> This command has been superseded by `pnmnorm`.
> More information: <https://netpbm.sourceforge.net/doc/ppmnorm.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmquantall
> This command is superseded by `pnmquantall`.
> This command has been superseded by `pnmquantall`.
> More information: <https://netpbm.sourceforge.net/doc/ppmquantall.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmtogif
> This command is superseded by `pamtogif`.
> This command has been superseded by `pamtogif`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtogif.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmtojpeg
> This command is superseded by `pnmtojpeg`.
> This command has been superseded by `pnmtojpeg`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtojpeg.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmtomap
> This command is superseded by `pnmcolormap`.
> This command has been superseded by `pnmcolormap`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtomap.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmtotga
> This command is superseded by `pamtotga`.
> This command has been superseded by `pamtotga`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtotga.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmtouil
> This command is superseded by `pamtouil`.
> This command has been superseded by `pamtouil`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtouil.html>.
- View documentation for the current command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ppmtowinicon
> This command is superseded by `pamtowinicon`.
> This command has been superseded by `pamtowinicon`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtowinicon.html>.
- View documentation for the current command:

View File

@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
- Save and quit the current buffer:
`:wq<Enter>`
`{{ZZ|:wq<Enter>}}`
- Enter normal mode and undo the last operation:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# winicontoppm
> This command is superseded by `winicontopam`.
> This command has been superseded by `winicontopam`.
> More information: <https://netpbm.sourceforge.net/doc/winicontoppm.html>.
- View documentation for the current command:

38
tldr/zapier Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# zapier
> Create, automate, and manage zapier integrations.
> Some subcommands such as `build`, `init`, `scaffold`, `push`, `test`, etc. have their own usage documentation.
> More information: <https://github.com/zapier/zapier-platform/blob/main/packages/cli/docs/cli.md>.
- Connect to a Zapier account:
`zapier login`
- Initialize a new Zapier integration with a project template:
`zapier init {{path/to/directory}}`
- Add a starting trigger, create, search, or resource to your integration:
`zapier scaffold {{trigger|create|search|resource}} {{name}}`
- Test an integration:
`zapier test`
- Build and upload an integration to Zapier:
`zapier push`
- Display help:
`zapier help`
- Display help for a specific command:
`zapier help {{command}}`