Skip to content

Instantly share code, notes, and snippets.

Todd Stellanova tstellanova

Block or report user

Report or block tstellanova

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tstellanova
tstellanova / broadcastify_listen.py
Last active Jun 25, 2019 — forked from wiseman/broadcastify_listen.py
Python 3 code for taking an mp3 stream, such as a police scanner feed from broadcastify, and running it through speech recognition.
View broadcastify_listen.py
"""Does utterance segmentation and speech recognition on an mp3 stream
(like from broadcastify...)
Requires that ffmpeg be installed, and a Microsoft cognitive speech
services API key
(see https://azure.microsoft.com/en-us/try/cognitive-services/?api=speech-services).
"""
import audioop
import collections
@tstellanova
tstellanova / install_opencv_debian.sh
Last active Jun 14, 2019
Installing OpenCV3 on Debian or Ubuntu
View install_opencv_debian.sh
#!/bin/bash
# VERSION TO BE INSTALLED
OPENCV_VERSION='3.4.2'
# 1. KEEP UBUNTU OR DEBIAN UP TO DATE
@tstellanova
tstellanova / install_opencv_debian.sh
Created Jun 14, 2019
Installing OpenCV3 on Debian or Ubuntu
View install_opencv_debian.sh
#!/bin/bash
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |------------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |------------------|--------------|------|-------------|
@tstellanova
tstellanova / Dockerfile_ros_rust.sh
Created May 14, 2019
Docker file for rust plus ros
View Dockerfile_ros_rust.sh
FROM ros
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y --quiet --no-install-recommends install \
curl \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
@tstellanova
tstellanova / px4_osx_dev_setup.md
Last active Mar 24, 2019
PX4 development environment on OSX
View px4_osx_dev_setup.md

Building PX4/Firmware requires a bunch of tools that aren't actually used for firmware builds. Sigh.

setup path to prefer homebrew-installed packages

vi ~/.bash_profile and add:

# Ensure user-installed binaries take precedence
@tstellanova
tstellanova / dump_target_spec.md
Created Mar 16, 2019
Dump the rust platform target specification for a specific target
View dump_target_spec.md
blip:mbox todd$ rustc +nightly -Z unstable-options --print target-spec-json --target=thumbv7em-none-eabihf 
{
  "abi-blacklist": [
    "stdcall",
    "fastcall",
    "vectorcall",
    "thiscall",
    "win64",
    "sysv64"
@tstellanova
tstellanova / pyulog_tips.md
Last active Feb 24, 2019
Extra info from ulog .ulg files using `pyulog`
View pyulog_tips.md

How to use pyulog in a virtualenv to analyze ulog files.

  • Pull ulg file from a running px4_sitl docker container:
docker cp  1e89e238df78:/simu/Firmware/build/px4_sitl_default/tmp/rootfs/log/2019-02-24/21_00_11.ulg .
  • Setup:
mkdir analysis
@tstellanova
tstellanova / carbide_motion_x86_64_debian.md
Created Feb 24, 2019
setting up carbide motion on x86_64 debian
View carbide_motion_x86_64_debian.md
  • Download carbide motion for linux, unzip and untar

  • If you attempt to run the executable you'll likely get an error: qrc:/qml/main.qml:8 module "Qt.labs.settings" is not installed

  • Install Qt5 (use the online installer for linux 64 bit). You may need > 2GB of free space in /tmp to make this work.
    (Use a recovery disk with gparted if necessary to resize a partition to accommodate.)

  • sudo apt-get install qml-module-qt-labs-settings -- this will install Qt/labs/settings/

  • Qt modules are typically installed at:

@tstellanova
tstellanova / initial-rockpi4a-setup.sh
Last active Feb 19, 2019
initial-rockpi4a-setup.sh
View initial-rockpi4a-setup.sh
#!/bin/bash
echo "EDITOR=vi
VISUAL=$EDITOR
export EDITOR VISUAL" > .profile
sudo apt-get update
# headless mode
sudo systemctl set-default multi-user.target
# enable zeroconf / avahi
@tstellanova
tstellanova / install-docker-arm64.sh
Last active Mar 1, 2019
Install docker CE for arm64
View install-docker-arm64.sh
#!/bin/bash
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
You can’t perform that action at this time.