Skip to content

Instantly share code, notes, and snippets.

View rahedges's full-sized avatar

Robert Hedges rahedges

  • Vizgen
  • United States
View GitHub Profile
@cscorley
cscorley / pulseinput.sh
Created March 16, 2012 23:38
Play audio from line-in in Pulseaudio; unload when finished.
#!/bin/bash
set -e
function get_loopback(){
# Detect the module number module-loopback is on
# If it isn't loaded, then load it.
loopback=`pactl list short modules | grep module-loopback | awk '{print $1}'`
if [ "$loopback" == "" ]; then
loopback=`pactl load-module module-loopback`
fi
#!/bin/bash
# This script belongs in /usr/lib/udev/bluetooth and should be executable
PA_SINK='alsa_output.platform-bcm2835_AUD0.0.analog-stereo'
LOG_FILE=/var/log/bluetooth_a2dp
MAC=$(echo "$NAME" | sed 's/:/_/g' | sed 's/\"//g')
# Set the user you want to run as, 'pi' would be fine for most.
BT_USER=btaudio
@jacobtomlinson
jacobtomlinson / docker-compose.yml
Created March 25, 2021 16:43
Monitoring RAPIDS with Prometheus and Grafana (configs)
version: "3.9"
services:
rapids:
image: rapidsai/rapidsai:0.18-cuda11.0-runtime-ubuntu16.04-py3.8
ports:
- "8888:8888" # Jupyter
- "8786:8786" # Dask communication
- "8787:8787" # Dask dashboard