Skip to content

Instantly share code, notes, and snippets.

@Darkflib
Last active October 9, 2018 05:38
Show Gist options
  • Select an option

  • Save Darkflib/a68413c435243ece0b8e135d8346af81 to your computer and use it in GitHub Desktop.

Select an option

Save Darkflib/a68413c435243ece0b8e135d8346af81 to your computer and use it in GitHub Desktop.
Remote notifications
while true; do nc -l 12345 | say; done
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/
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