Skip to content

Instantly share code, notes, and snippets.

View mattronix's full-sized avatar

Matthew Frost mattronix

View GitHub Profile
@mattronix
mattronix / teltonika-http-gps-to-cot-atak.py
Last active August 17, 2023 22:26
Converts Teltonika Modem HTTP Post GPS (NMEA) to COT ATAK
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Matthew Frost
Very simple HTTP server in python for converting Teltonika GPS data to ATAK CoT
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
@mattronix
mattronix / playbin-to-tcpserve.py
Created April 20, 2020 17:54
playbin stream to tcp
import traceback
import sys
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst, GObject # noqa:F401,F402
from gi.repository import GLib
# Initializes Gstreamer, it's variables, paths
import traceback
import sys
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst, GObject # noqa:F401,F402
# Initializes Gstreamer, it's variables, paths
Gst.init(sys.argv)
import traceback
import sys
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst, GObject # noqa:F401,F402
# Initializes Gstreamer, it's variables, paths
Gst.init(sys.argv)
import sys
import traceback
import argparse
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst, GObject # noqa:F401,F402
#!/bin/sh
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses.sh
# Orignal Article:
# See https://www.paulfurley.com/randomize-your-wifi-mac-address-on-ubuntu-1604-xenial/
export PATH=$PATH:/usr/bin:/bin
@ECHO OFF
:: Jacob Salmela
:: Matthew Frost
:: 2016-03-09
:: Deploy WindowsServer 2016
wpeinit
echo ** Selecting first disk and reformatting...
echo select disk 0 > diskpart%ID%.txt
@mattronix
mattronix / installsha2017.org.sh
Last active March 20, 2017 18:53
install sha2017.org website.
#! /bin/bash
mkdir sha2017.org
cd sha2017.org
curl -O https://bolt.cm/distribution/bolt-latest.tar.gz
tar -xzf bolt-latest.tar.gz --strip-components=1
php app/nut init
git clone https://github.com/sha2017/sha2017.org public/theme/sha2017.org
sed -ie 's/base-2016/sha2017.org/g' app/config/config.yml
echo "Run'cd sha2017.org' and then run 'php app/nut server:run' to start the development web server."

Keybase proof

I hereby claim:

  • I am mattronix on github.
  • I am mattronix (https://keybase.io/mattronix) on keybase.
  • I have a public key ASDjZ9vPt3xtkcMsng-FlBeD23fvOMSqswAD9I1nfJXQdQo

To claim this, I am signing this object:

@mattronix
mattronix / BMW API Mapping
Last active December 27, 2016 13:52
BMW API Mapping
To use the BMW API all you need is your bearear auth token that you can get from using the remote services interface and intercepting your own traffic:
replace <VINNUMBER> with actual vin number
Flash Headlights:
Endpoint: https://www.bmw-connecteddrive.nl/api/vehicle/remoteservices/v1/<VINNUMBER>/RLF
Type: GET
Sound Horn: