Skip to content

Instantly share code, notes, and snippets.

@tomvdb
tomvdb / gist:4267270
Created December 12, 2012 12:05
Sniffing Bluetooth traffic between Samsung Galaxy S3 and Bluetooth Device Recipe
Ingredients:
(1) Rooted Samsung Galaxy S3 (CF-Auto-Root, SuperSU, adbd Insecure)
(2) https://github.com/d34th4ck3r/Hcidump-in-Android (only need the binary in libs/armeabi)
(3) Bluetooth Device
Method:
on pc:
@tomvdb
tomvdb / gist:8842542
Created February 6, 2014 11:37
STM32 Toolchain on Ubuntu Instructions
* Install GCC toolchain
tar xjvf gcc-arm-none-eabi-4_7-2013q1-20130313-linux.tar.bz2
sudo mv gcc-arm-none-eabi-4_7-2013q1-20130313-linux /opt/ARM
echo "PATH=$PATH:/opt/ARM/bin" >> ~/.bashrc
source ~/.bashrc
arm-none-eabi-gcc --version
* Build ST Link
@tomvdb
tomvdb / gist:9311276
Created March 2, 2014 18:31
github add code
(1) create repo and init on github
(2) clone to local
(3) add code
(4) git add -A
(5) git remote set-url origin <add remote url>
(6) git commit -m 'initial commit'
(7) git push origin master
@tomvdb
tomvdb / gist:299bb68b2c8433637b02
Last active August 29, 2015 14:12
ESP8266 Updating using ESP Tool
Before you begin: It worked for me, and may work for you, but I take no responsibility if your ESP8266 module stops working after attempting this.
You need the original esp_flasher.zip file from Sebastians instructions found at https://developer.mbed.org/users/sschocke/code/WiFiLamp/wiki/Updating-ESP8266-Firmware
-------------------------------------
Connections:
VCC to 3.3V
GND to ground
CH_PD to 3.3V
TXD to RX, RXD to TX
@tomvdb
tomvdb / gist:8ced01dc3287298b90cd
Last active December 4, 2023 10:05
Bluetooth Raspberry PI 3 - Serial Port Service Setup
# open bluetooth service config
sudo nano -w /etc/systemd/system/bluetooth.target.wants/bluetooth.service
# add compatibility mode
# add sp profile
# these lines need to be edited/added to above bluetooth.service
ExecStart=/usr/lib/bluetooth/bluetoothd -C
ExecStartPost=/usr/bin/sdptool add SP
@tomvdb
tomvdb / gist:11dde6d41c4387784e2354e549d4cc47
Created June 21, 2017 09:04
Quick airwheel pygame example for Flick gesture board
import signal
import pygame
import flicklib
from pygame.locals import *
pygame.init()
pygame.mouse.set_visible(False)
screen = pygame.display.set_mode((400, 300))
done = False
@tomvdb
tomvdb / gist:251de94880ee6de8fe251955fbe4066c
Created November 6, 2017 12:11
Maze Controlled by Flick Shield on Raspberry PI
import maestro
import signal
import flicklib
xpos = 0
ypos = 0
@flicklib.move()
def move(x, y, z):
global xpos
@tomvdb
tomvdb / satnogs_station_monitor.py
Created January 8, 2019 09:30
Simple script that checks the online status of a satnogs station and sends a pushover notification if it's offline, Put in crontab at whatever time interval works for (mine is setup for hourly use)
# simple script that checks the online status of a satnogs station and sends a pushover notification if it's offline
# Put in crontab at whatever time interval works for (mine is setup for hourly use)
# 2019/01/08 - Tom Van den Bon (ZR6TG)
import requests
import httplib, urllib
STATION_ID=62
PUSHOVER_USER_KEY = "USERKEY"
PUSHOVER_API_KEY = "APIKEY"
@tomvdb
tomvdb / ZR6TG Rotator Controller V1
Last active June 25, 2022 08:33
Basic satellite station controller. Basic rotctld server implemented as well as communication to rotator arduinos
[
{
"id": "800528f16bfd8a64",
"type": "tab",
"label": "Az/El Rotator Control",
"disabled": false,
"info": "",
"env": []
},
{
@tomvdb
tomvdb / gist:ef56e56981476c3cc97fa51708f2358e
Created April 19, 2022 19:25
icmultimeter icom 9700 error
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5856