Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-28 00:18:29 +00:00
parent 702f0e6878
commit 72b426647f
4 changed files with 125 additions and 0 deletions

26
tldr/cfssl Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cfssl
> Cloudflare's PKI and TLS toolkit.
> See also: `openssl`.
> More information: <https://github.com/cloudflare/cfssl>.
- Show certificate information of a host:
`cfssl certinfo -domain {{www.google.com}}`
- Decode certificate information from a file:
`cfssl certinfo -cert {{path/to/certificate.pem}}`
- Scan host(s) for SSL/TLS issues:
`cfssl scan {{host1 host2 ...}}`
- Display help for a subcommand:
`cfssl {{genkey|gencsr|certinfo|sign|gencrl|ocspdump|ocsprefresh|ocspsign|ocspserve|scan|bundle|crl|print-defaults|revoke|gencert|serve|version|selfsign|info}} -h`

29
tldr/linux/dpigs Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# dpigs
> Show which installed packages occupy the most space on `apt` based systems.
> More information: <https://manned.org/dpigs>.
- Display the N largest packages on the system:
`dpigs --lines={{N}}`
- Use the specified file instead of the default dpkg [s]tatus file:
`dpigs --status={{path/to/file}}`
- Display the largest [S]ource packages of binary packages installed on the system:
`dpigs --source`
- Display package sizes in [H]uman-readable format:
`dpigs --human-readable`
- Display help:
`dpigs --help`

29
tldr/linux/pvremove Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pvremove
> Remove LVM labels from physical volume(s).
> More information: <https://manned.org/pvremove>.
- Remove a LVM label from a physical volume:
`sudo pvremove {{/dev/sdXY}}`
- Display detailed output during the operation:
`sudo pvremove --verbose {{/dev/sdXY}}`
- Remove a LVM label without asking for confirmation:
`sudo pvremove --yes {{/dev/sdXY}}`
- Forcefully remove a LVM label:
`sudo pvremove --force {{/dev/sdXY}}`
- Display output in JSON format:
`sudo pvremove --reportformat json {{/dev/sdXY}}`

41
tldr/npm-cache Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm cache
> Manage the npm package cache.
> More information: <https://docs.npmjs.com/cli/commands/npm-cache>.
- Add a specific package to the cache:
`npm cache add {{package_name}}`
- Remove a specific package from the cache:
`npm cache remove {{package_name}}`
- Clear a specific cached item by key:
`npm cache clean {{key}}`
- Clear the entire npm cache:
`npm cache clean --force`
- List the contents of the npm cache:
`npm cache ls`
- Verify the integrity of the npm cache:
`npm cache verify`
- Show information about the npm cache location and configuration:
`npm cache dir`
- Change the cache path:
`npm config set cache {{path/to/directory}}`