Skip to content

Instantly share code, notes, and snippets.

@id628
id628 / README.md
Last active November 1, 2026 03:40
XGIMI Titan Noir (Max) — ESPHome serial-control bridge for Home Assistant (power-on from standby, source/mode/brightness, remote keys, temp sensor)

XGIMI Titan Noir (Max) — Home Assistant control over serial

Native Home Assistant control of an XGIMI Titan Noir / Titan Noir Max projector over its USB-to-RS232 serial interface, using a cheap ESP32. The Titan Noir has no shipping IP control, but serial works — including power-on from standby, which BLE and CEC can't do dependably.

Before you invest time in this: it's a tinkerer's project (an ESP32, a USB-serial cable, a few jumper wires, ESPHome) — and there's one projector quirk that trips everyone up. Read The catch below first. Depending on your

@Incipiens
Incipiens / lcc.sh
Created March 20, 2026 16:10
This is my script that I use for launching an instance of Claude Code using my local LLM, and it was written for an XDA article. Save it, edit the IP and port, and mark as executable to use.
#!/usr/bin/env bash
# lcc - Local Claude Code launcher
# Points Claude Code at a local LLM served by llama.cpp on your GB10 device
#
# Usage:
# lcc <modelname> — launch Claude Code with the specified model
# lcc <modelname> [args] — pass additional arguments to claude
# lcc — show help/launch with model if one is available
#
# Prerequisites:
@jlpouffier
jlpouffier / voice_preview_edition_experimental_streaming_wake_word_firmware.yaml
Created December 16, 2024 20:45
Voice Preview Edition Experimental Streaming Wake Word Firmware
substitutions:
# Phases of the Voice Assistant
# The voice assistant is ready to be triggered by a wake word
voice_assist_idle_phase_id: '1'
# The voice assistant is waiting for a voice command (after being triggered by the wake word)
voice_assist_waiting_for_command_phase_id: '2'
# The voice assistant is listening for a voice command
voice_assist_listening_for_command_phase_id: '3'
# The voice assistant is currently processing the command
voice_assist_thinking_phase_id: '4'
@hacker1024
hacker1024 / lockly_cloud_api_details.md
Last active October 5, 2022 03:11
Lockly cloud API details

Lockly cloud API details

This documentation has moved to a dedicated site.

@crates
crates / filterViaSpam.js
Last active May 30, 2024 19:48
Filter out "via" spam from Gmail (using script.google.com)
function processMessages(thread, label, search) {
var messages = thread.getMessages();
for (var j = 0; j < messages.length; j++) {
var message = messages[j];
var body = message.getRawContent();
if (typeof search === 'string') { // used for single-string searches:
if (body.indexOf(search) > -1) {
thread.addLabel(label).markRead().markUnimportant().moveToArchive();
cd /usr/local/src
git clone https://github.com/OpenZWave/open-zwave.git
cd open-zwave
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.42.tar.gz
tar -zxvf libmicrohttpd-0.9.42.tar.gz -C libmicrohttpd
cd libmicrohttpd
apt-get install libmicrohttpd10
./configure && make && make install
cd ../
git clone https://github.com/OpenZWave/open-zwave-control-panel.git
@Dianoga
Dianoga / nest.devicetype.groovy
Last active September 16, 2018 02:09
Nest Device Type for SmartThings
/**
* Nest Direct
*
* Author: dianoga7@3dgo.net
* Date: 2013-07-18
* Code: https://gist.github.com/Dianoga/6055918
*
* INSTALLATION
* =========================================
* 1) Create a new device type (https://graph.api.smartthings.com/ide/devices)
@robby1066
robby1066 / deal-with-me-google-apps-script.js
Last active March 20, 2021 22:14
A short Google Apps script that will label any starred items in your inbox that are older than 14 days with a "DEAL WITH ME" label. Go to https://developers.google.com/apps-script/reference/gmail/ for documentation.
/**
* Get the "DEAL WITH ME" label, or create it if it doesn't exist
* This is called by the other two functions, you shouldn't need to call it directly
*/
function _getNaggingLabel() {
/**
* If you'd like your label to say something different, modify it here
*/
var nagging_label_text = "DEAL WITH ME";