Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-04 00:25:13 +00:00
parent a25672619b
commit b35cae5346
7 changed files with 135 additions and 7 deletions

View File

@@ -6,20 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
# kosmorro
> Compute the ephemerides and the events for a date at a position on Earth.
> More information: <https://github.com/Kosmorro/kosmorro/blob/master/manpage/kosmorro.1.md>.
> More information: <https://kosmorro.space/cli/manpage/>.
- Get ephemerides for Paris, France:
`kosmorro {{[-la|--latitude]}} 48.7996 {{[-lo|--longitude]}} 2.3511`
`kosmorro {{[-p|--position]}} "48.7996,2.3511"`
- Get ephemerides for Paris, France, in the UTC+2 timezone:
- Get ephemerides for Paris, France, on its timezone:
`kosmorro {{[-la|--latitude]}} 48.7996 {{[-lo|--longitude]}} 2.3511 {{[-t|--timezone]}} 2`
`kosmorro {{[-p|--position]}} "48.7996,2.3511" {{[-t|--timezone]}} "Europe/Paris"`
- Get ephemerides for Paris, France, on June 9th, 2020:
`kosmorro {{[-la|--latitude]}} 48.7996 {{[-lo|--longitude]}} 2.3511 {{[-d|--date]}} 2020-06-09`
`kosmorro {{[-p|--position]}} "48.7996,2.3511" {{[-d|--date]}} "2020-06-09"`
- Get ephemerides for Paris, France, in two days:
`kosmorro {{[-p|--position]}} "48.7996,2.3511" {{[-d|--date]}} "+2d"`
- Generate a PDF (Note: TeXLive must be installed):
`kosmorro {{[-f|--format]}} pdf {{[-o|--output]}} {{path/to/file.pdf}}`
`kosmorro {{[-o|--output]}} "{{path/to/file}}.pdf"`

17
tldr/linux/drm_info Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# drm_info
> Dump information about DRM devices.
> More information: <https://manned.org/drm_info>.
- Dump DRM information:
`drm_info`
- Dump DRM information in [j]SON format:
`drm_info -j`

17
tldr/linux/fbgrab Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# fbgrab
> Generate screenshots directly from the framebuffer.
> More information: <https://github.com/GunnarMonell/fbgrab#fbgrab>.
- Generate a screenshot from the current TTY:
`sudo fbgrab {{path/to/file}}.png`
- Specify which TTY to capture:
`sudo fbgrab -c {{number}} {{path/to/file}}.png`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Show all TCP/UDP/RAW/UNIX sockets:
`ss {{[-a|--all]}} {{-t|-u|-w|-x}}`
`ss {{[-a|--all]}} {{--tcp|--udp|--raw|--unix}}`
- Filter TCP sockets by states, only/exclude:

37
tldr/ng-serve Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ng serve
> Build and serve the application, rebuilding on file changes.
> More information: <https://angular.dev/cli/serve>.
- Start the application:
`ng {{[s|serve]}}`
- Start the application and open it in a browser:
`ng {{[s|serve]}} {{[-o|--open]}}`
- Start the application on port `4201`:
`ng {{[s|serve]}} --port 4201`
- Start the application and listen on all network interfaces:
`ng {{[s|serve]}} --host {{0.0.0.0}}`
- Start the application using HTTPS:
`ng {{[s|serve]}} --ssl`
- Start the application with verbose logging:
`ng {{[s|serve]}} --verbose`
- Rebuild the application when files change:
`ng {{[s|serve]}} --watch`

12
tldr/osx/mo Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# mo
> This command is an alias of `mole`.
- View documentation for the original command:
`tldr mole`

41
tldr/osx/mole Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# mole
> Deep clean and optimize your Mac.
> More information: <https://github.com/tw93/mole>.
- Open the main menu:
`mole`
- Free up disk space:
`mole clean`
- Preview cleanup without making changes:
`mole clean --dry-run`
- Remove apps completely:
`mole uninstall`
- Check and maintain system:
`mole optimize`
- Explore disk usage:
`mole analyze`
- Monitor system health:
`mole status`
- Remove old project artifacts:
`mole purge`