const uuid7 = (date) => {
const n = BigInt(Math.floor(new Date(date))) << 80n | 7n << 76n | BigInt(Math.random() * 2 ** 12 >>> 0) << 64n | 2n << 62n | BigInt(Math.random() * 2 ** 32 >>> 0) << 30n | BigInt(Math.random() * 2 ** 30 >>> 0)
return `${(n >> 96n).toString(16).padStart(8, "0")}-${((n >> 80n) & (2n ** 16n) - 1n).toString(16).padStart(4, "0")}-${((n >> 64n) & (2n ** 16n) - 1n).toString(16).padStart(4, "0")}-${((n >> 48n) & (2n ** 16n) - 1n).toString(16).padStart(4, "0")}-${(n & (2n ** 48n - 1n)).toString(16).padStart(12, "0")}`
}
the post-receive hook is written in python and i hated every minute of it
but it will be low-maintenance and stable, and it has zero dependencies beyond the standard library
for something which needs to interact with the filesystem and output both xml and json that’s pretty good
this is all set up on my end i’m just waiting for my girlfriend to figure out the routing for the server; i gave her a somewhat complex list of demands
or tag+SHA1; shortcuts can generate those and it would guard against adding the same thing twice
i'm now wondering if in addition to normal timestamp-based statuses it would be useful to also have tag+uuid7-based statuses for things like notes or snippets which are not so ephemeral; that might be future work
python HTML processing is bad so the only markup i will support is <example://link> or <example://link>="link text"
i did make this shortcut and i'm working on the post-receive hook and some minimal html files to display the thing but it will probably be done tomorrow
the purpose of CORS is to make sure things which are only on the intranet stay only on the intranet and things which require credentials keep requiring credentials. if your thing doesn't fit either of those cases please just let people use scripts with them
type of guy who doesn't set access-control-allow-origin to the wildcard on a publicly-accessible redirect to a page with access-control-allow-origin set to the wildcard
working copy has shortcuts support; i bet i could real easily and just have a CI pipeline to turn those text files into structured data
the major advantage mastodon gives me from a publishing perspective is just that it has an app i can use from my phone
but i wonder if i could automate some git stuff with Shortcuts to make pushing a small text file of a status to a repo just as simple
beyond that i think the exclusivity of the limited audience leads to a strengthening of the parasocial aspects like
yes you are learning things about a person that not everybody knows but that still doesn't mean you like, know them at all as a person, and it especially doesn't mean they know you
yes there is still the hypothetical problem of “status updates for a limited audience” but in practice i don't find that to be that pressing; just send an email or chat message if you need someone to know you're doing something but don't want the whole world to know
what i mean though is i don't actually like social media that much for having actual conversations, and for status updates you can get away with something much simpler
Administrator / Public Relations for GlitchCat. Not actually glitchy, nor a cat. I wrote the rules for this instance.
“Constitutionally incapable of not going hard” — @aescling
“Fedi Cassandra” – @Satsuma
I HAVE EXPERIENCE IN THINGS. YOU CAN JUST @ ME.
I work for a library but I post about Zelda fanfiction.