Last active
October 9, 2018 05:38
-
-
Save Darkflib/a68413c435243ece0b8e135d8346af81 to your computer and use it in GitHub Desktop.
Remote notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while true; do nc -l 12345 | say; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function say() { | |
| echo $1 | nc -N 127.0.0.1 12345; | |
| } | |
| say "Hello World" | |
| # alternatively with gntp-send installed and growl listening for remote notifications | |
| gntp-send hello "hello world" http://foo.com/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host * | |
| ServerAliveInterval 10 | |
| ServerAliveCountMax 2 | |
| RemoteForward 12345 127.0.0.1:12345 | |
| RemoteForward 23053 127.0.0.1:23053 | |
| Host nbg* | |
| Hostname %h.example.net | |
| ForwardAgent yes | |
| User username | |
| Host nbg03 | |
| DynamicForward 9999 | |
| Host mrflibble | |
| Hostname home.example.net | |
| ForwardAgent yes | |
| Port 2225 | |
| User mike | |
| ProxyJump nbg99 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment