diff --git a/Makefile b/Makefile index 8b4d3b8..5e9bf3d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ start: stop: docker stop $(NAME) + docker rm $(NAME) sh: docker exec -it $(NAME) /bin/sh diff --git a/README.md b/README.md index a0c0d74..09c3bdb 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ * Uses [HTML offline feature](http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html) * Aims to [suck less](http://suckless.org) by keeping lines of code low -* Dependencies: PHP, curl -* Look and feel by * **Please** review and comment on the code! # Known limitations @@ -17,13 +15,13 @@ # API -Fetch your tweets manually by accessing the URL: +Invoke a fetch of a TWITTER_USERNAME by accessing the URL: http://greptweet.com/f/TWITTER_USERNAME Last 4 tweets: - curl -s http://greptweet.com/u/webconverger/tweets.txt | head -n4 + curl --compressed -s http://greptweet.com/u/webconverger/tweets.txt | head -n4 # Getting a Bearer Token @@ -43,20 +41,8 @@ The response should end like: {"access_token":"SECRETEXAMPLESTRING","token_type":"bearer"} -Save that SECRETEXAMPLESTRING to secret.php: +Save that SECRETEXAMPLESTRING to www/secret.php: - -# Daily backup - - - - @daily cd /srv/www/greptweet.com && git describe --always > version.txt - @daily find /srv/www/greptweet.com/u/ -name '*.gz' -type f -print0 | tar cf /srv/www/backup.greptweet.com/tweets.tar --null -T - - -# Setting up the hosting environment - -* -* diff --git a/www/style.css b/www/style.css index 552c193..5a828fa 100644 --- a/www/style.css +++ b/www/style.css @@ -15,4 +15,4 @@ ul { margin: 0; padding: 0 } ul li { list-style-type: none; display: inline; } -input, button { font-size: 1.1em; max-width: 10em; margin: 0.4em; padding: 0.3em; color: #2d2d2d; outline: none; border-radius: 3px; } +input, button { font-size: 1.1em; max-width: 10em; margin: 0.4em; padding: 0.3em; color: #2d2d2d; border-radius: 3px; }