Skip to content
Fortune cookies for geeks 🍪
HTML Shell Ruby
Branch: gh-pages
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_includes
_layouts
_posts
assets
cowsay
databases
.gitignore
CNAME
Gemfile
LICENSE
README.md
_config.yml
index.md
install.sh
serve.sh

README.md

About fortune

License: MIT

Fortune Cookie

fortune is a program from BSD that picks a random message from a database.

This projects contribution is a database for Geeks.

Some use it in combination with cowsay.

tan@omega  ~/development/projects  fortune | cowsay
 ____________________________________
/ Q: What is orange and goes "click, \
\ click?" A: A ball point carrot.    /
 ------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Example cowsay as tux.

 tan@omega  ~/development/projects  fortune | cowsay -f tux
 ________________________________________
/ Q: Why does Washington have the most   \
| lawyers per capita and                 |
|                                        |
| New Jersey the most toxic waste dumps? |
\ A: God gave New Jersey first choice.   /
 ----------------------------------------
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

Installation

Linux (deb-based)

sudo apt install fortune

Mac OS

brew install fortune

Content

I have a strict guideline for content.

  • messages deemed to be spam or questionable spam will be deleted.
  • messages including profanity will be deleted.
  • messages containing language or concepts that could be deemed offensive will be deleted.
  • messages that attack a person individually will be deleted.

The owner of this repository reserves the right to edit or delete any messages submitted to this repository without notice. This content policy is subject to change at any time.

Examples of unacceptable behavior by participants include:

  • The use of sexualized language or imagery and unwelcome sexual attention or advances
  • Trolling, insulting/derogatory comments, and personal or political attacks
  • Public or private harassment
  • Publishing others’ private information, such as a physical or electronic address, without explicit permission
  • Other conduct which could reasonably be considered inappropriate in a professional setting

Format

Check what kind of database sources fortune uses:

fortune -f
100.00% /usr/share/games/fortunes
    15.59% riddles
    52.50% fortunes
    31.91% literature

Sources

  • Programming Wisdom (Twitter Account)
  • I Am Devleoper (Twitter Account)
You can’t perform that action at this time.