miao miao

This commit is contained in:
encrypt 2016-03-25 13:29:53 +01:00
commit 778bf9df9d
3 changed files with 16 additions and 0 deletions

7
LICENSE.txt Normal file
View file

@ -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.

4
README.md Normal file
View file

@ -0,0 +1,4 @@
immaginibuongiorno-cli
======================
CLI client for <http://immaginibuongiorno.it> 'cuz miao miao.

5
immaginibuongiorno.sh Executable file
View file

@ -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