This file contains 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
local preload = type(package) == "table" and type(package.preload) == "table" and package.preload or {} | |
local require = require | |
if type(require) ~= "function" then | |
local loading = {} | |
local loaded = {} | |
require = function(name) | |
local result = loaded[name] | |
if result ~= nil then |
This file contains 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/bash | |
# | |
# Loads / unloads pulseaudio loopback module in order to eg. be redirect | |
# mic input to headphones. | |
# | |
# Usage: mic-loopback [on|off] | |
# | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 [on|off]" |