*Change the jenkins/hudson test scripts
[shinken.git] / shinken / easter.py
blob141d66880c18bf4c60ac7b86b5d10de25fbc55da
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
7 #This file is part of Shinken.
9 #Shinken is free software: you can redistribute it and/or modify
10 #it under the terms of the GNU Affero General Public License as published by
11 #the Free Software Foundation, either version 3 of the License, or
12 #(at your option) any later version.
14 #Shinken is distributed in the hope that it will be useful,
15 #but WITHOUT ANY WARRANTY; without even the implied warranty of
16 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 #GNU Affero General Public License for more details.
19 #You should have received a copy of the GNU Affero General Public License
20 #along with Shinken. If not, see <http://www.gnu.org/licenses/>.
23 def dark():
24 r"""
25 .-.
26 |_:_|
27 /(_Y_)\
28 ( \/M\/ )
29 '. _.'-/'-'\-'._
30 ': _/.--'[[[[]'--.\_
31 ': /_' : |::"| : '.\
32 ': // ./ |oUU| \.' :\
33 ': _:'..' \_|___|_/ : :|
34 ':. .' |_[___]_| :.':\
35 [::\ | : | | : ; : \
36 '-' \/'.| |.' \ .;.' |
37 |\_ \ '-' : |
38 | \ \ .: : | |
39 | \ | '. : \ |
40 / \ :. .; |
41 / | | :__/ : \\
42 | | | \: | \ | ||
43 / \ : : |: / |__| /|
44 snd | : : :_/_| /'._\ '--|_\
45 /___.-/_|-' \ \
46 '-'
48 """
49 print dark.__doc__
52 def get_coffee():
53 r"""
56 ) (
57 ___...(-------)-....___
58 .-"" ) ( ""-.
59 .-'``'|-._ ) _.-|
60 / .--.| `""---...........---""` |
61 / / | |
62 | | | |
63 \ \ | |
64 `\ `\ | |
65 `\ `| |
66 _/ /\ /
67 (__/ \ /
68 _..---""` \ /`""---.._
69 .-' \ / '-.
70 : `-.__ __.-' :
71 : ) ""---...---"" ( :
72 '._ `"--...___...--"` _.'
73 jgs \""--..__ __..--""/
74 '._ "'"----.....______.....----"'" _.'
75 `""--..,,_____ _____,,..--""`
76 `"'"----"'"`
79 """
80 print get_coffee.__doc__
84 def episode_iv():
85 hst = 'towel.blinkenlights.nl'
87 from telnetlib import Telnet
89 t = Telnet(hst)
90 while True:
91 buf = t.read_until('mesfesses', 0.1)
92 print buf
95 def perdu():
96 import urllib
97 f = urllib.urlopen("http://www.perdu.com")
98 print f.read()
102 def myip():
103 import urllib
104 f = urllib.urlopen("http://whatismyip.org/")
105 print f.read()