Commit Graph

47 Commits

Author SHA1 Message Date
Kai Hendry
9e5ae5bb05 Fix dangling symlinks caused by previous create.php versions 2014-07-14 01:08:00 +08:00
Kai Hendry
692ca8a780 Clean up old symlink 2014-07-11 15:25:59 +08:00
Kai Hendry
db391ed349 Use gzip to save a crap ton of disk space, closing #45 2014-07-11 15:18:55 +08:00
Kai Hendry
e3aff8b7ee Slow migration from shell to PHP. Sad I know. 2013-07-18 20:48:03 +08:00
Kai Hendry
1e260dfb96 Seems to work, and I'm assuming the bearer_token does not expire.
Obviously $bearer_token needs to be in secret.php
2013-07-14 20:46:09 +08:00
Kai Hendry
f20496642b Working 2013-07-14 20:37:03 +08:00
Kai Hendry
48cfcdc24f Get rid of nodejs/jsontool dependency 2013-06-15 22:09:09 +08:00
Kai Hendry
26d7fecf92 Use id_str not id https://dev.twitter.com/docs/twitter-ids-json-and-snowflake 2013-02-10 11:43:10 +08:00
Kai Hendry
aadd672f78 Magic from Trent 2013-02-10 11:25:00 +08:00
Kai Hendry
3012232680 Get header out 2013-02-09 16:49:17 +08:00
Kai Hendry
4a13e5abc3 Basically working, now I need to resolve some jsontool wranglings 2013-02-09 15:34:33 +08:00
Kai Hendry
a38709d76a About to hack Oauth 2013-02-09 15:01:38 +08:00
Kai Hendry
d78209c75d https://dev.twitter.com/docs/api/1/get/statuses/user_timeline trim_user & include_rts don't play together 2012-10-28 22:57:16 +08:00
Jamie Kitson
ddf8f8f9fd Change 'xmlstarlet' back to 'xml'. 2012-10-28 13:33:07 +00:00
Jamie Kitson
12338f6f56 Get id and created time of original tweet, not retweeted tweet. 2012-10-28 12:12:09 +00:00
Kai Hendry
eaa879dba7 MONSTER XMLSTARLET LINE fixes #17, #14, #15
Many thanks to Jamie Kitson
2012-10-28 13:25:41 +08:00
Kai Hendry
28f9eb45b5 Fix potential subshell issue
Refresh to Jquery 1.8.2
2012-10-28 13:13:24 +08:00
Kai Hendry
8745c4502b Tell people they need to install xmlstarlet explicitly 2012-08-21 12:57:03 +02:00
Kai Hendry
782a06d13f Avoid httpd killing fetchtweets early by executing it off in the background
TODO: some UI if lock is around, to tell folks a fetch is underway
2012-07-24 17:23:31 +02:00
Kai Hendry
3688c5c98d Restore code that expands URLs that twitter provides 2012-07-24 15:31:44 +02:00
Kai Hendry
7cc21c9119 clear appcache symlink if there is one 2012-07-15 21:52:21 +02:00
Kai Hendry
d56275608e fix traps 2012-07-14 17:58:34 +02:00
Kai Hendry
2436e95bd4 various cleanups 2012-07-07 18:16:15 +02:00
Kai Hendry
34207d4d91 fixes #11 2012-07-03 16:23:57 +02:00
Kai Hendry
84bd5a557e refactored with the help of Geir Hauge from #bash 2012-06-27 12:39:18 +02:00
Kai Hendry
f3bdc2aac0 Made xmlstarlet finding code hopefully more POSIX
http://mywiki.wooledge.org/BashFAQ/081
2012-06-27 12:06:39 +02:00
Matthias Rampke
c6f524b5e5 use shell variable instead of alias
for switching xmlstarlet command. bash doesn't like aliases.
2012-06-26 21:54:19 +02:00
Matthias Rampke
ebc6ce12af remove unportable test syntax
[[ ]] is completely unnecessary, [ ] does the trick fine.
2012-06-26 21:22:16 +02:00
Matthias Rampke
94e310791d re-implement header/data splitting in ed(1)
somehow the original way (stdout/stderr) didn't work in dash
(which is /bin/sh in Debian, and rather limited, that is, a good
testing ground for POSIX shell compatibility)
2012-06-26 21:20:28 +02:00
Matthias Rampke
14b6847205 use printf instead of echo -e
echo is not very portable, printf is well-specified

(fail case: dash's builtin echo doesn't know -e)
2012-06-26 20:44:03 +02:00
Matthias Rampke
05d1e94366 find xmlstarlet even if it is called xml
which is the case with at least the Homebrew (OS X) and pkgsrc (many)
package managers.

FIXME: doesn't check if 'xml' is xmlstarlet
TODO: fail explicitly if no
2012-06-26 20:25:31 +02:00
Matthias Rampke
d3443a2a8a specify template to mktemp(1)
mktemp(1) is not specified by POSIX and accordingly inconsistent
across systems - e.g. non-GNU-implementations requiring that there
be some sort of template specified. this appears to be the simplest
more-or-less portable invocation.

use the user name as part of the name for temporary files.
2012-06-26 20:23:07 +02:00
Matthias Rampke
869ceb0398 use /bin/sh as bash is not available everywhere
the script didn't use bash features anyway (at least as far as I noticed)
2012-06-26 20:22:05 +02:00
Jamie Kitson
d200757e6c Quote tweet 2012-05-31 00:09:54 +01:00
Kai Hendry
43b08e2699 quote 2012-05-10 15:35:02 +08:00
Kai Hendry
ec3ab7c63f small code cleanup 2012-04-25 21:09:07 +08:00
Jamie Kitson
a1c536a967 Resolve shortened urls 2012-03-14 14:39:10 +00:00
Kai Hendry
df971681d4 update readme 2012-01-28 13:44:29 +08:00
Kai Hendry
09827f9ab9 hide verbose messages and print OVER CAPACITY clearly fixes #2 2012-01-15 14:32:19 +08:00
Kai Hendry
1c680703c6 Switch create.cgi to output HTML instead of text to allow for better feedback 2011-11-22 00:22:53 +08:00
Kai Hendry
e401ae0207 Merged good suggestions from pixelbeat_ 2011-11-16 04:21:30 +00:00
Kai Hendry
28b86ee989 check initial fetch is an integer 2011-11-13 20:10:32 +01:00
Kai Hendry
b9bcceace4 tidy up, using Jquery from CDN 2011-11-13 18:52:16 +00:00
Kai Hendry
8c8d4a5a8a fix tabs in Jamie's code & add modeline 2011-11-13 18:34:31 +00:00
JamieKitson
863704da8d expand urls 2011-11-13 17:57:14 +00:00
Kai Hendry
d2d20c5696 refactored 2011-11-05 00:05:08 +01:00
Kai Hendry
7fb4cf145c first commit 2011-11-04 23:55:16 +01:00