Skip to content

Instantly share code, notes, and snippets.

View tve's full-sized avatar

Thorsten von Eicken tve

  • Santa Barbara, CA
View GitHub Profile
@tve
tve / flash-ss.sh
Last active February 6, 2024 07:59
Flash SensorStation from rPi
#! /bin/bash -e
# Flash a SensorStation (Compute Module) attached via USB
if [[ -z $1 ]]; then echo "usage: $0 <url>"; exit 1; fi
url=$1
zip=$(basename $1)
img=$(basename $1 zip)img
cd /data
if ! [[ -f $zip ]]; then
@tve
tve / gps-speed.sh
Last active February 1, 2024 21:03
Sensorgnome GPS speed detection
#! /bin/bash
active=$(systemctl is-active gpsd.service)
if [[ "$active" == active ]]; then
echo "Stopping gpsd"
sudo systemctl stop gpsd.service
sudo systemctl stop gpsd.socket
sleep 1
fi
function cleanup {
@tve
tve / fcd-check
Last active February 28, 2024 23:13
Sensorgnome FUNcube check
#! /bin/bash
DEBUG=1 # 1=report whether error or not (recommended)
PASS=none
VAH=/tmp/VAH.sock
# fetch currently active ports from VAH (vamp-alsa-host)
date=$(date +%s)
data="$(echo list | nc -U -i 1 -q 1 $VAH)"
@tve
tve / Dockerfile-mc
Created December 14, 2022 18:28
Moddable SDK docker
FROM debian:stable-slim
RUN set -ex && \
apt-get update &&\
apt-get install -y bash curl vim
WORKDIR /usr/src
# Install ESP-IDF SDK
RUN apt-get install -y git wget flex bison gperf cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
@tve
tve / Dockerfile
Last active December 13, 2022 21:22
Dockerfile for node-red-mcu-plugin
ARG ARCH=amd64
ARG OS=bullseye-slim
ARG NODE_VERSION=18
ARG NODE_RED_VERSION=3.0.2
#### Stage BASE ########################################################################################################
FROM ${ARCH}/node:${NODE_VERSION}-${OS} AS base
# Install tools, create Node-RED app and data dir, add user and set rights
RUN set -ex && \
@tve
tve / model-maker-object-detection-tutorial.ipynb
Created July 26, 2021 19:13
Model Maker Object Detection Tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.