mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 13:47:22 +00:00
Update cheatsheets
This commit is contained in:
42
tldr/ntfyme
Normal file
42
tldr/ntfyme
Normal 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`
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user