• A
  • b
  • o
  • u
  • t
  •     
  • C
  • o
  • w
  • s
  • p
  • e
  • a
  • k
  • By Sourav Goswami
    March 30, 2020

    Cowspeak ๐Ÿฎ

    Display a gradient colourful animal with a random quote or your own text in your terminal.

    โ”Œโ”„โ”„[sourav::archlinux]โ”ˆ[~]
    โ””โ”€โ”€โ•ผโฎš cowspeak
    
     //======================================================\\
     | Malek's Law: Any simple idea will be worded in         |
     | the most complicated way.                              |
     \\======================================================//
              ooo
               oo
              o
               __n__n__
        .------`-\00/-'
       /  ##  ## (oo)
      / \## __   ./
         |//YY \|/
         |||   |||
    


    Note that this is only for GNU/Linux systems. It depends on ruby. Cowspeak recommends you to have Ruby 2.4.0+.

    ๐Ÿ’Ž This version is intended to run locally, without any root privileges. To run this version, download the repo as zip or clone it, and then run cowspeak (the source code) with ruby. If you want to install cowspeak for all users (as root), then follow the below instructions.


    For Debian/Linux Mint/Ubuntu/Kali Linux/Raspbian/Other debian based systems ๐Ÿ„

    1. Download the latest deb file.

      Cowspeak Debian edition releases can also be found here.

    2. Install the deb file: dpkg -i cowspeak-v<version>.deb Or You can use gdebi-gtk / gdebi.
    3. Sometimes the latest deb package may be a month or two older than the latest source code. In that case, after the installation, you may want to check for an update, which will not use more than 30 KiB of internet data:

         sudo cowspeak -u
      

    If you donโ€™t want to download and install the deb file for some reason, please follow the next section: โ€œRunning Cowspeak on Other Distributions โš™๏ธโ€

    Running Cowspeak on Arch Linux/Manjaro/Archlabs and other Arch based distributions

    Running Cowspeak on Other Linux Distributions โš™๏ธ

    If you want to run cowspeak in any GNU/Linux distributions, then please follow the steps:

    ๐Ÿฎ Cowspeak Accepts Arguments. All the Available Arguments are ๐Ÿ‘‡

    1         --art or -a                   Display a tutorial on adding your own art.
    2         --blink or -b                 Blink the texts.
    3         --borderh=<ch>/-brh=<ch>      Horizontal border character.
    4         --borderv=<ch>/-brv=<ch>      Vertical border character.
    5         --bubble=<text>/-bbl=<text>   Specify the character of speech balloons.
    6         --documentation/-d            Display the documentation.
    7         --download/-dl                Download missing files from Github.
    8         --file=<path>/-f=<path>       Specify the path of your own ASCII art.
    9         --fill=<char>/-fc=<char>      Fill the quote area with a character.
    10        --force-update/-fu            Forcefully update (also see --update)
    11        --help/-h                     Display help.
    12        --invert/-inv                 Invert the output (right <- left in English)!
    13        --manual/-m                   Display a manual. Same as documentation.
    14        --net=<url>/-n=<url>          Read data from a website (in curl format).
    15        --no-art/-na                  Don't display the animal.
    16        --no-colour/-nc               Don't colourize the output.
    17        --no-text/-nt                 Don't show any text, show the animal.
    18        --read=<file>/-r=<file>       Read a file.
    19        --reverse/-rev                Cowspeak reads upside down!
    20        --rotate-colour/-rc           Rotate the output colours in each line.
    21        --show-arts/-sa               Show arts in the default directory.
    22        --text=<text>/-t=<text>       Display a custom text.
    23        --version/-v                  Display the current /usr/bin/cowspeak version.
    24        --update/-u                   Update cowspeak if possible.
    25        --welcome/-w                  Show some system details to the user.
    

    Note on Arguments ๐Ÿ“

    You have to pass each argument separately. For example, cowspeak -rc rotates the colour of the output, and -w shows a welcome screen with some system status and information. So if you want to use both, you have to use cowspeak -rc -w (instead of cowspeak -rcw).

    If you pass an invalid argument, cowspeak will not inform you. It will simply ignore the invalid argument so you can cheer!

    Screenshots ๐Ÿ“ธ

    โ”Œโ”„โ”„[sourav::archlinux]โ”ˆ[~]
    โ””โ”€โ”€โ•ผโฎš cowspeak -w
    
     //======================================================================\\
     | >> Welcome Sourav!                                                     |
     | :: Model: Inspiron 5567                                                |
     | :: BIOS: Dell Inc.(1.1.2)                                              |
     | :: Logname: sourav                                                     |
     | :: Hostname: archlinux                                                 |
     | :: Local IP: 192.168.2.8                                               |
     | :: Desktop Session: Xfce Session                                       |
     | :: OS: Arch Linux (x86_64-linux)                                       |
     | :: Kernel: 5.5.13-arch1-1                                              |
     | :: CPU: Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz                       |
     |    [Cores: 4]                                                          |
     | :: Total CPU Usage: 32.26%                                             |
     |    [C1: 25% | C2: 0% | C3: 63% | C4: 29%]                              |
     | :: Memory: 2764.17 MB / 3845.14 MB (71.89%)                            |
     | :: Swap: 290.9 MB / 3145.72 MB (9.25%)                                 |
     | :: Uptime: 9 hours, 54 minutes, 22 seconds                             |
     | :: Tasks: 209                                                          |
     |    [Running 2 | Sleeping 137 | Idle 70]                                |
     | :: Shell: /bin/bash                                                    |
     | :: PWD: /home/sourav/ (126 items)                                      |
     | :: Terminal Size: 26 ร— 104                                             |
     | :: Battery: DELL CYMGM77 (Samsung SDI) (Li-ion)                        |
     |    [Charge: 100% | Full]                                               |
     | :: Date & Time: March 31, Tuesday, 05:21:27 AM                         |
     \\======================================================================//
                   ooo
                    oo
                   o
                       /)
              /\___/\ ((
              \`@_@'/  ))
              {_:Y:.}_//
    ----------{_}^-'{_}----------
    
    โ”Œโ”„โ”„[sourav::archlinux]โ”ˆ[~]
    โ””โ”€โ”€โ•ผโฎš echo hello | cowspeak
     //====================================================\\
     | hello                                                |
     \\====================================================//
            ooo
             oo
            o
          __      _
        o'')}____//
         `_/      )
         (_(_/-(_/
    
    โ”Œโ”„โ”„[sourav::archlinux]โ”ˆ[~]
    โ””โ”€โ”€โ•ผโฎš cowspeak <<< `tail /usr/bin/cowspeak`
     //====================================================\\
     |         colourize.(IO.readlines(file).drop(2).join)  |
     |                                                      |
     |     elsif display_text                               |
     |         puts colourize === text                      |
     |     end                                              |
     |                                                      |
     | rescue SystemExit, Interrupt, SignalException        |
     |     abort $-n * 2                                    |
     | rescue Exception => e                                |
     |     exception_handle.(e)                             |
     | end                                                  |
     \\====================================================//
                 ooo
                  oo
                 o
           (`-()_.-=-.
           /66  ,  ,  \
         =(o_/=//_(   /======`
             ~"` ~"~~`
    
    โ”Œโ”„โ”„[sourav::archlinux]โ”ˆ[~]
    โ””โ”€โ”€โ•ผโฎš cowspeak -w -rc
     //====================================================================\\
     | >> Welcome Sourav!                                                   |
     | :: Model: Inspiron 5567                                              |
     | :: BIOS: Dell Inc.(1.1.2)                                            |
     | :: Logname: sourav                                                   |
     | :: Hostname: archlinux                                               |
     | :: Local IP: 192.168.2.8                                             |
     | :: Desktop Session: Xfce Session                                     |
     | :: OS: Arch Linux (x86_64-linux)                                     |
     | :: Kernel: 5.5.13-arch1-1                                            |
     | :: CPU: Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz                     |
     |    [Cores: 4]                                                        |
     | :: Total CPU Usage: 29.03%                                           |
     |    [C1: 38% | C2: 33% | C3: 22% | C4: 25%]                           |
     | :: Memory: 2811.63 MB / 3845.14 MB (73.12%)                          |
     | :: Swap: 281.42 MB / 3145.72 MB (8.95%)                              |
     | :: Uptime: 9 hours, 59 minutes, 3 seconds                            |
     | :: Tasks: 208                                                        |
     |    [Running 1 | Sleeping 136 | Idle 70]                              |
     | :: Shell: /bin/bash                                                  |
     | :: PWD: /home/sourav/ (126 items)                                    |
     | :: Terminal Size: 26 ร— 102                                           |
     | :: Battery: DELL CYMGM77 (Samsung SDI) (Li-ion)                      |
     |    [Charge: 100% | Full]                                             |
     | :: Date & Time: March 31, Tuesday, 05:26:09 AM                       |
     \\====================================================================//
                   ooo
                    oo
                   o
                       /)
              /\___/\ ((
              \`@_@'/  ))
              {_:Y:.}_//
    ----------{_}^-'{_}----------
    

    Bug Report ๐Ÿž

    Cowspeak considers bugs and security issues very seriously ๐Ÿ›. If you got any bug in cowspeak, any security issue, or an idea, please let me know via GitHub or email me souravgoswami@protonmail.com