Skip to content

Instantly share code, notes, and snippets.

View lahaxearnaud's full-sized avatar
🎯
Focusing

LAHAXE Arnaud lahaxearnaud

🎯
Focusing
View GitHub Profile
exports.handler = async (event) => {
console.log("value2 = " + event.name);
var text = event.name || "from Lambda";
const response = {
statusCode: 200,
body: JSON.stringify('Hello ' + text),
};
return response;
};
➜ ~ ab -n 1000 -c 10 https://XXXXXXXXXX.execute-api.eu-central-1.amazonaws.com/default/test
// ...
Concurrency Level: 10
Time taken for tests: 16.969 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 305000 bytes
HTML transferred: 19000 bytes
Requests per second: 58.93 [#/sec] (mean)
Time per request: 169.686 [ms] (mean)
/**
* Responds to any HTTP request.
*
* @param {!express:Request} req HTTP request context.
* @param {!express:Response} res HTTP response context.
*/
exports.helloWorld = (req, res) => {
let name = req.body.name || 'World';
@lahaxearnaud
lahaxearnaud / pihole
Last active November 5, 2023 14:11
Pihole
0.0.0.0 adfox.yandex.ru
0.0.0.0 adfstat.yandex.ru
0.0.0.0 adm.hotjar.com
0.0.0.0 ads-api.tiktok.com
0.0.0.0 adtech.yahooinc.com
0.0.0.0 advertising-api-eu.amazon.com
0.0.0.0 advertising.apple.com
0.0.0.0 afs.googlesyndication.com
0.0.0.0 analytics-api.samsunghealthcn.com
0.0.0.0 analytics-sg.tiktok.com