Vlastný vyhľadávací nástroj
 

Google wave notifier

4 days and 22.30 hours since someone reset this sign. Record is 21 days and 18.88 hours.
P7130134.JPG

P7130134.JPG

Date: 07/13/2005

Zaujímavé linky:
KSP
FMFI UK
GJH

------BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+: a-- C++ UL+++ P+ L++ E--- W++ N? o? K? w-- O? M? V? PS+ PE+(-) Y+ PGP+ t>+ 5++ X+ R+ tv-- b+ DI+ D G++ e>+++ h-- r++ y?
------END GEEK CODE BLOCK------

This script send notifications to you, if you have unread google wave blips. Don't forget to change login, pawssword and icon. It is very dirty script. Depends on bash, php and wget.

  1. #!/bin/bash
  2. #
  3. # This program is under GPLv3 license --
  4. # http://www.gnu.org/licenses/gpl-3.0.html
  5. #
  6. # If you think, that this script is usefull, please send me a postcard to
  7. # adress:
  8. # Michal Nanasi
  9. # Azalkova 1
  10. # 82101 Bratislava
  11. # Slovakia
  12.  
  13. wget https://www.google.com/accounts/ClientLogin --save-cookies kolaciky --output-document=aa.html --post-data='accountType=GOOGLE&Email=YOUR_LOGIN_HERE%40gmail.com&Passwd=YOUR_PASSWORD_HERE&service=wave&source=GoogleNitifyDaemonByMic'
  14.  
  15. while true; do
  16.  
  17.         if grep -q Auth aa.html ; then
  18.                 auth=`cat aa.html |grep Auth |sed -e 's/^Auth=//'`
  19.                 wget 'https://wave.google.com/wave/?nouacheck&auth='$auth --output-document=bb.html
  20.  
  21.                 echo "<?php
  22.                 `cat bb.html |
  23.                         grep 'var json = ' |
  24.                         sed -e "s/var json = \(.*\);/"'$b'"[]=json_decode\(\'\1\',true\);/" `
  25.  
  26.                 "'
  27.                 foreach($b as $a){
  28.                         $data=$a["p"][1];
  29.                         foreach($data as $key=>$value){
  30.                                 if($value[7])
  31.                                         echo "notify-send -i LOCATION_OF_ICON  "'".'"'$value[9][1]'"'.\""'\n";
  32.                         }
  33.  
  34.                 }
  35.                 ?>'  |php |bash
  36.         else
  37.                 echo 'Unable to connect'
  38.         fi
  39.         sleep 300
  40. done
  41.  
Dátum poslednej zmeny: 28 január, 2010, 12:31 CET
Created by Mic ( mic(at)ksp(dot)sk, ICQ: 281832795, jabber: mic47@jabber.sk) Tato stranka vyzera najlepsie na mojom monitore:-) A v prehliadacoch Chromium, Firefox, Opera, Epiphany. Odporúčaná šírka monitora je aspoň 1280 pixelov. Pri menších šírkach sa nemusia niektoré fotky v galérii zobraziť korektne. Použitý software: PmWiki, Gallery 2.