Package: notossh
WHATEVER========that code is a quick and dirty hack to get notifications over ssh from my serverrunning irssi to my workstation. Aimed to be extended with other notificationsystems.* http://m0g.net/notossh/* http://github.com/guyzmo/irssi-over-ssh-notifications* http://i.got.nothing.to/post/2010/06/21/On-screen-notifications-from-IRSSI-over-SSHfor original notify.pl code :* http://lewk.org/log/code/irssi-notifyINSTALL=======* REMOTE SHELL running ERCTODO by someone who uses ERC!* REMOTE SHELL running IRSSI1/  copy 'notify.pl' to your ~/.irssi/scripts folderi.e. scp notify.pl REMOTE:.irssi/scripts2/  do '/load perl' and '/script load notify.pl' in irssi- TIP: Add it to your irssi conf to auto load3/  Ensure SSH allows remote tunnels - i.e. GatewayPorts yes4/  configure the 'highlights' in your client. (if you don't know how RTFM !)- /hilight -regex bla|bla* Local SSH Client1/  install the local service either by doing:1.1/ pip install notossh1.2/ python setup.py install4/  configure how you want to instance it4.1/ configure your ssh client to run it (see below)4.2/ make your own script (or launch it manually) : `notossh start`4.3/ to end the service run : `notossh stop`6/  if you don't like it as is... HACK IT !OPTIONS=======usage: irssi-notify-listener.py [-h] [-f] [-S] [-V] [-H HOST] [-P PORT][-G GROWL] [-N NOTIFY]{start,stop} ...IRSSI Notify Listenerpositional arguments:{start,stop}start               Starts the servicestop                Stops the serviceoptional arguments:-h, --help            show this help message and exit-f, --foreground      Make the notifications stick-S, --sticky          Make the notifications stick-V, --verbose         Make the listener verbose-H HOST, --host HOST  Host to listen on-P PORT, --port PORT  Port to listen on-G GROWL, --with-growl GROWLPath to growl executable-N NOTIFY, --with-notify NOTIFYPath to notify executableCONFIGURATION=============add to your .ssh/config those lines, where HOST is the host and port the PORT you wantto connect to :Host HOSTPermitLocalCommand yesLocalCommand "/path/to/bin/notossh start"RemoteForward PORT localhost:PORTNOTIFICATIONS=============to change the way notifications behaves, like on Fedora systems, you can change the notificationline to the following, making it transient :return [args.notify, '--hint', 'int:transient:1', '-i', 'dialog-information', '-t', '5000', ':'.join(args[1:]), args[0]]TODO====* enable passing through the arguments after -- to the notification serviceLICENCES========Since 2010, that code is aimed to be hacked.Thanks to Charles `doublerebel` Philips, Rui Abreu Ferreira and Cooper Ry Lees for their hacks!notify.pl is under GPL (because I copy/pasted it from Luke Macken and Paul W. Frields)everything else is WTFPL (because I don't care what you do with it, but if you don'ttell me you've improved it it, you're just a moron)And if you like it, buy me a beer !By Bernard `Guyzmo` PratzMail-me on guyzmo at m0g dot net.* WTFPLDO WHAT THE FUCK YOU WANT TO PUBLIC LICENSEVersion 2, December 2004Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>Everyone is permitted to copy and distribute verbatim or modifiedcopies of this license document, and changing it is allowed as longas the name is changed.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSETERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. You just DO WHAT THE FUCK YOU WANT TO.* GPLv2This program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program.  If not, see <http://www.gnu.org/licenses/>.EOF