From 72b426647f73d8a641b061d5a4991ddb621b02e4 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 28 Oct 2024 00:18:29 +0000 Subject: [PATCH] Update cheatsheets --- tldr/cfssl | 26 ++++++++++++++++++++++++++ tldr/linux/dpigs | 29 +++++++++++++++++++++++++++++ tldr/linux/pvremove | 29 +++++++++++++++++++++++++++++ tldr/npm-cache | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 tldr/cfssl create mode 100644 tldr/linux/dpigs create mode 100644 tldr/linux/pvremove create mode 100644 tldr/npm-cache diff --git a/tldr/cfssl b/tldr/cfssl new file mode 100644 index 00000000..a4d48890 --- /dev/null +++ b/tldr/cfssl @@ -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: . + +- 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` diff --git a/tldr/linux/dpigs b/tldr/linux/dpigs new file mode 100644 index 00000000..f00da6f8 --- /dev/null +++ b/tldr/linux/dpigs @@ -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: . + +- 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` diff --git a/tldr/linux/pvremove b/tldr/linux/pvremove new file mode 100644 index 00000000..41a8e033 --- /dev/null +++ b/tldr/linux/pvremove @@ -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: . + +- 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}}` diff --git a/tldr/npm-cache b/tldr/npm-cache new file mode 100644 index 00000000..3269379e --- /dev/null +++ b/tldr/npm-cache @@ -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: . + +- 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}}`