First import
git-svn-id: http://photonzero.com/dotfiles/trunk@1 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
commit
83d40113d2
60 changed files with 4264 additions and 0 deletions
16
bin/ansiabuse
Executable file
16
bin/ansiabuse
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/python
|
||||
import random
|
||||
import sys
|
||||
import commands
|
||||
colors = ["red", "green", "yellow", "blue", "magenta", "cyan", "white"]
|
||||
for line in sys.stdin:
|
||||
echostring = ""
|
||||
line = line.rstrip();
|
||||
for x in line:
|
||||
if x == '\\':
|
||||
x = '\\\\'
|
||||
colorname = colors[random.randint(0,6)]
|
||||
echostring += "$(color lt" + colorname +")" + x
|
||||
echostring += "$(color off)"
|
||||
o = commands.getoutput('echo "' + echostring + '"')
|
||||
print o.rstrip()
|
||||
Loading…
Add table
Add a link
Reference in a new issue