Skip to content

Instantly share code, notes, and snippets.

View robertfoss's full-sized avatar

Robert Foss robertfoss

View GitHub Profile
@robertfoss
robertfoss / -___-.md
Last active December 25, 2015 16:48
NodeMCU - IoT on the Cheap

Linux

Windows

ESP8266 Flasher
LUA Loader 

Mac / Linux

esptool

Keybase proof

I hereby claim:

  • I am robertfoss on github.
  • I am robertfoss (https://keybase.io/robertfoss) on keybase.
  • I have a public key whose fingerprint is 919D 8CB9 156E 943D D972 9652 7FDF C0FA ADC3 68FB

To claim this, I am signing this object:

#!/bin/bash
# This script is intended to be run from an already existing linux git repo.
# Remove crud from version name
function clean_version()
{
echo $(echo "$1" | cut -f1 -d"-" )
}
#!/usr/bin/python3
import argparse
import os
import sys
import subprocess
def runTest(testName, startIdx):
ret = 0
glctsPath = args.list + "/../../../../../../.."
@robertfoss
robertfoss / vendor_diff_size_linux.sh
Created February 6, 2020 14:27
Compare the diff size between upstream and vendor kernels
#!/bin/bash
# This script is intended to be run from an already existing linux git repo.
# Remove crud from version name
function clean_version()
{
echo $(echo "$1" | cut -f1 -d"-" )
}
#!/bin/bash
# Exit on any error
set -e
# Script expects path of kernel repo to be `linux` and located next to the location of this script
# Normally configured using
$PRODUCT=db845c
#!/bin/bash
set -e
function finish {
sudo udisksctl unmount -b $LOOP_PATH
sudo udisksctl loop-delete -b $LOOP_PATH
img2simg $IMG_INPUT $SIMG_OUTPUT
echo "Updated image $SIMG_OUTPUT"
}
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#!/usr/bin/env python3
import cv2
import numpy
import argparse
# MIPI 10-bit packed Bayer format
# This is a single-plane, 10-bit per pixel, densely packed.
# Each 4 consecutive pixels are packed into 5 bytes (40 bits).
# Each one of the first 4 bytes contains the top 8 bits of each pixel.
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.7.0-rc3 Kernel Configuration
#
#
# Compiler: aarch64-linux-gnu-gcc (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80400