From 2f5c37424b615e0fb645b811535c793aeaada31e Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 29 Dec 2024 00:19:25 +0000 Subject: [PATCH] Update cheatsheets --- tldr/dbx | 26 ++++++++++++++++++++++++++ tldr/function | 17 +++++++++++++++++ tldr/linux/fadvise | 21 +++++++++++++++++++++ tldr/linux/fincore | 17 +++++++++++++++++ tldr/linux/fwconsole | 37 +++++++++++++++++++++++++++++++++++++ tldr/linux/i386 | 12 ++++++++++++ tldr/linux/linux32 | 12 ++++++++++++ tldr/linux/linux64 | 12 ++++++++++++ tldr/linux/pacman | 18 +++++++++--------- tldr/linux/pacman-t | 12 ++++++++++++ tldr/linux/uname26 | 12 ++++++++++++ tldr/linux/x86_64 | 12 ++++++++++++ tldr/npm-cache | 4 ++-- tldr/pamtosrf | 14 ++++++++++++++ tldr/ppmtoapplevol | 13 +++++++++++++ tldr/ppmtopjxl | 25 +++++++++++++++++++++++++ tldr/ppmtorgb3 | 14 ++++++++++++++ tldr/ppmwheel | 21 +++++++++++++++++++++ tldr/readarray | 25 +++++++++++++++++++++++++ tldr/rgb3toppm | 14 ++++++++++++++ tldr/rlatopam | 13 +++++++++++++ tldr/spottopgm | 21 +++++++++++++++++++++ tldr/srftopam | 14 ++++++++++++++ tldr/svgtopam | 17 +++++++++++++++++ 24 files changed, 392 insertions(+), 11 deletions(-) create mode 100644 tldr/dbx create mode 100644 tldr/function create mode 100644 tldr/linux/fadvise create mode 100644 tldr/linux/fincore create mode 100644 tldr/linux/fwconsole create mode 100644 tldr/linux/i386 create mode 100644 tldr/linux/linux32 create mode 100644 tldr/linux/linux64 create mode 100644 tldr/linux/pacman-t create mode 100644 tldr/linux/uname26 create mode 100644 tldr/linux/x86_64 create mode 100644 tldr/pamtosrf create mode 100644 tldr/ppmtoapplevol create mode 100644 tldr/ppmtopjxl create mode 100644 tldr/ppmtorgb3 create mode 100644 tldr/ppmwheel create mode 100644 tldr/readarray create mode 100644 tldr/rgb3toppm create mode 100644 tldr/rlatopam create mode 100644 tldr/spottopgm create mode 100644 tldr/srftopam create mode 100644 tldr/svgtopam diff --git a/tldr/dbx b/tldr/dbx new file mode 100644 index 00000000..fd31cae4 --- /dev/null +++ b/tldr/dbx @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dbx + +> Interact with the Databricks platform. +> Note: this tool has been retired and it is recommended to use Databricks Asset Bundles instead. +> More information: . + +- Create a new `dbx` project in the current working directory: + +`dbx configure --profile {{DEFAULT}}` + +- Sync local files from the specified path to DBFS and watch for changes: + +`dbx sync dbfs --source {{path/to/directory}} --dest {{path/to/remote_directory}}` + +- Deploy the specified workflow to artifact storage: + +`dbx deploy {{workflow_name}}` + +- Launch the specified workflow after deploying it: + +`dbx launch {{workflow_name}}` diff --git a/tldr/function b/tldr/function new file mode 100644 index 00000000..f376f9c9 --- /dev/null +++ b/tldr/function @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# function + +> Define a function. +> More information: . + +- Define a function with the specified name: + +`function {{func_name}} { {{echo "Function contents here"}}; }` + +- Run a function named `func_name`: + +`func_name` diff --git a/tldr/linux/fadvise b/tldr/linux/fadvise new file mode 100644 index 00000000..06c00f24 --- /dev/null +++ b/tldr/linux/fadvise @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# fadvise + +> Control Linux file caching behavior. +> More information: . + +- Preload a file into cache: + +`fadvise {{-a|--advice}} willneed {{path/to/file}}` + +- Suggest dropping a file from cache: + +`fadvise {{path/to/file}}` + +- Display help: + +`fadvise --help` diff --git a/tldr/linux/fincore b/tldr/linux/fincore new file mode 100644 index 00000000..043fad04 --- /dev/null +++ b/tldr/linux/fincore @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# fincore + +> Display how much cache memory a file is taking. +> More information: . + +- Display cache details for a file: + +`fincore {{path/to/file}}` + +- Display all possible data columns: + +`fincore --output-all {{path/to/file}}` diff --git a/tldr/linux/fwconsole b/tldr/linux/fwconsole new file mode 100644 index 00000000..3b313731 --- /dev/null +++ b/tldr/linux/fwconsole @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# fwconsole + +> Manage and configure your FreePBX system (PBX server). +> More information: . + +- Reload FreePBX configurations: + +`fwconsole reload` + +- Start Asterisk and other commands needed by FreePBX: + +`fwconsole start` + +- Stop Asterisk and other commands needed by FreePBX: + +`fwconsole stop` + +- View and update settings: + +`fwconsole setting {{keyword}} {{new_value}}` + +- List available backups: + +`fwconsole backup --list` + +- List available FreePBX commands: + +`fwconsole list` + +- Change ownership of all files and directories that FreePBX needs to be owned by the apache user: + +`fwconsole chown` diff --git a/tldr/linux/i386 b/tldr/linux/i386 new file mode 100644 index 00000000..7b13a422 --- /dev/null +++ b/tldr/linux/i386 @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# i386 + +> This command is an alias of `setarch i386`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/tldr/linux/linux32 b/tldr/linux/linux32 new file mode 100644 index 00000000..cfaa9dab --- /dev/null +++ b/tldr/linux/linux32 @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# linux32 + +> This command is an alias of `setarch linux32`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/tldr/linux/linux64 b/tldr/linux/linux64 new file mode 100644 index 00000000..684ce237 --- /dev/null +++ b/tldr/linux/linux64 @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# linux64 + +> This command is an alias of `setarch linux64`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/tldr/linux/pacman b/tldr/linux/pacman index f282fff4..b29473e9 100644 --- a/tldr/linux/pacman +++ b/tldr/linux/pacman @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git > For equivalent commands in other package managers, see . > More information: . -- Synchronize and update all packages: +- [S]ynchronize and update all packages: `sudo pacman -Syu` @@ -18,23 +18,23 @@ source: https://github.com/tldr-pages/tldr.git `sudo pacman -S {{package}}` -- Remove a package and its dependencies: +- [R]emove a package and its dependencies: `sudo pacman -Rs {{package}}` -- Search the database for packages containing a specific file: +- Search ([s]) the package database for a regular expression or keyword: + +`pacman -Ss "{{search_pattern}}"` + +- Search the database for packages containing a specific [F]ile: `pacman -F "{{file_name}}"` -- List installed packages and versions: - -`pacman -Q` - -- List only the explicitly installed packages and versions: +- List only the [e]xplicitly installed packages and versions: `pacman -Qe` -- List orphan packages (installed as dependencies but not actually required by any package): +- List orphan packages (installed as [d]ependencies but not actually required by any package): `pacman -Qtdq` diff --git a/tldr/linux/pacman-t b/tldr/linux/pacman-t new file mode 100644 index 00000000..99a083c5 --- /dev/null +++ b/tldr/linux/pacman-t @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pacman -T + +> This command is an alias of `pacman --deptest`. + +- View documentation for the original command: + +`tldr pacman deptest` diff --git a/tldr/linux/uname26 b/tldr/linux/uname26 new file mode 100644 index 00000000..970a6cc7 --- /dev/null +++ b/tldr/linux/uname26 @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# uname26 + +> This command is an alias of `setarch uname26`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/tldr/linux/x86_64 b/tldr/linux/x86_64 new file mode 100644 index 00000000..96a5086b --- /dev/null +++ b/tldr/linux/x86_64 @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# x86_64 + +> This command is an alias of `setarch x86_64`. + +- View documentation for the original command: + +`tldr setarch` diff --git a/tldr/npm-cache b/tldr/npm-cache index 3269379e..705e2eaf 100644 --- a/tldr/npm-cache +++ b/tldr/npm-cache @@ -32,9 +32,9 @@ source: https://github.com/tldr-pages/tldr.git `npm cache verify` -- Show information about the npm cache location and configuration: +- Show the cache path: -`npm cache dir` +`npm config get cache` - Change the cache path: diff --git a/tldr/pamtosrf b/tldr/pamtosrf new file mode 100644 index 00000000..ee07ae66 --- /dev/null +++ b/tldr/pamtosrf @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pamtosrf + +> Convert Netpbm images to SRF format. +> See also: `srftopam`. +> More information: . + +- Convert a Netpbm image or a stream of Netpbm images to SRF format: + +`pamtosrf {{path/to/file.pam}} > {{path/to/output.srf}}` diff --git a/tldr/ppmtoapplevol b/tldr/ppmtoapplevol new file mode 100644 index 00000000..53a9a5a0 --- /dev/null +++ b/tldr/ppmtoapplevol @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmtoapplevol + +> Convert a PPM image into an Apple volume label image. +> More information: . + +- Convert a PPM image into an Apple volume label image: + +`ppmtoapplevol {{path/to/image.ppm}} > {{path/to/output}}` diff --git a/tldr/ppmtopjxl b/tldr/ppmtopjxl new file mode 100644 index 00000000..24170677 --- /dev/null +++ b/tldr/ppmtopjxl @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmtopjxl + +> Convert a PPM image into an HP PaintJet XL PCL file. +> More information: . + +- Convert a PPM image into an PJXL file: + +`ppmtopjxl {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- Resize the input image: + +`ppmtopjxl -xsize {{10cm}} -ysize {{5cm}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- Shift the input image: + +`ppmtopjxl -xshift {{10pt}} -yshift {{5pt}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}` + +- Do not use the normal TIFF 4.0 compression method: + +`ppmtopjxl -nopack {{path/to/image.ppm}} > {{path/to/output.pjxl}}` diff --git a/tldr/ppmtorgb3 b/tldr/ppmtorgb3 new file mode 100644 index 00000000..0f799578 --- /dev/null +++ b/tldr/ppmtorgb3 @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmtorgb3 + +> Separate the color components of a PPM file into three separate PGM files. +> See also: `rgb3toppm`. +> More information: . + +- Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`: + +`ppmtorgb3 {{path/to/file.ppm}}` diff --git a/tldr/ppmwheel b/tldr/ppmwheel new file mode 100644 index 00000000..98547259 --- /dev/null +++ b/tldr/ppmwheel @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ppmwheel + +> Generate a PPM image of a color wheel. +> More information: . + +- Generate a color wheel of type `Ppmcirc`: + +`ppmwheel {{diameter}} > {{path/to/output.ppm}}` + +- Generate a color wheel of type `Hue-value`: + +`ppmwheel -huevalue {{diameter}} > {{path/to/output.ppm}}` + +- Generate a color wheel of type `Hue-saturation`: + +`ppmwheel -huesaturation {{diameter}} > {{path/to/output.ppm}}` diff --git a/tldr/readarray b/tldr/readarray new file mode 100644 index 00000000..a2f6bfae --- /dev/null +++ b/tldr/readarray @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# readarray + +> Read lines from `stdin` into an array. +> More information: . + +- Interactively input lines into an array: + +`readarray {{array_name}}` + +- Read lines from a file and insert them in an array: + +`readarray {{array_name}} < {{path/to/file.txt}}` + +- Remove trailing deliminators (newline by default): + +`readarray -t {{array_name}} < {{path/to/file.txt}}` + +- Copy at most the specified number of lines: + +`readarray -n {{N}} {{array_name}} < {{path/to/file.txt}}` diff --git a/tldr/rgb3toppm b/tldr/rgb3toppm new file mode 100644 index 00000000..a37ffd16 --- /dev/null +++ b/tldr/rgb3toppm @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# rgb3toppm + +> Combine three PGM images into one PPM image. +> See also: `ppmtorgb3`. +> More information: . + +- Combine three PGM images (representing red, green and blue color components) into one PPM image: + +`rgb3toppm {{path/to/red_file.ppm}} {{path/to/green_file.ppm}} {{path/to/blue_file.ppm}} > {{path/to/output.ppm}}` diff --git a/tldr/rlatopam b/tldr/rlatopam new file mode 100644 index 00000000..951f7703 --- /dev/null +++ b/tldr/rlatopam @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# rlatopam + +> Convert Alias/Wavefront RLA and RPF image files to Netpbm format. +> More information: . + +- Convert the specified SPOT image to PGM format: + +`rlatopam {{path/to/file}} > {{path/to/output.pam}}` diff --git a/tldr/spottopgm b/tldr/spottopgm new file mode 100644 index 00000000..3f8e606e --- /dev/null +++ b/tldr/spottopgm @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# spottopgm + +> Convert a SPOT satellite image to PGM format. +> More information: . + +- Convert the specified SPOT image to PGM format: + +`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- Extract the specified color channel: + +`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- Extract the specified rectangle from the input image: + +`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}` diff --git a/tldr/srftopam b/tldr/srftopam new file mode 100644 index 00000000..03c31644 --- /dev/null +++ b/tldr/srftopam @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# srftopam + +> Convert an SRF file to Netpbm format. +> See also: `pamtosrf`. +> More information: . + +- Convert an SRF file to Netpbm format: + +`srftopam {{path/to/file.srf}} > {{path/to/output.pam}}` diff --git a/tldr/svgtopam b/tldr/svgtopam new file mode 100644 index 00000000..3d4302ba --- /dev/null +++ b/tldr/svgtopam @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# svgtopam + +> Convert an SVG file to Netpbm format. +> More information: . + +- Convert an SVG file to Netpbm format: + +`svgtopam {{path/to/file.svg}} > {{path/to/output.pam}}` + +- Emit textual output describing the input image: + +`svgtopam -trace {{path/to/file.svg}}`