PDA

View Full Version : A modern Fortune



Tystick86
May 24th, 2011, 07:50 AM
Hello Everyone,

I don't know if this is the right place for this but the 3rd party project section didn't seem like a happing place so hear it goes. I have been getting into ruby and I made my first useful script and wanted to share it with any one interested.

I used to love fortune and I would always add it to .bashrc so I would get a cool greeting. However I am pretty sure I have memorized all of them and I wanted to make something similar for the new Unix world.

So I used my new ruby skills and made a script that downloads a random inspirational quote and displays it to standard output.

If any one is interested they can download it and give it try from https://github.com/tyrel86/Inspiring-Quotes

There are instructions on how to get it up and running please let me know what you think.

Please note you will need a ruby interpreter for it to work as well as ruby gems and the colorize gem. Its easy though hear are the steps:

$ sudo apt-get install ruby
$ sudo apt-get install rubygems
$ sudo gem install colorize

and done