Commit Graph
73 Commits
Author SHA1 Message Date
jomo c545c47ddf use \n instead of \r\n 2014-11-08 01:33:01 +01:00
jomo 653590228f cache valid UUIDs without skin 2014-11-08 01:16:46 +01:00
jomo 230444f866 add clean_images.sh, fixes #4 2014-11-08 00:23:25 +01:00
jomo a1eaaa3de3 delete faces + helms on start (relevant: #4)
since redis is flushed, we don't know about these files anyway
2014-11-07 23:05:29 +01:00
jomo d4cb8e9aef useless menu is useless | mobile 2014-11-06 22:41:47 +01:00
jomo 7b93a1ef98 use CSS for 'fork me on github' banner 2014-11-06 22:40:45 +01:00
jomo 1976ed13c9 correct docs 2014-11-06 22:02:33 +01:00
jomo b48d54afd0 update docs for new handling of fallback, update our own images 2014-11-05 01:59:00 +01:00
jomo e592048ec1 always show image, get steve/alex by UUID, send correct HTTP status codes 2014-11-05 01:40:03 +01:00
jomo 9b3884d85a remove link to latest commit, wasn't working as expected 2014-11-05 00:13:35 +01:00
jomo 6eac9b907d clarify config options 2014-11-05 00:12:08 +01:00
jomo 2a13d1e1c5 💩 💩 💩 💩 genius me
░░░░░░░░░░░░░░░░░░░▄▄▄▄▄▄░░░░░░░░░
░░░░░░░░░░░░█▀█▄▄▀▀░░░░░░▀█▄░░░░░░
░░░░░░░█▀▀▀▀░░░░░░░░░░░░░░░░▀▄▄▄▄░
░░░░░▄▄▀░░░▄█░░░░░░░░░░░░░░░░▄▄██▄
░░░░░█░░▄█▀░░▀▀▀▀▀▄▄░░░░░░░▄▄█░▀█░
░░░░░█░▄▀░░░░░░░░░░░▀▀▀▀▄▄███░░░▀▄
░░░░░▀▄█▄███▄▄░░░▄▄▄▄░░░░▄▀░░░░░░█
░░░░░░█▄█▀██▀░░░░█▀▄▄▀░░█░░░░░░░█▀
░░░░░██░██▀░░░░░▄█▄███░░█░░░░░░░█░
░░░▄▄█▀█▄░░▄▄▄▄░░█░░░░▄▀░░░░░░░█░░
░▄▀░░███▄░░▀▀░▀░░░░░▄█▄░░░░░░░█▀░░
█░░░░█░█▄▄▄▄▄▄▄░░░░░█▀███░░░░░█░░░
█░░░░██████▀▀▀█░░░░░░██░█▄▄▄▄▄█░░░
░░░░░██░▄██▀▀██░█░░░▄▀██▀░░░░▀▀▀▄░
░░░░░█▀██░░▄███░█░░░█▀░░░░░░░░░░░█
░░░░░░▄█▀▀▀██▀░░░░▄▀░░░░░░░░░░░░░▀
░░░░░░▀▄░░░░░░░░▄▀░░░░░░░░░░░░░░░░
░░░░░░░░█▄▀▀▀▄▀▀░░░░░░░░░░░░░░░░░░
2014-11-05 00:07:39 +01:00
jomo b95d011933 use seconds (as stated in config)
timestamps in JS are ms. multiplied config value with 1000 so it's converted to ms
2014-11-05 00:06:15 +01:00
jomo 5f63cfac78 fix stupid bug that would result in never updating images
redis gives us a string. Thus, <time> + <number> resulted in '<time><number>' which was quite a big number and wouldn't ever be bigger than a valid Date
2014-11-05 00:04:50 +01:00
jomo 939d8f10a4 update file date on hash update (face only) 2014-11-04 23:43:39 +01:00
jomo 94911167e6 correct readme 2014-11-03 17:08:19 +01:00
jomo b7b07ffc04 useless menu is useless 2014-11-03 02:16:23 +01:00
jomo a6c74c9831 use 160px as default - 180 results in irregular resized pixels (22,5px) 2014-11-03 02:12:58 +01:00
jomo c03c3ed1cc link lwip in readme 2014-11-03 01:52:31 +01:00
jomo 1ab0ca9913 compress default images 2014-11-03 01:29:01 +01:00
jomo 69be1145b2 add travis status + link to readme 2014-11-03 01:21:56 +01:00
jomo ce8e194b45 mobile friendly website 2014-11-03 01:18:16 +01:00
jomo f71f11aa87 flush redis after connection established, improve bulk.sh 2014-11-03 01:11:19 +01:00
jomo e35106a03b Merge branch 'master' of github.com:Jake0oo0/crafatar 2014-11-02 21:28:22 +01:00
jomoandJake 3025062117 stfu travis 2014-11-02 10:32:36 -06:00
jomoandJake 48a4f12d21 fix gitignore 2014-11-02 10:32:36 -06:00
jomoandJake b59d6ced07 cache non-existing UUIDs 2014-11-02 10:32:35 -06:00
jomo f12b8149be stfu travis 2014-11-02 16:55:42 +01:00
jomo 270149a242 Merge branch 'master' of github.com:Jake0oo0/crafatar 2014-11-02 16:39:35 +01:00
jomo 4d806f5db2 fix gitignore 2014-11-02 16:38:45 +01:00
jomo d387b73bfe cache non-existing UUIDs 2014-11-02 16:37:30 +01:00
jomo 6a4a78767c Merge branch 'master' of github.com:Jake0oo0/crafatar 2014-11-02 16:10:30 +01:00
jomo 19597e232d get commit hash from post-commit hook, see http://stackoverflow.com/a/14924922/2517068 2014-11-02 16:08:40 +01:00
jomo b146a5ea79 merge dem shiet 2014-11-02 15:18:16 +01:00
jomo d6a1117fba add support for heroku redis, catch errors, more logging, auto reconnect 2014-11-02 15:17:03 +01:00
jomo b9848e6e1f show commit hash on site 2014-11-02 14:54:57 +01:00
jomo be42030a0a no need to delete files, just flush redis :] 2014-11-02 05:49:00 +01:00
jomo bdcd3e95c7 add redis to travis 2014-11-02 05:36:46 +01:00
jomo 5da42cdf7b use all the things 2014-11-02 05:34:01 +01:00
jomo ea3204395d tabs -> spaces, add missing semicolons 2014-11-02 05:29:58 +01:00
jomo d9ffa6cc69 make logs useful 2014-11-02 05:24:22 +01:00
jomo b513883d93 use outdated hash on network errors, fixes #5 🍺 2014-11-02 05:15:38 +01:00
jomo 9e46878932 much secure hyper text transfer protocol. wow 🐕 2014-11-02 04:40:06 +01:00
jomo da8ba52717 add redis caching, closes #3. More logs, closes #9 2014-11-02 04:12:00 +01:00
jomo d2a5b3d42e fiy typo, add 'inspired by' to readme 2014-11-01 22:36:32 +01:00
jomo 2d061246c4 fix X-Storage-Type always returning local 2014-11-01 22:17:55 +01:00
jomo 87eb33bca8 update / clean up html 2014-11-01 22:15:23 +01:00
jomo 5f8465c06a fix bug that didn't return error 2014-11-01 21:29:43 +01:00
jomo 6f42903ae0 use helm when hovering on face 2014-11-01 21:29:21 +01:00
jomo 999f2fda37 fix empty 404 image 2014-11-01 21:10:37 +01:00
jomo 1606fac89b add support for helmets (?helm), closes #2. changed '/:uuid/123' to '/:uuid?size=123', closes #10. Bugfixes 2014-11-01 21:03:42 +01:00
jomo a61ac9b6a4 Add favicon link 2014-10-30 01:35:26 +01:00
jomo 0ee2abf3f3 Fork me on GitHub! 2014-10-30 01:30:20 +01:00
jomo 7dcd2fdce4 update URL 2014-10-30 01:21:40 +01:00
jomo b9c5cc97f5 add bulk testing script 2014-10-30 00:21:33 +01:00
jomo d84d55f533 better error handling 2014-10-30 00:21:16 +01:00
jomo a07ca210d6 fix undefined skins_dir, add http_timeout to config 2014-10-29 21:23:36 +01:00
jomo cc159d3620 split code into more modules, fixes #8 2014-10-29 19:53:27 +01:00
jomo e2348bbb9d use 'request' for http actions; remove skins/tmp (was only for debugging); use buffer for skin -> avatar 2014-10-23 23:56:52 +02:00
jomo 1269a9befa missing ; 2014-10-20 02:06:47 +02:00
jomo bed00d6e89 add support for https skin urls
mojang doesn't use this atm, but we don't want to break when they do
2014-10-20 01:57:01 +02:00
jomo aa521eb64d throw more errirs 2014-10-20 01:47:10 +02:00
jomo d4954c062f use steve fallback for examples 2014-10-20 01:35:17 +02:00
jomo 917d686712 use some well known users for examples, add titles 2014-10-20 01:33:16 +02:00
jomo 507e0e9220 add ?default=alex|steve; more error handling 2014-10-20 01:22:59 +02:00
jomo 77bcf9dbe7 prevent large images 2014-10-19 23:36:58 +02:00
jomo fbbbdf02f6 add alex and steve heads 2014-10-19 23:33:23 +02:00
jomo adea3320bc merge 2014-10-19 23:32:13 +02:00
jomo 81c51cdbbe do not extract face on every request, store face only 2014-10-19 23:28:21 +02:00
jomo 48d33eae25 highlight keywords that need to be replaced 2014-10-19 21:31:56 +02:00
jomo 6baf03aa80 typo 2014-10-19 21:05:55 +02:00
jomo dd9574c19b don't process invalid requests 2014-10-19 21:04:47 +02:00
jomo 9de3012702 use 2-space indentation (as we do everywhere else) 2014-10-19 19:08:04 +02:00