commit 778bf9df9d8dfa48c392300b81b36786f2939eb5 Author: encrypt Date: Fri Mar 25 13:29:53 2016 +0100 miao miao diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..7040df9 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +Version 2, December 2004 + +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. You just DO WHAT THE FUCK YOU WANT TO. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e0fa1a7 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +immaginibuongiorno-cli +====================== + +CLI client for 'cuz miao miao. diff --git a/immaginibuongiorno.sh b/immaginibuongiorno.sh new file mode 100755 index 0000000..fbbf126 --- /dev/null +++ b/immaginibuongiorno.sh @@ -0,0 +1,5 @@ +#!/bin/bash + + +day=$(date +"%a" | tr '[:upper:]' '[:lower:]' | sed 's/mon/lunedi/;s/tue/martedi/;s/wed/mercoledi/;s/thu/giovedi/;s/fri/venerdi/;s/sat/sabato/;s/sun/domenica/') +curl -s "http://immaginibuongiorno.it" | grep "$day" | grep -oP "(?<=src=\").*(?=\")" | cut -d '"' -f 1 | shuf -n 1