Skip to content

Instantly share code, notes, and snippets.

View devashishp's full-sized avatar

Dev Purandare devashishp

View GitHub Profile
devashishp /
Last active July 13, 2018 00:02
Quickly create fortune databases out of your favorite (out-of-copyright) books and texts!

Fortune is a unix utility

  1. Download the plain-text of your favorite book :
  2. Name the file what you want the fortune command to invoke
    • eg alice
  3. Change line endings from DOS to unix :
    • :set ff=unix in vim
  4. Delete the preamble and license at the end
  • (while respecting it)