mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

zunda

件のスクリプトがどうやって自分を返してるのか不思議だったんだけど1行目で読んでたね。

$ cat index.js
var code = require("fs").readFileSync(__filename, "utf8");
var server = require("http").createServer(function(req, res) {
try {
res.writeHead(200, {"Content-Type": "text/javascript"});
res.end(code);
} catch {
res.writeHead(500);
res.end();
}
});
server.listen(8080);
$ node index.js
$ curl http://localhost:8080/
var code = require("fs").readFileSync(__filename, "utf8");
: