Coder Social home page Coder Social logo

ascii-pony's Introduction

ASCII Ponies
============

ASCII art of some characters from My Little Pony: Friendship is magic.

Available Characters
--------------------

* Twilight Sparkle (Both as a unicorn and as an alicorn)
* Rainbow Dash (Both with open and with closed wings)
* Fluttershy
* Rarity
* Pinkie Pie
* Applejack (Both with and without the hat)
* Derpy
* Trixie (Both with and without the hat)
* Rose
* Lyra Heartstrings
* DJ Pon3 (Both with and without shades)
* Princess Celestia
* Princess Luna
* Big McIntosh
* Princess Cadance
* Colgate
* Dragon Lord Ember

System Pony
-----------

systempony is a script which shows a pony and system information.
It can be installed system-wide using "make install" (PREFIX selects the
target directory).

The global config is found in $PREFIX/share/ascii-pony/systempony.conf,
(or ./systempony.conf if not installed), user config is in ~/.systempony.conf

Config Variables:
* PONY   : a pony identifier or "random",
           see "./systempony --list" for a list of identifiers
* INFO   : an array of system info to display, "./systempony -h" for a list
* FSTYPE : a file system type used to calculate disk usage (Uses df),
           if empty it will show the total.

Requirements:
    * lsb-release for Distro
    * lxc for Containers
    * bc for CPU_Usage

Generating Images
-----------------

The sources for each character are divided into a file for each color.
The file name is one of these eight colors, with an optional _bright suffix:
black, red, green, yellow, blue, magenta, cyan, white.
See patsi/patsi-render.py --help for details on how the rendered files are
generated and more formats than the Makefile produces.
The makefile produces the following kinds of output:

* ANSI-Encoded Colored text
* Plain Text
* SVG
* PNG
* Shell script
* IRC-Encoded Colored text

Being a Python script, it requires Python in order to run.
Additional requirements will be installed using pip and virtualenv.

The makefile will compile the above formats in ./rendered.

You can cat the colored files on a terminal to see the fancy output (as long as
the terminal supports colors).

Some blank ponies and a template directory can be found inside the
directory /Generic

Installing as MOTD
------------------

### pam.d

Ensure /etc/pam.d/login has the following line:

    session    optional   pam_motd.so  motd=/run/motd.dynamic

Note it does not end with `noupdate`.

Then (for a single pony picture) copy one of the files under rendered/sh to 
/etc/update-motd.d with a name like 20-pony or something like that.

If instead you want to use systempony in the motd, first install it system-wide
(with `make install`), then create the appropriate script that would call it.

License
-------

Dual:

* GPLv3+ : http://www.gnu.org/licenses/gpl.html
* CC-BY-SA 3.0 : http://creativecommons.org/licenses/by-sa/3.0/

ascii-pony's People

Contributors

mbasaglia avatar shlomif avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.