Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-30 00:18:23 +00:00
parent 2f5c37424b
commit aa60befad7
7 changed files with 137 additions and 0 deletions

21
tldr/apkeep Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# apkeep
> Download APK files from various sources.
> More information: <https://github.com/EFForg/apkeep>.
- Download an APK file to the specified directory:
`apkeep --app {{com.example.application}} {{path/to/directory}}`
- List all available versions for download:
`apkeep --app {{com.example.application}} --list-versions {{path/to/directory}}`
- Specify a store to download from:
`apkeep --app {{com.example.application}} --download-source {{apk-pure|google-play|f-droid|huawei-app-gallery}} {{path/to/directory}}`

25
tldr/jupyterlab Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jupyter lab
> Interactive development environment for Jupyter notebooks.
> More information: <https://jupyterlab.readthedocs.io/en/stable/>.
- Start JupyterLab:
`jupyter lab`
- Open a specific notebook:
`jupyter lab {{path/to/notebook.ipynb}}`
- Start JupyterLab in a specific directory:
`jupyter lab --notebook-dir {{path/to/directory}}`
- Start JupyterLab in debug mode:
`jupyter lab --debug`

View File

@@ -19,3 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
- Run an interactive shell inside a flatpak:
`flatpak run --command={{sh}} {{com.example.app}}`
- Run an installed application with a specific runtime version:
`flatpak run --runtime-version={{24.08|master|stable|...}} {{com.example.app}}`
- Run an installed application with a different runtime (but same version number):
`flatpak run --runtime={{org.freedesktop.Sdk}} {{com.example.app}}`

18
tldr/pnmmercator Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmmercator
> Perform Mercator transformations on Netpbm images.
> See also: `pnmglobe`.
> More information: <https://netpbm.sourceforge.net/doc/pnmmercator.html>.
- Convert a rectangular projection worldmap to Mercator projection:
`pnmmercator {{path/to/image.pnm}} > {{path/to/output.pnm}}`
- Convert a Mercator projection worldmap to rectangular projection:
`pnmmercator -inverse {{path/to/image.pnm}} > {{path/to/output.pnm}}`

18
tldr/ppmdraw Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmdraw
> Draw lines, text and more on a PPM image by executing a script.
> Documentation on the utilized scripting language can be found by following the link below.
> More information: <https://netpbm.sourceforge.net/doc/ppmdraw.html>.
- Draw on the specified PPM image by executing the supplied script:
`ppmdraw -script '{{setpos 50 50; text_here "hello!"; }}' {{path/to/image.pnm}} > {{path/to/output.pnm}}`
- Draw on the specified PPM image by executing the script in the specified file:
`ppmdraw -scriptfile {{path/to/script}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`

18
tldr/ppmglobe Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmglobe
> Generate strips of an image suitable to be glued onto a sphere.
> See also: `pnmmercator`.
> More information: <https://netpbm.sourceforge.net/doc/ppmglobe.html>.
- Transform an image to strips that can be cut out and glues onto a sphere:
`ppmglobe {{number_of_strips}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
- Use the specified color for the areas between the strips:
`ppmglobe -background {{red}} {{number_of_strips}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`

29
tldr/vmtouch Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vmtouch
> Manage the filesystem cache.
> More information: <https://manned.org/vmtouch>.
- Print the cache status of a file:
`vmtouch {{path/to/file}}`
- Load a file into cache:
`vmtouch -t {{path/to/file}}`
- Evict a file from cache:
`vmtouch -e {{path/to/file}}`
- Lock a file in cache to prevent eviction from memory:
`vmtouch -l {{path/to/file}}`
- Lock a file and daemonize the program:
`vmtouch -ld {{path/to/file}}`