Skip to content

Instantly share code, notes, and snippets.

@JamesHagerman
JamesHagerman / kw88_notes.md
Last active September 24, 2019 04:27
Just my notes on the KW88 watch

KW88 Watch

Asian watch company = no android source code

So, we're kinda on our own here.

Basics

The device comes with a bunch of wonky software on it. The important software to get is Google Play and WatchClockSkin.

@JamesHagerman
JamesHagerman / memes.sh
Last active October 25, 2018 17:54
Alien guy is totally underused. This script changes that. It also supports others, but that's boring...
#!/bin/bash
# Yeah, it's a hack. Deal with it.
# template ids are here: https://api.imgflip.com/get_memes
# Usage:
# memes.sh <bottom text>
# memes.sh -t <top text> -m <template id> <bottom text>
TEMPLATE_ID=101470
TOP_TEXT=
BOTTOM_TEXT=
while test $# != 0
@JamesHagerman
JamesHagerman / my_neo4j_notes.md
Last active July 29, 2019 15:32
Just some notes on standing neo4j up on docker and building graphs

Neo4j notes

Neo4j is a true graph database. Really, a property graph, but it's better than hacking graph data into other databases.

Start an instance of neo4j in docker

Note: This places the data in ~/someProject/data. If you want it somewhere else, you'll have to change this command.

docker run \
@JamesHagerman
JamesHagerman / UnderstandingRedux.md
Last active February 7, 2018 01:15
How not to do things wrong while using Redux... grains of salt shall be gargled

Prologue

The point of this document is to attempt to get people to stop shooting themselves in the foot by thinking a bit differently.

In any case, one of the "beautiful things" about the whole React+Redux community is they're totally okay with letting people shoot themselves in the foot. So, have at it, I guess, if you like that sort of thing...

Past Tense

There is contention on the point of treating React Action Types as things that have happened in the past.

@JamesHagerman
JamesHagerman / My-BBB-Build-Notes.md
Created January 24, 2018 23:14
Some old notes on how I did a BBB kernel/userland build...
@JamesHagerman
JamesHagerman / get_python_tools.md
Created January 24, 2018 21:07
Some of the stuff I always use in python

Obvious Python tools:

sudo apt-get install python-pip
pip install --upgrade pip
sudo pip install ipython
sudo pip install libusb pyusb
sudo pip install pyglet
@JamesHagerman
JamesHagerman / Black-Magic-Probe-flash-notes.md
Last active December 7, 2023 18:12
The BPM is basically the best flashing tool for STM32/ARM chips. Get the hex file for whatever you're flashing (build it, download it, whatever), then follow these directions.

Black Magic Probe - Firmware Flashing

The BPM is basically the best flashing tool for STM32/ARM chips. Get the hex file for whatever you're flashing (build it, download it, whatever), then follow these directions.

Install compiler

First install the arm compiler:

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
@JamesHagerman
JamesHagerman / my_ys1_notes.md
Last active April 25, 2026 15:06
Some useful YARD Stick One notes

Some useful YARD Stick One notes

This thing is a bit of a beast. People don't give it NEARLY the credit, or the documentation it deserves.

Two ways of using this thing: rfcat directly, or write a python script for it.

Basically, writing a python script is easier. Using rfcat directly is great but often, there are just too many silly settings to configure

@JamesHagerman
JamesHagerman / radio-hw-io-ratings.md
Last active February 7, 2022 18:55
Various max input and output power ratings for devices I own

Radio hardware input and output limits

This is a collection of maximum input and output power ratings for a random selection of devices. It's worth double checking them again to be sure...

DOUBLE CHECK THESE

LimeSDR USB

Note: These have not been verified!

@JamesHagerman
JamesHagerman / build-callsign-identifier.sh
Created November 1, 2017 00:36
Text to speech tool to build a wavefile for transmission through an SDR
#!/bin/bash
# I needed a way to
# All of this amounts to:
# espeak -v en -m "<say-as interpret-as='characters'>K M 6 I D A</say-as><break strength='strong' />Software defined radio transmit test<break time='5s' />" -w callsign-plus-sdr-transmit-notice.wav
CALLSIGN="KM6IDA"
MESSAGE="Software defined radio transmit test"
DELAY="5s"