Skip to content

Instantly share code, notes, and snippets.

View hlandau's full-sized avatar

Hugo Landau hlandau

View GitHub Profile
@marcan
marcan / rpi_cam_auth.py
Created January 25, 2019 07:48
Raspberry Pi Camera V2 DRM authentication example
import hmac, hashlib
# Data from I²C trace at https://hackaday.io/project/19480-raspberry-pi-camera-v21-reversed/log/52547-i2c-logic-analyzer-trace
# Secret key from VideoCore blob
# serial[8], serial[7:4], serial[3:0]
serial = bytes.fromhex("EE8C196D8301230B59")
# rPi -> camera random number
numIn = bytes.fromhex("5805F3C898C3133154498E082F2E703516F2DBD1")
@roycewilliams
roycewilliams / CAA-adoption-notes.md
Last active March 23, 2024 12:56
CAA-adoption-notes.md
#!/usr/bin/env ruby1.9.3
require 'pg'
require 'optparse'
require 'tmpdir'
require 'shellwords'
require 'socket'
require 'json'
require 'digest'
require 'public_suffix'
@mgedmin
mgedmin / ppa-gtimelog-copy-packages.py
Created November 28, 2013 09:16
Automate PPA package copies, version 2.
#!/usr/bin/python
"""Copy published precise PPA packages to quantal raring saucy.
Typical usage:
- build a gtimelog package for precise
- dput ppa:gtimelog-dev gtimelog_0.8.1-0ppa0_source.changes
- wait for it to be built
- run ppa-gtimelog-copy-packages