From b35cae5346562af9538fe566fbdc49063d47e3ff Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 4 Feb 2026 00:25:13 +0000 Subject: [PATCH] Update cheatsheets --- tldr/kosmorro | 16 ++++++++++------ tldr/linux/drm_info | 17 +++++++++++++++++ tldr/linux/fbgrab | 17 +++++++++++++++++ tldr/linux/ss | 2 +- tldr/ng-serve | 37 +++++++++++++++++++++++++++++++++++++ tldr/osx/mo | 12 ++++++++++++ tldr/osx/mole | 41 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 135 insertions(+), 7 deletions(-) create mode 100644 tldr/linux/drm_info create mode 100644 tldr/linux/fbgrab create mode 100644 tldr/ng-serve create mode 100644 tldr/osx/mo create mode 100644 tldr/osx/mole diff --git a/tldr/kosmorro b/tldr/kosmorro index 438f13b4..a92c313e 100644 --- a/tldr/kosmorro +++ b/tldr/kosmorro @@ -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: . +> More information: . - 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"` diff --git a/tldr/linux/drm_info b/tldr/linux/drm_info new file mode 100644 index 00000000..46915d6b --- /dev/null +++ b/tldr/linux/drm_info @@ -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: . + +- Dump DRM information: + +`drm_info` + +- Dump DRM information in [j]SON format: + +`drm_info -j` diff --git a/tldr/linux/fbgrab b/tldr/linux/fbgrab new file mode 100644 index 00000000..50efaeb6 --- /dev/null +++ b/tldr/linux/fbgrab @@ -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: . + +- 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` diff --git a/tldr/linux/ss b/tldr/linux/ss index 3a88503b..d02e860a 100644 --- a/tldr/linux/ss +++ b/tldr/linux/ss @@ -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: diff --git a/tldr/ng-serve b/tldr/ng-serve new file mode 100644 index 00000000..3f7fc1e0 --- /dev/null +++ b/tldr/ng-serve @@ -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: . + +- 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` diff --git a/tldr/osx/mo b/tldr/osx/mo new file mode 100644 index 00000000..5c0aa7e8 --- /dev/null +++ b/tldr/osx/mo @@ -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` diff --git a/tldr/osx/mole b/tldr/osx/mole new file mode 100644 index 00000000..37fcd0c7 --- /dev/null +++ b/tldr/osx/mole @@ -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: . + +- 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`