Skip to content

Instantly share code, notes, and snippets.

View conoro's full-sized avatar

Conor O'Neill conoro

View GitHub Profile
@conoro
conoro / app.js
Last active February 24, 2026 08:34
BTHome/Home Assistant compatible Temperature Sensor using Espruino on NodeConfEU 2018 Badge (Pixl.js)
// NodeConf EU 2018 Badge - BTHome Temperature + Clock Display
// ============================================================
// Broadcasts temperature + button events to Home Assistant
// via BTHome v2 over BLE advertisements.
//
// Time sync: At boot and hourly, the badge scans for a nearby
// ESP32 beacon named "badge-time-sync" that broadcasts the
// current Unix timestamp in BLE manufacturer data. No BLE
// connections needed - purely passive scanning.
//
@conoro
conoro / updating_banglejs.md
Last active August 16, 2025 03:13
Updating the firmware on your NodeWatch/Bangle.js

Updating the firmware on your NodeWatch/Bangle.js

Hi Banglers,

We hope you've been having fun experimenting with your Bangle.js and wanted to let you know about some important updates to the software for it.

The version of software on your Bangle.js is a very early release and has been improved hugely since November. Some of you may have encountered bugs with the middle button or find that some of the newer Apps on banglejs.com/apps don't work as they should.

Updating the software will solve these issues and get you access to new apps such as early Gadgetbridge integration for Android phone notifications.

@conoro
conoro / cross-compile-go-arm64.md
Created April 23, 2016 16:24
Cross-compiling Golang for ARM64 (aarch64) e.g. Pine64 on Fedora AMD64
  • Install Go for Linux the usual way on your main Linux box:
cd
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -zxvf go1.6.2.linux-amd64.tar.gz
sudo mv go /usr/local/
export GOROOT=/usr/local/go
mkdir -p ~/gitwork/go/src
mkdir ~/gitwork/go/bin
@conoro
conoro / George_Foreman_Timer_02.ino
Created December 20, 2023 09:32
Arduino Franken-Timer for George Foreman Grill. ESP32-S2 with Hardware SPI to OLED screen. Tune on simple speaker.
#include "pitches.h"
#include "CountDown.h"
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <Fonts/FreeSans24pt7b.h>
#include <SPI.h>
#define TFT_CS 10
#define TFT_RST 7
#define TFT_DC 5
@conoro
conoro / yunmai_protocol.txt
Created March 28, 2017 14:38 — forked from pwnall/yunmai_protocol.txt
Yunmai smart scale (M1301, M1302, M1303) Bluetooth LE protocol notes
Yunmai smart scale (M1301, M1302, M1303) Bluetooth LE protocol notes
Commands are written to GATT attribute 0xffe9 of service 0xffe5. Responses come
as value change notifications for GATT attribute 0xffe4 of service 0xffe0. These
are 16-bit Bluetooth LE UUIDs, so nnnn is 0000nnnn-0000-1000-8000-00805F9B34FB.
-----
Packet Structure
@conoro
conoro / rpi_64bit_chroot.sh
Last active June 26, 2022 12:53
64-bit Raspberry Pi 4 chroot
sudo apt install -y debootstrap schroot
cat << EOF | sudo tee /etc/schroot/chroot.d/pi64
[pi64]
description=V3D arm64 testing
type=directory
directory=/srv/chroot/pi64
users=pi
root-groups=root
profile=desktop
personality=linux
@conoro
conoro / slugify-hugo.go
Created July 10, 2016 09:52
Add a slug field to every post in Hugo to avoid periods and caps in urls
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"regexp"
"strings"
@conoro
conoro / build_sqlitestudio_raspi.sh
Created February 18, 2022 04:24
Build SQLiteStudio 3 on Raspberry Pi 4 64-bit OS
sudo apt-get install qt5-default qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools tcl tcl-dev libreadline-dev qtscript5-dev libsqlite3-dev qttools5-dev libqt5svg5-dev
curl -o sqlitestudio-3.3.zip https://codeload.github.com/pawelsalawa/sqlitestudio/zip/refs/heads/3.3
unzip sqlitestudio-3.3.zip
cd sqlitestudio-3.3
mkdir -p output/build
cd output/build
qmake "CONFIG += portable" ../../SQLiteStudio3
make
cd ../SQLiteStudio/
./sqlitestudio
@conoro
conoro / workers.csv
Last active February 4, 2022 13:01
Simple example single column CSV file
Roger Flopple
Demetrius Levenworth
Salamander Hammerhead
Ferrari Montenegro
Paul Corduroy
Hank Fracas
Ludwig Von Instagram
Lisa Toboggan
Heather Kerfuffle
Rebecca Beretta
@conoro
conoro / exampledb.json
Last active August 5, 2021 16:08
Using GIST as a simple JSON DB
[
{
"color": "red",
"value": "#f00"
},
{
"color": "green",
"value": "#0f0"
},
{