This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Getting Elgato Wave:3 Microphone input "unstuck" on Linux & Pulseaudio | |
# Replace <card-name> with your microphones card name (check "pacmd list-cards") | |
# It looks something like "usb-Elgato_Systems_Elgato_Wave_3_<serial>-00" | |
pacmd set-card-profile alsa_card.<card-name> output:analog-stereo | |
pacmd set-card-profile alsa_card.<card-name> input:mono-fallback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker_ps_formatted(){ docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}" } | |
# dockerg [ARGS] SEARCH | |
# basically docker ps | grep SEARCH | xargs docker ARGS | |
# but all args are optional | |
# e.g. 'dockgerg bank' -> check which services are found; dockgerg logs --tail 15 bank -> log the service | |
# e.g. 'dockerg start Exited' -> start all containers with status 'Exited' | |
dockgerg(){ | |
if [ "$#" -eq 0 ]; then docker_ps_formatted; return; fi | |
SEARCH=${@:$#}; | |
if [ "$#" -eq 1 ]; then docker_ps_formatted | grep $SEARCH; return; fi |