77 karma · joined Oct 11, 2018 (8y ago) · 34 submissions
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
[0] https://www.rsaconference.com/Library/presentation/USA/2019/...
comment 2y ago · link · parent
The file type mechanism is written here[0]. There's a list of all signatures we detect here[1]. The magic implementation is here[2].
[0] https://github.com/gchq/CyberChef/blob/master/src/core/lib/F... [1] https://github.com/gchq/CyberChef/blob/master/src/core/lib/F... [2] https://github.com/gchq/CyberChef/blob/master/src/core/lib/M...
comment 3y ago · link · parent
async function* infinite() {
while (1) {
yield 'example'
}
}
(async function () {
for await (const value of infinite()) {
console.log(value)
}
})()
If the generator was consumed all at once, this would never print (because the generator is infinite). `for await... of` should only consume a single step of the stream / generator at a time. It's just syntactic sugar for the usual calls to .next() and etc. See the docs here[0][0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
comment 3y ago · link · parent
[0] https://addons.mozilla.org/en-GB/firefox/addon/sponsorblock/
comment 3y ago · link · parent
[0] https://github.com/gchq/Bailo/tree/main/lib/p-mongo-queue
comment 3y ago · link · parent
Seems to be because in the original example each of the divs have an 'onClick' assigned to them, so 'tabindex' is the right way to make them focusable by a keyboard user.
<v-list-item @click="method">
<v-list-item-title>Option 1</v-list-item-title>
</v-list-item>comment 3y ago · link · parent
[0] https://www.gov.uk/guidance/how-to-publish-on-gov-uk/images-...
comment 3y ago · link · parent
comment 4y ago · link · parent
We've found that NextJS's Incremental Static Regeneration[0] hits the sweet spot for when we have needed to do this. Specifying a regeneration time allows us to say 'this data can be at most X seconds old' but if thousands of users hit a URL at once only one request is made.
[0] https://nextjs.org/docs/basic-features/data-fetching/increme...
comment 4y ago · link · parent
https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z...
Let us know if it's not working on your device, :)
comment 4y ago · link · parent
The built-in plugin system allows me to automate tasks that would be impossible in other note taking applications. I'd likely only recommend Trilium for super-users intending to extend it with their own functions. For simple note taking, other apps are more polished. None are more powerful though, I feel!
comment 4y ago · link · parent
Here's an example of me trying to format a 100mb file.
comment 4y ago · link · parent
comment 6y ago · link · parent
Otherwise, you'd reach a word like 'and' and couldn't possibly follow it with a logical statement that follows on from the previous part.
comment 6y ago · link · parent