citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

sendalert (228B)


      1 #!/usr/bin/env sh
      2 gpg --encrypt -r DC6893B47083300CB7A47A76A7441FAF7C898CAB > /tmp/alert 
      3 if [ $(hostname) = "charon" ]
      4 then
      5 	ENDPOINT=monad.endpoint.jb55.com
      6 else
      7 	ENDPOINT=monad.jb55.com
      8 fi
      9 </tmp/alert nc -uw0 $ENDPOINT 55000