Improving the Quality of Your Automation Logging with Cowsay

You have to glue together systems with your amazing duct taped scripts.

You see failure after failure.

You want help predicting the success of your next run, so I’m going to provide you with an advanced artificially intelligent way to do this through the power of npm install.

1
2
3
npm install cowsay -g
npm install lucky -g
npm install catme -g
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 _____________________________________
< Will my run succeed this time? Hmmm >
        \    ,-^-.
         \   !oYo!
          \ /./=\.\______
               ##        )\/\
                ||-----w||
                ||      ||

               Cowth Vader
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 ________________________________________
< Will my run succeed this time? No way! >
 ----------------------------------------
   \
    \
     \
        __ \ / __
       /  \ | /  \
           \|/
       _.---v---.,_
      /            \  /\__/\
     /              \ \_  _/
     |__ @           |_/ /
      _/                /
      \       \__,     /
   ~~~~\~~~~~~~~~~~~~~`~~~

Now include the header in your script

1
"Will my run succeed this time? $( lucky --eightball)" | cowsay -r

Or spice up your console with a friendly cat using catme

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

 /\     /\
{  `---'  }
{  O   O  }
~~>  V  <~~
 \  \|/  /
  `-----'__
  /     \  `^\_
 {       }\ |\_\_   W
 |  \_/  |/ /  \_\_( )
  \__/  /(_E     \__/
    (  /
     MM
1
2
3
4
5
6
7
8
  /\ ___ /\
 (  o   o  )
  \  >#<  /
  /       \
 /         \       ^
|           |     //
 \         /    //
  ///  ///   --

There’s a few PowerShell related one’s, but I honestly just use other packages for this this.

I just looked and found out there’s a few great python equivalents so you could easily run some great stuff. They’ve got cowsay, a benedict cumberbatch like name generator, and more. I think I fell in love with Python a little bit more today.

Level it up by installing lolcat and if running Cmder you’ll enjoy the Skittlitizing of your console output.

PowerShell version is: Install-Module lolcat -Scope CurrentUser

1
"Will my run succeed this time? $( lucky --eightball)" | cowsay -r | lolcat

The resulting majesty:

CLI rendered dragon with lolcat
Lolcat for the cli win

If you want to really wow your friends… just jump into bash inside windows and run from your cli. This is a level so far beyond the normal windows command line experience it might just make you uninstall windows and live purely on a Linux terminal for your remaining days.

This looks like a good background while waiting to start presentations 🚀

1
2
3
# first time if repos out of date
sudo apt update
sudo apt install cmatrix

cmatrix

disclaimer
⚠️ There are a couple ascii layouts that are a little inappropriate, so if doing a live demo or something more visible don’t use random mode if you don’t want something showing up that might embarass you 😁

Webmentions

(No webmentions yet.)