All Projects → cirla → sharkattack

cirla / sharkattack

Licence: MIT license
Live dangerously.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Shark Attack

Live Dangerously

Tired of running boring terminal commands from the safety of dry land? Spice up your day with the pervasive danger of a shark attack.

1. Demo

plain mode, for those who like to keep it simple. VT100 compatible.

Plain Mode Demo

State of the art color mode for VGA displays.

Color Mode Demo

Terrifyingly realistic curses mode for the true thrillseeker.

Curses Mode Demo

2. Installation

2.1 Prerequisites

  • Python 2
  • Galeophobia of some degree

2.2 sharkattack

  1. Put sharkattack somewhere in your $PATH.
  2. Put the sharks folder somewhere. /var/lib/sharkattack will do nicely.
  3. Put sharkattack.sh somewhere else. Source it in your .bash_profile.
  4. Use shark_alias instead of boring old alias to add a little danger to your life.
. /path/to/sharkattack.sh
shark_alias ls 'ls -GFh' 2 # 2% chance of sharkattack
shark_alias ll 'ls -GFhAlp' 2
shark_alias cointoss "echo 'SAFE.'" 50 # 50% chance of sharkattack

3. Configuration

You can override the following env variables:

  • SHARK_ATTACK_DATA: Where the important data (sharks folder) lives. Default: /var/lib/sharkattack
  • SHARK_ATTACK_MODE: How realistic do you want your sharks? (plain, color, or curses) Default: curses

If you want to live really dangerously, why not combine Shark Attack with a healthy sprinkling of shopt -s expand_aliases in your production scripts? (Warning: this will almost certainly get you fired. Hooray!)

4. Cat Mode

Terrified of sharks? Obsessed with cats? Live luxuriously with sharkattack: Cat Mode!

  • Follow the same configuration steps as above, but copy the very important cats folder into your data destination.
  • Use cat_alias instead of boring old shark_alias to add a little cat action to your life.

5. License

This software is distributed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].