Skip to content

Instantly share code, notes, and snippets.

@appleguru
appleguru / mkteslaemmcimg.sh
Last active November 2, 2023 03:24 — forked from wido/mkteslaemmcimg.sh
Tesla Model S/X MCU1 eMMC image creator
#!/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
@appleguru
appleguru / repo-rinse.sh
Created March 20, 2020 03:11 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
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
@appleguru
appleguru / uvcsnapshot.py
Created May 3, 2019 01:51 — forked from LukeLambert/uvcsnapshot.py
A quick-and-dirty script to grab a JPEG snapshot from a Ubiquiti camera at a specified interval.
#!/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