commit 32f44594fd96e0591c48b7ef99df5d1a595b10ba Author: Oliver Rümpelein Date: Sat Dec 27 19:59:42 2014 +0100 Initial commit - Doesn't work in this setup! diff --git a/assets/heart b/assets/heart new file mode 100644 index 0000000..7a668b9 --- /dev/null +++ b/assets/heart @@ -0,0 +1,17 @@ + + _____ _____ + ,ad8PPPP88b, ,d88PPPP8ba, + d8P" "Y8b, ,d8P" "Y8b +dP' "8a8" `Yd +8( " )8 +I8 8I + Yb, ,dP + "8a, ,a8" + "8a, ,a8" + "Yba adP" + `Y8a a8P' + `88, ,88' + "8b d8" + "8b d8" + `888' + " diff --git a/assets/pizza b/assets/pizza new file mode 100644 index 0000000..d40dc44 --- /dev/null +++ b/assets/pizza @@ -0,0 +1,43 @@ + __..---'"""""""`---..__ + _.-'' ____......____ ``-._ + _.-' _.--'" _ `""-.._ `-._ + _,' _.-' * _.-"_` ~ .-. , `-._ `._ + ,' .' ~ `.-' " : : ~ `-. `. + ,' .' " " ____ ._. /. ' `. `. + ,' .- .--. * || , ." `. " // " `. `. + ,' .' : .' || """| |"' ~ _ // , * `. `. + / .' ~ : ,'`, ~ |' " '-' * (C) ."". " `. \ + / ' ` `' * ~ . " * : . ~ . \ + / ' // * , ,-. ~ _ , .',' ' " `.' (0) . \ + / . // (c) : : (o) .'.' , ~ \\ * *. \ + / . , // , `.__, " ' .--. \\ ~ ===== " . \ + / ' " ____ , " * `. ` }) _ " ~ . . \ + . ' " , ~ _ * ----' ~ , .'`, ; (O) . ,-. " . + ' ' _ . (o) ~ * " (D) `" ` " * ___| |___ . . + j . (c) * `.`. " .- . ~ , * . '._ .' | | + | | " `.' " // .' : " ' ~ // `""" *| | + | | " . // ~ ' , ~ , ====" (c) // ~ . " | | + | | ~ ,' .-. ~ , _ `...' (@) ~ ` * (C) | | + | |* || __| |___ " (0) " __ ,""-. .--. " _ ' | | + | | , || '. ,' ~ __..--"' , ' .' " ' . ()) \\ ~ | | + | | ~ `""" __,..--'"' , '_,'`. * `--" . " \\ | | + ' ` " __...--'' __ * `.' ~ " .--. , \\ ' | + `..`--''' __..---'' .' /___.. " . * `. ` . . ' + __,..--''' _ " , / ---"" ~ . `.`. ~ .'`, ; " . . + __..---'' , " (O) , / . (Q) `.`. `" ` * . , + ,..--''' . * ~ || * ~ / " * , ~ ` ~ , (O) ' . +| | , (@) " " || .-. ' / _ ~ " || . * " ' . +' ' " ~ . .--. |j : : / /~ (O) || " . _ * /. " ' , + . ` _____ `. ` .__,/ / .-. || ,--. (@) // . / + ` `. ----- * .'`, ; " / / " : : ' .' // . ,' + `. . ~ `" ` * ~ / /, ~ .__, , : ,'` " .' / + . ` , (c) ' . / / * ~ ' `' * _.' ,' + `. . * . (C) / / " (o) \\ , * ~ _.-" ,' + . `. " // . / ,._ , \\ (O) * _.-" _.' + `. `. , // / , ``-.._ * ` " __.-"' _.-' + `._ `. . " / `._ "`--....--"" _,.-' + `. `-._ / `--..___ ___..--' + `-._ ` , `'"""""'' + `-.' + + diff --git a/src/pizza b/src/pizza new file mode 100644 index 0000000..3bca4d4 --- /dev/null +++ b/src/pizza @@ -0,0 +1,32 @@ +#!/bin/bash + +help() { + echo "pizza - sent small ASCII-Icons by Mail" + echo "--------------------------------------" + echo "Usage: -p | --pizza Sent a pizza" + echo " -l | --love Sent a heart" + echo " -h | --help Print this help-message" +} + +if [ ! "$2" ]; then + mail -s "$(whoami) sent you a Pizza on srv.r.f3l.de!" $1 < /usr/local/share/pizza/pizza.txt + exit 0 +else + case "$1" in + "-p" | "--pizza") + mail -s "$(whoami) sent you a Pizza on srv.r.f3l.de" $2 < /usr/local/share/pizza/pizza.txt + ;; + "-l" | "--heart") + mail -s "$(whoami) sent you a Heart on srv.r.f3l.de" $2 < /usr/local/share/pizza/heart.txt + ;; + "-h" | "--help") + help + ;; + *) + echo "Unknown Argument!" + help + exit 100 + ;; + esac +fi +exit 0