From 778bf9df9d8dfa48c392300b81b36786f2939eb5 Mon Sep 17 00:00:00 2001 From: encrypt Date: Fri, 25 Mar 2016 13:29:53 +0100 Subject: [PATCH] miao miao --- LICENSE.txt | 7 +++++++ README.md | 4 ++++ immaginibuongiorno.sh | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100755 immaginibuongiorno.sh 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