Skip to content

Instantly share code, notes, and snippets.

@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'
@thyn
thyn / Haprox2.0 standalone
Last active July 25, 2022 22:15 — forked from ryzy/a.sh
Compile OpenSSL 1.0.2 and HAProxy from the source on CentOS 7
# Compile and install HAProxy
rm -rf /tmp/haproxy-current
git clone http://git.haproxy.org/git/haproxy-2.0.git /tmp/haproxy-current
cd /tmp/haproxy-current
make \
TARGET=linux-glibc USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \
USE_OPENSSL=1 SSL_INC=/usr/include SSL_LIB=/usr/lib ADDLIB=-lpthread USE_SYSTEMD=1
make install
# cp /tmp/haproxy-current/examples/haproxy.init /etc/init.d/haproxy
@bsdlme
bsdlme / vagrant-bhyve.md
Last active December 4, 2024 21:35
Setting up vagrant-bhyve on FreeBSD

Using bhyve with vagrant

The following describes how to set up bhyve with Vagrant using the vagrant-bhyve plugin.

Prerequisites

@kriegsman
kriegsman / TwoAnimationsAtTheSameTime.ino
Last active August 19, 2022 17:54
TwoAnimationsAtTheSameTime - one way to run two different animations at the same time.
#include "FastLED.h"
// TwoAnimationsAtTheSameTime
// Example showing one way to run two different animations on
// two different parts of one LED array at the same time.
//
// The three keys to success here are:
//
// 1. Move the drawing of each animation into a separate 'draw' function,
// each of which is called from 'loop()'. Each 'draw' function draws