Skip to content

Instantly share code, notes, and snippets.

View i-infra's full-sized avatar
💖
you're loved

infra i-infra

💖
you're loved
View GitHub Profile
@bryanjhv
bryanjhv / README.md
Created December 19, 2022 19:30
GPSD for GeoClue2 using NMEA over TCP

CLUE-NMEA-GPSD

GPSD for GeoClue2 using NMEA over TCP.

Installation

  1. Copy the XML file to /etc/avahi/services/nmea-0183.service.
  2. Run glue.py in order to start the service (listens on 10110/tcp).
  3. Optionally create a service (systemd or the like) for it to start at boot.
  4. Optionally disable all GeoClue2 sources except network-nmea to use GPS only.
@itdaniher
itdaniher / compile.py
Last active July 17, 2025 07:49
compile python script to ELF on Linux via cython and gcc
import subprocess
import sys
import tempfile
from Cython.Compiler import Main, CmdLine, Options
in_file_name = sys.argv[1]
source = open(in_file_name).read()
out_file_name = in_file_name.replace('.py', '.out')
temp_py_file = tempfile.NamedTemporaryFile(suffix='.py', delete=False)