Skip to content

Instantly share code, notes, and snippets.

View urpylka's full-sized avatar

Artem Smirnov urpylka

View GitHub Profile
@urpylka
urpylka / tc358743.sh
Created October 5, 2020 13:09 — forked from remisarrailh/tc358743.sh
Compile raspberry pi 3 kernel to add drivers (tc358743)
###########################
# bcm2835_unicam drivers #
###########################
# DESCRIPTION: Install bcm2835_unicam/tc358743 drivers from 6by9 Linux fork
# This should also work for adv7282m ov5647 (https://github.com/6by9/linux/commit/28ac7b3a2651d4b35204938e6c9ec2e4ba54c34e)
#
# CAUTION
# * Do not start this script! Copy/Paste each command.
# * Compilation will take over 1h30.
# * Any errors can potentially break the entire system
@urpylka
urpylka / exif.py
Created November 23, 2019 09:52 — forked from c060604/exif.py
User python and piexif to write some gps info into jpg pictures.
import os
import piexif
from fractions import Fraction
def to_deg(value, loc):
"""convert decimal coordinates into degrees, munutes and seconds tuple
Keyword arguments: value is float gps-value, loc is direction list ["S", "N"] or ["W", "E"]
return: tuple like (25, 13, 48.343 ,'N')
"""
@urpylka
urpylka / GpsIdf.py
Created November 23, 2019 09:52 — forked from tatesuke/GpsIdf.py
nmeaと突き合わせてjpg画像にexifタグを付加する
import piexif
import re
import datetime
class GpsIdf(object):
def __init__(self, gpsIdf):
self.gpsIdf = gpsIdf