Skip to content

Instantly share code, notes, and snippets.

View sebastianha's full-sized avatar

Sebastian Hammerl sebastianha

View GitHub Profile
@sebastianha
sebastianha / usb-headset.sh
Created November 15, 2019 08:50 — forked from ef4/usb-headset.sh
Automatically switch all PulseAudio streams to a USB headset
#!/bin/bash
# Adapted from Erik Johnson's script at
# http://terminalmage.net/2011/11/17/setting-a-usb-headset-as-the-default-pulseaudio-device/
#
# Updated by Edward Faulkner <ef@alum.mit.edu> to move existing
# streams and eliminate the extra fork script.
# You'll need to change these to point at your headset device.
OUTPUT="alsa_output.usb-Generic_FREETALK_Everyman_0000000001-00-Everyman.analog-stereo"
@sebastianha
sebastianha / moveable-modal.js
Created June 14, 2018 11:54 — forked from madhums/moveable-modal.js
Making angular-ui bootstrap modal moveable
'use strict';
/**
* Moveable modal
*
* You need to set the options of the provider.
*
* Requirements:
*
* You need angular-ui/bootstrap module