Skip to content

Instantly share code, notes, and snippets.

View mikedodo's full-sized avatar

Mike Do mikedodo

  • Greenhouse Software
  • New York
View GitHub Profile
@taylorfinnell
taylorfinnell / chromacomfort.c
Created May 7, 2024 03:00
A Bluetooth to MQTT for integrating the ChromaComfort smart bathroom fan into Home Assistant.
/*
A Bluetooth to MQTT for integrating the ChromaComfort smart bathroom fan into Home Assistant.
This is an extremley rough sketch of an esp32 firmware for bringing the ChromaComfort Smart Fan into
HomeAssistant. It's meant to be flashed on an esp32.
This firmware allows the esp32 to both recv status updates about the fan and also issue requests to the fan. This means
that Home Assistant will stay in sync even if the fan is controlled by the remote.
Note that you will not be able to use your fan as a BT speaker without first unplugging the ESP32.
@lancethomps
lancethomps / close_notifications_applescript.js
Last active January 15, 2026 20:00
AppleScript to close all notifications on macOS Big Sur, Monterey, Ventura, Sonoma, and Sequoia
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = 'close_notifications_applescript';
const CLEAR_ALL_ACTION = 'Clear All';
const CLEAR_ALL_ACTION_TOP = 'Clear';
const CLOSE_ACTION = 'Close';
@rtrcolin
rtrcolin / jiraRefreshTickets.js
Last active January 8, 2024 13:59
Super simple Google Docs integration with Jira Issues/Tickets
// URL for Jira's REST API for issues
var getIssueURL = "https://[Your Jira host]/rest/api/2/issue/";
// Personally I prefer the script to handle request failures, hence muteHTTPExceptions = true
var fetchArgs = {
contentType: "application/json",
headers: {"Authorization":"Basic [Your BASE64 Encoded user:pass]"},
muteHttpExceptions : true
};