Skip to content

Instantly share code, notes, and snippets.

View ser's full-sized avatar
🎯
Focusing

ᎠᎡ. Ѕϵrgϵ Ѵictor ser

🎯
Focusing
View GitHub Profile
@ser
ser / gpspipe.md
Created July 18, 2022 02:14 — forked from nickoala/gpspipe.md
Log GPSD Outputs and Extract Lat/Lon

Log GPSD Outputs and Extract Lat/Lon

$ gpspipe -w             # log to stdout
$ gpspipe -w -o abc.log  # log to a file

To auto-log on startup, insert the following line to the file /etc/rc.local:

@ser
ser / reflect.py
Created July 12, 2019 14:34 — forked from 1kastner/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):