Skip to content

Instantly share code, notes, and snippets.

View danielkucera's full-sized avatar

Daniel Kucera danielkucera

View GitHub Profile
#!/usr/bin/python3
import serial
import time
echo_back=False
#echo_back=True
ser = serial.Serial('/dev/ttyUSB0',
300,
@danielkucera
danielkucera / gist:a546709303ecdec0af53f3c55177119a
Last active May 3, 2022 19:59 — forked from geohot/gist:569e9e4b20fd41203d8da71c6022be15
instructions to install openpilot on a pixel 3 running android 9
# instructions to install openpilot on a pixel 3
# enter fastboot with power + volume down
# make sure bootloader is unlocked
# make sure modern version of android platform tools is installed
mkdir pixel
wget https://dl.google.com/dl/android/aosp/blueline-pq3a.190801.002-factory-f3d66c49.zip
unzip blueline-pq3a.190801.002-factory-f3d66c49.zip
cd blueline-pq3a.190801.002/
./flash-all.sh
@danielkucera
danielkucera / ethernet-up
Last active March 24, 2021 13:10
lkv373a-v4
booting time: 84ms
mmpAxiSpiInitialize() ENTER
AxiSpiSetClkDivider 0x00
mmpAxiSpiInitialize() LEAVE
========================================
NOR (0, 0) init
========================================
Manufacturer : 0xEF
Device ID1 : 0x4018
@danielkucera
danielkucera / .travis.yml
Created May 4, 2020 13:00
Travis config for KiCad schematic PDF generation
language: minimal
services:
- docker
env:
global:
- SCHFILE=wiring.sch
- PDFFILE=wiring-$TRAVIS_COMMIT.pdf
kind: ServiceAccount
apiVersion: v1
metadata:
name: ldap-group-syncer
namespace: openshift-authentication
labels:
app: cronjob-ldap-group-sync
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
- .dockerignore
- dockerd - containerd - runc
https://github.com/kratochj/docker-advance-training-exercise
- CMD vs ENTRYPOINT
- signal handling
@danielkucera
danielkucera / smaz-orig.c
Created September 2, 2019 09:02
smaz-orig.c
#if ITX_BOOT_TYPE == ITX_HOST_BOOT
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <arpa/inet.h>
/* magic file header for compressed files */
static const unsigned char magic[4] = { 'S', 'M', 'A', 'Z' };
@danielkucera
danielkucera / compal-decrypt.c
Last active July 3, 2023 23:02
compal-decrypt.c
/*
Program for decrypting Compal CH7465LG private key
Compilation:
gcc -o compal-decrypt compal-decrypt.c -lcrypto
Running:
./compal-decrypt
usage: ./compal-decrypt <infile> <outfile>
@danielkucera
danielkucera / part-extract.sh
Created March 12, 2019 19:01
part-extract.sh
SRC=$1
DIR=$SRC.ext
mkdir $DIR
eval `fdisk -l $SRC | grep ^$SRC | awk '{ print "dd if='$SRC' bs=512 of='$DIR'/"$1" skip="$2" count="$4" ; "; }'`
@danielkucera
danielkucera / recvlkv373.py
Created February 11, 2019 10:58
./recvlkv373.py 226.2.2.2 2068 out.mjpeg
#!/usr/bin/env python
import socket
import binascii
import sys
def main():
MCAST_GRP = sys.argv[1]
MCAST_PORT = int(sys.argv[2])