Eventually, they'll have a version of the file for each minute in the day. After that, the hash should ensure that no additional space is used to store the content. (I think, I don't know much about git internals.)
After that, if you assume 128 bytes per commit (timestamp, and maybe a hash or two saved?) then probably around 14 years.
Every commit will need a new tree object, containing the names, hashes, and chmod of each file/folder in the root (LICENSE, README.md, _config.yml, index.html, and bin).
I modified the script to commit as fast as possible (cycling the minutes between 1 and 60), and after 600 commits, doing "git gc --aggressive" before and after, the .git directory grows by around 460 bytes per commit.
Actually, we could just run `git commit --amend` every time and then force push. That brings troubles if I ever make other changes on another pooter though
* Fast (no server side scripts running on get requests)
* Safe (no server side scripts running on get requests)
* Version controlled (every version of the time is stored in version control in case of time warp)
65 comments
[ 6.3 ms ] story [ 123 ms ] threadWhat can one say. At least they didn't use Kubernetes for that.
An opportunity lost if you ask me.
btw can I send a PR to your repo?
After that, if you assume 128 bytes per commit (timestamp, and maybe a hash or two saved?) then probably around 14 years.
I modified the script to commit as fast as possible (cycling the minutes between 1 and 60), and after 600 commits, doing "git gc --aggressive" before and after, the .git directory grows by around 460 bytes per commit.
Also have at least three instances running, for redundancy and zero-downtime updating.
Right now, UTC is 10:39, not 03:39.
But hey, at least this page kinda works without JavaScript.
https://github.com/smaslennikov/whattimeisitrightmeow/issues
SSCG: Static site clock generator.
* Fast (no server side scripts running on get requests) * Safe (no server side scripts running on get requests) * Version controlled (every version of the time is stored in version control in case of time warp)
> Version controlled (every version of the time is stored in version control in case of time warp)
Magnificent.
https://www.youtube.com/watch?v=wfvEgWINUFc
> I woke up one morning after seeing the traeish of Bojack Horseman and thought
What does traeish mean? I tried to google but that didn't help much.
If you write Go every now and then you might get it.
While everyone around me is a gofan, I haven't touched it yet.
I'm laughing a lot more than I should at this.
Need some kind of quorum/consensus algorithm in order to handle duplicate PR's though.
http://pageoftext.com/wikiclock
And they're up to >13,000 revisions already...
http://pageoftext.com/PH_page_revisions&nm_page=wikiclock