yo people, im working on this new site for @altbot, it's super cool!! can you let me know your thoughts?
件のスクリプトがどうやって自分を返してるのか不思議だったんだけど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");
:
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.