mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Tweaked docs
This commit is contained in:
1
Makefile
1
Makefile
@@ -14,6 +14,7 @@ start:
|
||||
|
||||
stop:
|
||||
docker stop $(NAME)
|
||||
docker rm $(NAME)
|
||||
|
||||
sh:
|
||||
docker exec -it $(NAME) /bin/sh
|
||||
|
||||
20
README.md
20
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 <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/>
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user