Skip to content

Instantly share code, notes, and snippets.

@charud
Created August 13, 2012 14:06
Show Gist options
  • Save charud/3341070 to your computer and use it in GitHub Desktop.
Save charud/3341070 to your computer and use it in GitHub Desktop.
Lunarize a string from shell
#!/bin/sh
#
# Lunarizer
# =========
#
# Installation
# ------------
# $ curl https://raw.github.com/gist/3341070/44869be7b0b7b7403465a78cde1ec3e3ce6e2788/Lunarizer > lunar; chmod +x lunar
# $ sudo cp lunar /usr/local/bin/lunar
#
# Usage
# -----
# $ lunar Mer lunar!
# aZZå Mer LUnar!!! *kjamar*%
#
if [ $# -lt 1 ]; then
echo "Missing text to lunarize";
echo "Usage: lunar {text}";
exit 2;
fi
curl -d "lunartext=$*&ajax=1" http://tapiren.se/lunarizer/
echo
@charud
Copy link
Author

charud commented Aug 13, 2012

Updated with pull request from https://gist.github.com/3341140
Thanks Julian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment