Skip to content

Instantly share code, notes, and snippets.

Daniel Kucera danielkucera

Block or report user

Report or block danielkucera

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 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' };
View 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>
View 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 Feb 11, 2019
./recvlkv373.py 226.2.2.2 2068 out.mjpeg
View recvlkv373.py
#!/usr/bin/env python
import socket
import binascii
import sys
def main():
MCAST_GRP = sys.argv[1]
MCAST_PORT = int(sys.argv[2])
View test-bltouch.py
#!/usr/bin/python
import os
import time
import re
import statistics
dev = os.open("/dev/pts/0",os.O_RDWR)
#flush buffer
View i2c-eeprom.py
#!/usr/bin/python
import sys
import time
import os
bus = sys.argv[1] # /dev/i2c-X
addr = sys.argv[2] # 0x50
filename = sys.argv[3]
offset = 0
View email-to-sms.py
#!/usr/bin/python2
import email
import sys
import re
import shutil
import uuid
allowed = [
"sender@gmail.com",
View ble-relay.py
#!/usr/bin/python -u
from bluepy.btle import Scanner, DefaultDelegate
import json
import subprocess
myDevices = [
"f8:f6:98:d7:33:fd", #gas meter
"f8:6a:94:76:a3:76", #power meter
]
@danielkucera
danielkucera / main.lua
Created Mar 11, 2018
radio clock ntp sync
View main.lua
gpio.mode(1, gpio.OUTPUT)
gpio.mode(2, gpio.OUTPUT)
gpio.write(1, gpio.HIGH)
gpio.write(2, gpio.LOW)
synced=0
timeset=0
inchours=0
timezone=1 -- range 1 - 25
You can’t perform that action at this time.