shell equivalent of a boss button

cat /dev/urandom | hexdump -C | highlight ca fe 3d 42 e1 b3 ae f8 | perl -MTime::HiRes -pne "Time::HiRes::usleep(rand()*1000000)"
Nobody wants the boss to notice when you're slacking off. This will fill your shell with random data, parts of it highlighted. Note that 'highlight' is the Perl module App::highlight, not "a universal sourcecode to formatted text converter." You'll also need Term::ANSIColor.
Sample Output
mike@charron:~$ boss
00000000  54 50 35 84 2f cf 99 ea  3b e1 60 eb 08 f1 54 35  |TP5./...;.`...T5|
00000010  78 86 70 26 9e 24 f8 92  10 da 08 3c 63 10 49 32  |x.p&.$.....<c.I2|
00000020  40 e7 6d 2b e1 ef 6e ad  bf eb 4c 55 aa 41 f8 2e  |@.m+..n...LU.A..|
00000030  d3 2c ef 83 a7 85 de 3b  88 cd ff 7d f7 42 31 ed  |.,.....;...}.B1.|
00000040  77 be 21 4f a0 5a bd e7  a1 4e d6 73 2d 74 b0 be  |w.!O.Z...N.s-t..|
00000050  75 c6 6f 6e 38 ac 54 69  6f 00 51 95 ae 7d 13 d3  |u.on8.Tio.Q..}..|
00000060  d9 a4 2c 81 8a 07 38 55  b3 45 e3 62 97 2e 86 ca  |..,...8U.E.b....|

1
By: doherty
2010-12-29 21:26:18

What Others Think

lol - nice idea :D Tailing logfiles might help creating a busy screen too... :)
bashrc · 406 weeks and 5 days ago
If you don't have 'highlight' installed you can use grep: ... | grep --color=yes -E "(ca|fe|3d|42|e1|b3|ae|f8)" | ...
flatcap · 406 weeks and 5 days ago
:,-D
bubo · 406 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: