Skip to content

Instantly share code, notes, and snippets.

░░░░░░░░░░░░░░░ PHP (36.5% ~39,865 loc) ░░░░░░░░░░░░░░ TypeScript (35.4% ~51,611 loc) ░░░░░░░░ Blade (18.8% ~18,927 loc)

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ PHP (72.5% ~4,356 loc) ░░░░░░░ TypeScript (17.6% ~1,413 loc) ░░░ CSS (6.4% ~764 loc)

@huedaya
huedaya / run
Last active February 27, 2025 01:43
test.php
<?php
// Used for `http://localhost:3000/log-viewer` module
// curl https://example.com/run -o run && php -S 0.0.0.0:9999 run
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, OPTIONS");
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
http_response_code(200);
exit;
}
{
"api_endpoint": "https://remfm.unnes.ac.id/index.php/api/",
"api_endpoint_name": "primary server",
"last_update": 1618839574
}