Log all incoming http requests.
This is useful when you want to test webhooks locally!
Run this deno command first:
alias howto="gh copilot suggest -t shell" |
import { createServer, IncomingMessage, ServerResponse } from "http"; | |
import { createHash, randomBytes } from "node:crypto"; | |
import { Key } from "@atproto/jwk"; | |
import { | |
OAuthClient, | |
InternalStateData, | |
Session, | |
DigestAlgorithm, | |
} from "@atproto/oauth-client"; | |
import { AtprotoHandleResolverNode } from "@atproto-labs/handle-resolver-node"; |
Log all incoming http requests.
This is useful when you want to test webhooks locally!
Run this deno command first:
If you are using this already, consider changes soon due the discussion around current ESX proposal.
Feel free to keep an eye on udomsay as that will be the implementation reference for consumers.
/* Ultra lightweight Github REST Client */ | |
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const token = 'github-token-here' | |
const githubClient = generateAPI('https://api.github.com', { | |
headers: { | |
'User-Agent': 'xyz', | |
'Authorization': `bearer ${token}` | |
} | |
}) |
React's official website makes a banner, which offers visitors a way to provide humanitarian aid to Ukraine.
React的官方网站做了一个横幅,为访问者提供了向乌克兰提供人道主义援助的途径。
Then, many people went to the React.js Github repository and opened lots of spam issues with anti-US and anti-Ukrainian comments in an apparent form of digital protest. The messages are in English and Mandarin.
然后,很多人到React.js Github 仓库中开了很多带有反美国和反乌克兰 issue,进行一种数字化的抗议。这些信息是用英语和普通话写的。
As noted by @murdats below, there are more URLs than just these 1440 ones, depending on the argument values | |
that are hashed (as the filenames below are MD5 hashes of a few arguments: red/blue pill color, HHMM time, etc.) | |
You can read details about the algorithm used to generate these URLs here: | |
https://news.ycombinator.com/item?id=28448335 | |
--- | |
00:00 https://thechoiceisyours.whatisthematrix.com/generated/v7/high/d43725991d28ffcab04aa716762cf6af.mp4 |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.Free to read online: exploringjs.com/impatient-js/
esm
package.String.prototype.replaceAll()
Promise.any()
_
) as separators in number literals and bigint literals