Skip to content

Instantly share code, notes, and snippets.

View larsonmars's full-sized avatar

larsonmars

  • Paderborn, Germany
View GitHub Profile
@larsonmars
larsonmars / post-request-writer.py
Created February 4, 2021 08:18
HTTP Post into File Writing Service
#!/usr/bin/env python3
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
import os
from datetime import datetime
class PostRequestWritingServer(HTTPServer):
_counter = 0
class FileWritingPostRequestHandler(BaseHTTPRequestHandler):
@larsonmars
larsonmars / w2lp.c
Last active February 16, 2019 16:25
WSL windows to linux path converter
/* w2lp.c
*
* 2017 by Lars Stockmann
* released in the public domain
*/
#include <stdio.h>
#define PRE_PATH "/mnt/"