Skip to content

Instantly share code, notes, and snippets.

View JaapBraam's full-sized avatar

Jaap Braam JaapBraam

  • Wageningen, Nederland
View GitHub Profile
@mik-laj
mik-laj / ring_nearby.py
Created August 16, 2025 17:21
The script that sends ring request to all beacons nearby. https://developers.google.com/nearby/fast-pair/specifications/extensions/fmdn
import asyncio
import struct
import hmac, hashlib
from bleak import BleakScanner, BleakClient, uuids as buuids
from dataclasses import dataclass
FAST_PAIR_SERVICE_UUID = buuids.normalize_uuid_str("fe2c")
# UUID for the advertisement frame as defined in the Table 8.
# The same UUID is used by Eddystone Protocol, but the frame type is different (0x40/0x41).
@mrcodetastic
mrcodetastic / WFH_Emulator.ino
Last active January 29, 2026 21:17
USB Mouse Jiggler (Work From Home (WFH) emulator)
/*
* Compile and flash this firmware onto a ESP32-S2 and then use a seperate micro USB connector
* to connect the S2's Pin 19 to USB D- and Pin 20 to USB D+ (and of course +5V to +5V and GND to GND)
*
* IMPORTANT: On an ESP32-S2 Mini using Arduino IDE, make sure you have 'USB CDC On Boot' set to 'False'
* otherwise the 'USB Device Name' that shows up on Windows will not be correct as per the code below.
*
* It will appear as a 'USB Mouse' in Windows/Linux/Mac, and move the mouse every 30 seconds or so
* that you are always online/green. The ESP's LED will flash briefly when this occurs.
*
@plembo
plembo / CalibreServerOnLinux.md
Last active May 6, 2026 20:07
Calibre Server on Linux

Calibre Server on Linux

Introduction

Calibre is a powerful cross-platform, open source, ebook manager and editing platform. Its calibre-server component can be used to publish an e-book library on a local network. While you can launch calibre-server as a desktop application, it can also be run as a daemon on a headless Linux server.

This tutorial on setting up calibre-server using Ubuntu 14.04 is very good, but dated.