Skip to content

Instantly share code, notes, and snippets.

Daniel Kucera danielkucera

View GitHub Profile
@danielkucera
danielkucera / .travis.yml
Created May 4, 2020
Travis config for KiCad schematic PDF generation
View .travis.yml
language: minimal
services:
- docker
env:
global:
- SCHFILE=wiring.sch
- PDFFILE=wiring-$TRAVIS_COMMIT.pdf
View ldap-groups-sync.yaml
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
View Docker-advanced.txt
- .dockerignore
- dockerd - containerd - runc
https://github.com/kratochj/docker-advance-training-exercise
- CMD vs ENTRYPOINT
- signal handling
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",
You can’t perform that action at this time.