Skip to content

Instantly share code, notes, and snippets.

View trisweb's full-sized avatar
🕶️

Tristan Harward trisweb

🕶️
View GitHub Profile
@trisweb
trisweb / streamit.rb
Created May 3, 2012 01:23
Script to run an esound stream from soundflower to a pulseaudio server
#!/usr/bin/env ruby
# Requirements:
# - A PulseAudio server running at the host in TO below.
# - SoundFlower installed
# - ESound installed (on mac, brew install esound)
# Select SoundFlower (2ch) as both Input AND Output devices, then run "streamit start"
# otherwise you don't have to worry about anything; it's a daemon, will run in the background,
# once you're finished just kill esd or run "streamit stop"
@trisweb
trisweb / lastfm_nowplaying.css
Last active April 11, 2022 17:31
Last.fm Now Playing Widget. Just add to a <script> and <style> tag on your site, or load from files, and call getNowPlaying() on page load.
.now-playing {
position: absolute;
right: 20px;
top: calc(50vh - (min(20vw, calc(100vh - 30px)) / 2, 400px));
z-index: 1001;
}
a.now-playing {
opacity: 1;
border: 0;
@trisweb
trisweb / compose.openwakeword.yml
Created October 22, 2023 02:45
Home Assistant Docker Compose Configurations
# Wyoming OpenWakeWord
version: '3.3'
services:
wyoming-openwakeword:
restart: unless-stopped
volumes:
- './data:/data'
ports:
- '10400:10400'
image: rhasspy/wyoming-openwakeword