This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import serial | |
import time | |
echo_back=False | |
#echo_back=True | |
ser = serial.Serial('/dev/ttyUSB0', | |
300, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
booting time: 84ms | |
mmpAxiSpiInitialize() ENTER | |
AxiSpiSetClkDivider 0x00 | |
mmpAxiSpiInitialize() LEAVE | |
======================================== | |
NOR (0, 0) init | |
======================================== | |
Manufacturer : 0xEF | |
Device ID1 : 0x4018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: minimal | |
services: | |
- docker | |
env: | |
global: | |
- SCHFILE=wiring.sch | |
- PDFFILE=wiring-$TRAVIS_COMMIT.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- .dockerignore | |
- dockerd - containerd - runc | |
https://github.com/kratochj/docker-advance-training-exercise | |
- CMD vs ENTRYPOINT | |
- signal handling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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' }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Program for decrypting Compal CH7465LG private key | |
Compilation: | |
gcc -o compal-decrypt compal-decrypt.c -lcrypto | |
Running: | |
./compal-decrypt | |
usage: ./compal-decrypt <infile> <outfile> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ; "; }'` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import binascii | |
import sys | |
def main(): | |
MCAST_GRP = sys.argv[1] | |
MCAST_PORT = int(sys.argv[2]) |
NewerOlder