Researched by Robert Quattlebaum [email protected].
Last updated 2020-02-03.
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
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
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 | |
"""Grab a JPEG snapshot from a Ubiquiti camera at a specified interval. | |
Usage: python uvcsnapshot.py -i INTERVAL -c CAMERA -p PASSWORD -o OUTPUT | |
Required arguments: | |
-i interval in seconds | |
-c camera IP address | |
-p camera password | |
-o path to output directory |
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
#!/bin/bash | |
# | |
# Create a 8GB eMMC image for Tesla Model S/X MCU1 | |
# | |
# Example usage: ./mkteslaemmcimg.sh ./vinXXXXX.img ./develop-2019.20.2.1-16-5659e07dfd.img | |
# | |
set -e | |
FIRMWARE=$2 | |
IMAGE=$1 |
Home assistant HUSBZB-1 fw update cheatsheet. SSH into your HA machine and then:
ha core stop
git clone https://github.com/walthowd/husbzb-firmware.git && cd husbzb-firmware
pip install pyserial
pip install xmodem
python3 ncp.py scan
python3 ncp.py flash -p /dev/ttyUSB1 -f ncp-uart-sw-6.7.8.ebl
python3 ncp.py scan