Skip to content

Instantly share code, notes, and snippets.

@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;
}
@huedaya
huedaya / assignment_6653.json
Created November 19, 2024 01:34
sample geolocation data
[
{
"AssignmentId": 6653,
"VehicleId": 139,
"DriverId": 236,
"Lat": 1.34452713497524,
"Lng": 103.99161250800168,
"CreatedAt": "2024-09-13T16:45:51.581+08:00"
},
{
@huedaya
huedaya / test.m3u
Created July 19, 2024 06:16
test.m3u
#EXTM3U
#EXTINF:-1 tvg-id="nrk2" group-title="",nrk2
https://nrk-nrk2.akamaized.net/22/0/hls/nrk_2/playlist.m3u8?bw_low=132&amp;bw_high=5162&amp;bw_start=1062&amp;no_iframes&amp;no_audio_only
@huedaya
huedaya / location-trails.json
Created July 16, 2024 06:15
location-trails.json
[
{
"driverId": "9a65c940-0b7d-4d77-b7da-8fddd36622b0"
"latitude": 1.789827923915587,
"longitude": 103.82482691777622,
"timestamp" 1721110464,
}
]
@huedaya
huedaya / route
Last active March 4, 2024 03:37
public/routingsvc/route
{
"status_message": "Found route between points",
"route_geometry": "aneG_d|xR|ZwIvv@mKd_@nTzZvXlTd_@",
"status": 0,
"route_instructions": [
[
"Left",
"",
5,
"1.319498,103.842142",
@huedaya
huedaya / hi.json
Last active December 29, 2024 03:45
{
"note": "let's connect on twitter/x @huedaya 🧑‍🚀"
}
{
"api_endpoint": "https://remfm.unnes.ac.id/index.php/api/",
"api_endpoint_name": "primary server",
"last_update": 1618839574
}