Fix : get back LiveStatus as default.
[shinken.git] / shinken / easter.py
blobf40ddbca68c5f71c4f8988720e78a31577537631
1 #!/usr/bin/env python
2 #Copyright (C) 2009-2010 :
3 # Gabes Jean, naparuba@gmail.com
4 # Gerhard Lausser, Gerhard.Lausser@consol.de
5 # Gregory Starck, g.starck@gmail.com
6 # Hartmut Goebel, h.goebel@goebel-consult.de
8 #This file is part of Shinken.
10 #Shinken is free software: you can redistribute it and/or modify
11 #it under the terms of the GNU Affero General Public License as published by
12 #the Free Software Foundation, either version 3 of the License, or
13 #(at your option) any later version.
15 #Shinken is distributed in the hope that it will be useful,
16 #but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 #GNU Affero General Public License for more details.
20 #You should have received a copy of the GNU Affero General Public License
21 #along with Shinken. If not, see <http://www.gnu.org/licenses/>.
24 def dark():
25 r"""
26 .-.
27 |_:_|
28 /(_Y_)\
29 ( \/M\/ )
30 '. _.'-/'-'\-'._
31 ': _/.--'[[[[]'--.\_
32 ': /_' : |::"| : '.\
33 ': // ./ |oUU| \.' :\
34 ': _:'..' \_|___|_/ : :|
35 ':. .' |_[___]_| :.':\
36 [::\ | : | | : ; : \
37 '-' \/'.| |.' \ .;.' |
38 |\_ \ '-' : |
39 | \ \ .: : | |
40 | \ | '. : \ |
41 / \ :. .; |
42 / | | :__/ : \\
43 | | | \: | \ | ||
44 / \ : : |: / |__| /|
45 snd | : : :_/_| /'._\ '--|_\
46 /___.-/_|-' \ \
47 '-'
49 """
50 print dark.__doc__
53 def get_coffee():
54 r"""
57 ) (
58 ___...(-------)-....___
59 .-"" ) ( ""-.
60 .-'``'|-._ ) _.-|
61 / .--.| `""---...........---""` |
62 / / | |
63 | | | |
64 \ \ | |
65 `\ `\ | |
66 `\ `| |
67 _/ /\ /
68 (__/ \ /
69 _..---""` \ /`""---.._
70 .-' \ / '-.
71 : `-.__ __.-' :
72 : ) ""---...---"" ( :
73 '._ `"--...___...--"` _.'
74 jgs \""--..__ __..--""/
75 '._ "'"----.....______.....----"'" _.'
76 `""--..,,_____ _____,,..--""`
77 `"'"----"'"`
80 """
81 print get_coffee.__doc__
85 def episode_iv():
86 hst = 'towel.blinkenlights.nl'
88 from telnetlib import Telnet
90 t = Telnet(hst)
91 while True:
92 buf = t.read_until('mesfesses', 0.1)
93 print buf
96 def perdu():
97 import urllib
98 f = urllib.urlopen("http://www.perdu.com")
99 print f.read()
103 def myip():
104 import urllib
105 f = urllib.urlopen("http://whatismyip.org/")
106 print f.read()