Fate – a joke horoscope generator utility for Linux pids

cjd81 pts1 comments

GitHub - cjd8/fate: A program providing alternative, spiritually accurate diagnostics for Linux PIDs. · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

cjd8

fate

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>28 Commits<br>28 Commits

.github/workflows

.github/workflows

img

img

predictions

predictions

src

src

tarot

tarot

.gitignore

.gitignore

CMakeLists.txt

CMakeLists.txt

LICENSE

LICENSE

README.md

README.md

View all files

Repository files navigation

Fate 🔮

A joke program providing alternative, spiritually (in)accurate diagnostics for Linux<br>PIDs.

What and especially why?

This program outputs a process' "horoscope" based on the supplied PID in a<br>horoscope-like fashion, as a homage to the Unix command fortune,<br>originally released in 1979. When entering a PID, the user will get a<br>daily OS-related fortune, along with a daily tarot card (special thanks to @eidamc!)<br>and other information. This horoscope is generated using a seed made using the<br>Fowler-No-Voll hash function, where the input is the PID and today's timestamp.

Prerequisites

CMake (min. version 3.15)

Yes, that is all

Installation

To install from source, clone this repository and run

cmake .<br>sudo make install

Usage

Getting a horoscope for a single PID is simple:

">fate pid_value>

Additionally, there are several flags to alter the behaviour of fate.

Short option<br>Long option<br>Action

-e<br>--entropy<br>Gets a random seed to generate a random value each time.

-p<br>--predict<br>Get horoscope of PID. Note, this can be also achieved by just entering the PID without this flag.

-v<br>--version<br>Get program version

-t<br>--tarot<br>Only prints daily tarot

-h<br>--help<br>Get program usage

DAT and text files

A fortune is assembled using the following formula. These snippets are<br>located in the corresponding text files.

[SUBJECT] + [ACTION] + [TARGET].<br>[ADVICE]

As the original fortune program, fate also makes use of DAT files to<br>ensure O(1) complexity when getting random strings from the text files,<br>instead of scanning the file line by line until randomly stopping.

To add new strings to the files, first ensure that your new string is<br>separated by a '%' delimiter character. In order to generate a new DAT<br>file, type

strfile file_name.txt

The DAT and text files are by default installed in /usr/local/share/fate/.

About

A program providing alternative, spiritually accurate diagnostics for Linux PIDs.

Topics

linux

shell

unix

fortune

command-line-tool

Resources

Readme

License

GPL-3.0 license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

stars

Watchers

watching

Forks

fork

Report repository

Releases

Version 0.9

Latest

Jun 19, 2026

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

94.0%

CMake<br>6.0%

You can’t perform that action at this time.

files fate program horoscope linux search

Related Articles