Skip to content

Instantly share code, notes, and snippets.

@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: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: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: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: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: