Skip to content

Instantly share code, notes, and snippets.

/**
* List ALSA pcm plugins.
*
* This code is based on code I saw in PortAudio, which is under the MIT license.
* http://portaudio.com/trac/browser/portaudio/trunk/src/hostapi/alsa/pa_linux_alsa.c
*
* Note that the method used here is quite different to detecting hw devices,
* which iterates over cards, devices and subdevices.
*
* gcc -o pcm_plugins pcm_plugins.c -lasound
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
// ==UserScript==
// @name HN Toolkit
// @namespace http://news.ycombinator.com
// @description Version 1.8 - Various useful things (blacklist/style, saved links, searchyc, splitview, PRE-fix, new preview, title rename) for Hacker News
// @include http://news.ycombinator.com/*
// ==/UserScript==
/*
Written by Xichekolas ... License: 'do whatever you want with it'.
http://news.ycombinator.com/user?id=Xichekolas