Skip to content

Instantly share code, notes, and snippets.

@rba
rba / README.md
Created February 24, 2024 16:51 — forked from tetele/README.md
ESPHome config - Raspiaudio Muse Luxe as a voice assistant satellite in Home Assistant

Introduction

The purpose of this ESPHome config is to be able to use the Raspiaudio Muse Luxe as a voice assistant satellite in Home Assistant.

Features

  • wake word, push to talk and continuous conversation support
  • response playback
  • service exposed in HA to start and stop the voice assistant from another device/trigger
  • visual feedback of the recording/success/error status via the Luxe's onboard LED
@rba
rba / make-rakudo-spectest.txt
Last active February 25, 2020 14:36
macosx: rakudo-star-2020.01 $rakudo-star-2020.01
[rba:~/data … rakudo-star-2020.01] $ make rakudo-spectest
cd rakudo && /Applications/Xcode.app/Contents/Developer/usr/bin/make spectest
+++ Checking for moar NQP version
cd t/spec && git pull --ff-only
fatal: Not a git repository (or any of the parent directories): .git
make[1]: [spectest_update] Error 128 (ignored)
'perl' -I'/Users/rba/data/src/build-rakudo-star/rakudo-star-2020.01/rakudo/tools/lib' -I'/Users/rba/data/src/build-rakudo-star/rakudo-star-2020.01/rakudo/3rdparty/nqp-configure/lib' t/harness5 --moar --fudge --keep-exit-code --tests-from-file=t/spec/spectest.data
Inline::Perl5 not installed: not running Perl 5 integration tests
You can install Inline::Perl5 into the build directory with
@rba
rba / gist:8b936b99981e917cda0b00d8dcc34208
Created February 25, 2020 09:35
windows: rakudo-star-2020.01>gmake install
C:\Users\rba\Documents\build_rakudo\rakudo-star-2020.01>gmake install
"== Configuring and building Rakudo"
cd rakudo && C:\Strawberry\perl\bin\perl.exe Configure.pl --prefix="C:\rakudo" --backends=moar && gmake
Using C:\rakudo\bin\nqp-m.exe (version 2020.01 / MoarVM 2020.01.1).
Cleaning up ...
You can now use 'gmake' to build Rakudo.
After that, 'gmake test' will run some tests and
'gmake install' will install Rakudo.
gmake[1]: Entering directory 'C:/Users/rba/Documents/build_rakudo/rakudo-star-2020.01/rakudo'
[rba:~/data … ld-rakudo-star/rakudo-star-2020.01] $ cd ports/darwin_dmg
[rba:~/data … kudo-star-2020.01/ports/darwin_dmg] $ type perl
perl is /usr/bin/perl
[rba:~/data … kudo-star-2020.01/ports/darwin_dmg] $ perl package_darwin_dmg.pl --build -v 2020 01
> rm -rf '/Applications/Rakudo'
> perl Configure.pl --gen-moar --prefix /Applications/Rakudo
Configuring and building MoarVM ...
perl Configure.pl --optimize --prefix=/Applications/Rakudo --make-install
Welcome to MoarVM!

server { listen 80; server_name stage.rakudo.org stage-rakudo.rakulang.site;

include snippets/letsencrypt.conf; return 301 https://$host$request_uri;

access_log /var/log/nginx/stage.rakudo.org.access.log; error_log /var/log/nginx/stage.rakudo.org.error.log; }

378175 0 drwxr-xr-x 1 rakudo.org rakudo.org 40 May 26 2017 /home/rakudo.org/public_html
419112 0 drwxr-xr-x 1 rakudo.org rakudo.org 0 Jul 7 2018 /home/rakudo.org/public_html/.well-known
419113 0 drwxr-xr-x 1 rakudo.org rakudo.org 26 Oct 1 09:11 /home/rakudo.org/public_html/downloads
419114 0 drwxr-xr-x 1 rakudo.org rakudo.org 5120 Oct 1 09:12 /home/rakudo.org/public_html/downloads/nqp
420478 1188 -rw-r--r-- 1 rakudo.org rakudo.org 1214851 Dec 20 2012 /home/rakudo.org/public_html/downloads/nqp/nqp-2012.12.tar.gz
420479 1200 -rw-r--r-- 1 rakudo.org rakudo.org 1226447 Jan 17 2013 /home/rakudo.org/public_html/downloads/nqp/nqp-2013.01.tar.gz
420480 1408 -rw-r--r-- 1 rakudo.org rakudo.org 1440223 Feb 23 2013 /home/rakudo.org/public_html/downloads/nqp/nqp-2013.02.1.tar.gz
420481 1408 -rw-r--r-- 1 rakudo.org rakudo.org 1439625 Feb 22 2013 /home/rakudo.org/public_html/downloads/nqp/nqp-2013.02.tar.gz
420482 13

server { listen 80; server_name design.raku.org design.rakulang.site;

include snippets/letsencrypt.conf; return 301 https://$host$request_uri;

access_log /var/log/nginx/design.raku.org.access.log; error_log /var/log/nginx/design.raku.org.error.log; }

@rba
rba / gist:4f791a435cc0c4b2f067bfe32b07a824
Created May 28, 2019 21:59
query permissions on repo level
query {
repository(owner: "perl6", name: "Blin") {
collaborators(first: 100) {
totalCount
edges {
permission
node {
login
name
}
server {
listen 80;
listen [::]:80;
hostname examples.perl6.org;
return 302 https://examples.p6c.dev$request_uri;
}
@rba
rba / ambient.c
Created October 29, 2018 14:22 — forked from infinity0/ambient.c
Set ambient capabilities
/*
* Test program for the ambient capabilities
*
* You need to install libcap-ng-dev first, then compile using:
* $ gcc -lcap-ng -o ambient ambient.c && sudo setcap cap_setpcap,cap_net_raw,cap_net_admin,cap_sys_nice+eip ambient
*
* To get a shell with additional caps that can be inherited do:
*
* ./ambient /bin/bash
*/