Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-08 00:15:18 +00:00
parent 781f2de690
commit b8a06e5a64
2 changed files with 44 additions and 2 deletions

42
tldr/ntfyme Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ntfyme
> A notification tool to track and notify you about your long-running termination process.
> Send notifications with success/error messages with Gmail, Telegram, and more.
> More information: <https://github.com/AnirudhG07/ntfyme>.
- Directly run your command:
`ntfyme exec {{-c|--cmd}} {{command}}`
- Pipe your command and run:
`echo {{command}} | ntfyme exec`
- Run multiple commands by enclosing them in quotes:
`echo "{{command1; command2; command3}}" | ntfyme exec`
- Track and terminate the process after prolonged suspension:
`ntfyme exec {{-t|--track-process}} {{-c|--cmd}} {{command}}`
- Setup the tool configurations interactively:
`ntfyme setup`
- Encrypt your password:
`ntfyme enc`
- See the log history:
`ntfyme log`
- Open and edit the configuration file:
`ntfyme config`

View File

@@ -17,9 +17,9 @@ source: https://github.com/tldr-pages/tldr.git
`{{arguments_source}} | xargs sh -c "{{command1}} && {{command2}} | {{command3}}"`
- Delete all files with a `.backup` extension (`-print0` uses a null character to split file names, and `-0` uses it as delimiter):
- Gzip all files with `.log` extension taking advantage of multiple threads (`-print0` uses a null character to split file names, and `-0` uses it as delimiter):
`find . -name '*.backup' -print0 | xargs -0 rm -v`
`find . -name '*.log' -print0 | xargs -0 -P {{4}} -n 1 gzip`
- Execute the command once per argument: