Skip to content

Instantly share code, notes, and snippets.

View himynamesdave's full-sized avatar

David G himynamesdave

View GitHub Profile
This file has been truncated, but you can view the full file.
b'DEVC\x00\x01)\xf4DVIDL\x04\x00\x01\x00\x00\x00\x01DVNMc\t\x00\x01GoPro Max\x00\x00\x00STRM\x00\x01\x05\\STMPJ\x08\x00\x01\x00\x00\x00\x00\x1c\xc4\xc4\x19TSMPL\x04\x00\x01\x00\x01z\xe8STNMc\r\x00\x01Accelerometer\x00\x00\x00MTRXf$\x00\x01\x00\x00\x00\x00\xbf\x80\x00\x00\x00\x00\x00\x00?\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00?\x80\x00\x00ORINc\x03\x00\x01XzY\x00ORIOc\x03\x00\x01ZXY\x00SIUNc\x04\x00\x01m/s\xb2SCALs\x02\x00\x01\x01\xa1\x00\x00TMPCf\x04\x00\x01A\xfd\x84\x00ACCLs\x06\x00\xc9\xfa\xf0\xf5\xd4\x01u\xfa\x7f\xf5\xcf\x01\xf8\xf9\xf5\xf5\x8b\x02\xc2\xf9\x96\xf5c\x03\xd9\xf9\xbd\xf5r\x04\x85\xf9\xc1\xf5E\x05\'\xf9Y\xf4\xbe\x05\xa8\xf9\x83\xf4R\x05\xa9\xf9\xcb\xf4\x14\x05\xdf\xfa\x1c\xf3\xb0\x06[\xfaT\xf3H\x06\xc5\xfay\xf2\xa1\x06\x95\xfa\xe5\xf2S\x06J\xfbA\xf2\x1d\x068\xfb\xdf\xf1\xcc\x06\x16\xfc\x81\xf1B\x06\x07\xfd\x0e\xf0\xc5\x05\xd9\xfd\xe7\xf0S\x05,\xfey\xef\xa1\x03\xd5\xfe\xe7\xee\xba\x02\x9a\xff\x81\xed\xf1\x01\xc0\xff\xd7\xed!\x01\x1d\x00\r\xec\xad\x00\x98\x0
import struct
# header
reserved = struct.pack('<H', 0)
camm_case = struct.pack('<H', 5)
header = (reserved+camm_case)
# sample 0
import struct
# header
reserved = struct.pack('<H', 0)
camm_case = struct.pack('<H', 6)
header = (reserved+camm_case)
# sample 0
b'\x00\x00\x06\x00\x98=\xb5l@\x1d\x14@\x03\x00\x00\x00I"!\xb7L\x97J@\x85\xba5\xd6\xeb\xe3\x06\xc0ff\xb6A\n\xd7\x83?\n\xd7\x83?\x00\x00\x00\x00\x12\xa5\xbd=\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x03\x00\x00\x00\xb4>\x00\xb0\x1dA\x00\x00\xf0='
b'\x00\x00\x02\x00\x00\x00\x00\xbd\x00\x00\x80\xbc\x00\x00\x00;'
@himynamesdave
himynamesdave / print_media.py
Last active November 7, 2022 08:25
Google Spatial Media Telemetry Injector Print mp4 Structure
import os, sys, copy
from pathlib import Path
path = os.path.dirname(sys.modules[__name__].__file__)
path = os.path.join(path, '..')
sys.path.insert(0, path)
from spatialmedia import mpeg as mpeg4_container
filename = sys.argv[1]
{
"extension_type": "property-extension",
"title": "Test name",
"id": "aec48417-4c2e-43d2-af43-7f4e715c5733",
"date": "2018/09/09",
"modified": "2022/05/12",
"related": [
{
"id": "08fbc97d-0a2f-491c-ae21-8ffcfd3174e9",
"type": "obsoletes"
{
"data": {
"user_by_username": {
"id": "101176865463974",
"new_sequences": {
"sequence_keys": [
"T1jwvlYndsWVzhuDHOSb7i",
"UmFYLgu9n15aBxXbiQH6vs",
"BsUTIV4RDXhidW7aM6Zvte",
"Y52dBvChfEaUlLt0TyGMmP",
{
"data": {
"fetch__User": {
"id": "101176865463974",
"feed": {
"page_info": {
"start_cursor": null,
"end_cursor": "AQHRDWjTy_tRjX8xlDDazkWEjj2v2tmNL4TuJPXaDQ-JkJeszQXf-AVmwD90tvJwlxELyUL1IWCeDVrqMPC9a7g-lA",
"has_next_page": true,
"has_previous_page": false
from bs4 import BeautifulSoup
import os, sys, re, json, requests
def get_mapillary_global_acccess_token():
mly_token = ""
res = requests.get("https://www.mapillary.com/app/")
soup = BeautifulSoup(res.text, "html.parser")
for script in soup.find_all('script'):
src = script.get('src')
if src is not None:
{
"title": "Twitter confirms January breach, urges pseudonymous accounts to not add email or phone number",
"excerpt": "Twitter officially confirmed that a January breach led to the leak of information connected to 5.4 million accounts.  Two weeks ago, a hacker on Breach Forums offered email addresses and phone numbers connected to the accounts, which they said ranged from “celebrities, companies, randoms, OGs, etc.”",
"date": "2022-08-05T20:38:17+00:00",
"author": null,
"language": "en",
"url": "https://therecord.media/twitter-confirms-january-breach-urges-pseudonymous-accounts-to-not-add-email-or-phone-number/",
"effective_url": "https://therecord.media/twitter-confirms-january-breach-urges-pseudonymous-accounts-to-not-add-email-or-phone-number/",
"domain": "therecord.media",
"word_count": 515,