Tweaked docs

This commit is contained in:
Kai Hendry
2015-10-10 17:00:54 +08:00
parent ce54e4c0f1
commit 91873208b7
3 changed files with 5 additions and 18 deletions

View File

@@ -14,6 +14,7 @@ start:
stop:
docker stop $(NAME)
docker rm $(NAME)
sh:
docker exec -it $(NAME) /bin/sh

View File

@@ -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 <http://twitter.github.com/bootstrap>
* **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:
<?php
$bearer_token = 'SECRETEXAMPLESTRING';
?>
# Daily backup
<http://backup.greptweet.com/tweets.tar>
@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
* <http://dabase.com/blog/Docker_container_update_workflow/>
* <http://dabase.com/blog/Experiencing_CoreOS+Docker/>

View File

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