Skip to content

Instantly share code, notes, and snippets.

View do-me's full-sized avatar

Dominik Weckmüller do-me

View GitHub Profile
@do-me
do-me / osrm_docker_windows.md
Created October 11, 2021 07:58 — forked from AlexandraKapp/osrm_docker_windows.md
How to set up your own OSRM backend with Docker on Windows

How to set up your own OSRM backend with Docker on Windows

The OSRM docker quick start provides a great explanation on how to set up the container: https://hub.docker.com/r/osrm/osrm-backend/

Yet - for Docker on Windows minor changes were necessary for me (otherwise I'd get "File not found" or "Permission" errors).

This is how it worked for me:

1. Pull the image

@do-me
do-me / server.py
Last active May 27, 2024 08:28 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests (CORS enabled)
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Modified for CORS (Access-Control-Allow-Origin) when e.g. sending requests from the frontend
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer