Browse Source

miao miao

encrypt 8 years ago
commit
778bf9df9d
3 changed files with 16 additions and 0 deletions
  1. 7 0
      LICENSE.txt
  2. 4 0
      README.md
  3. 5 0
      immaginibuongiorno.sh

+ 7 - 0
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.

+ 4 - 0
README.md

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

+ 5 - 0
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