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/sh | |
FPS=30 | |
INRES=1680x1050 | |
test "$OUTRES" || OUTRES=672x420 | |
# if this needs to be fixed, you can use `ffmpeg -sources pulse` to list candidates | |
AUDIO_DEVICE=alsa_output.pci-0000_0b_00.3.analog-stereo.monitor | |
AUDIO_IN="-thread_queue_size 1024 -f pulse -channels 2 -i $AUDIO_DEVICE" |
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/sh | |
if [ -z "$1" ]; then | |
echo "Usage: $0 subdomain.domain.tld" | |
exit 1 | |
fi | |
/root/acme/acme.sh --issue -d "$1" --stateless | |
/root/acme/acme.sh --install-cert -d "$1" \ |
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/sh | |
test "$OUTRES" || OUTRES=672x420 | |
test "$URL" || URL="icecast://source:hackme@hostname.tld:port/index.webm" | |
CODECS="-acodec libvorbis -vcodec libvpx -threads 3 -deadline realtime -cpu-used 4 -g 20 -vb 700k -bufsize 700k" | |
FILTER="-s $OUTRES" |
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
-- pipe the output of this to sort | |
local SDL = require "SDL" | |
local registry = debug.getregistry() | |
local function scanMt(name, mt) | |
for k, v in pairs(mt) do | |
if not k:match("^__") then | |
print(name, k) |
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
echo $CODE > /sys/class/leds/xpad*/brightness | |
(codes 2-5, 11, and 13 ignore other codes until blinking done, but they will immediately apply the most recent code once the blinking's done) | |
0: off | |
1: blink all, then light the default light | |
2: blink #1 a moment, then set #1 and make #1 default | |
3: blink #2 a moment, then set #2 and make #2 default |
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
// each file needs to start with this to make sure the async array/object exists: | |
var async = async || []; | |
// these blocks could be in any order or different files: | |
async.push(function($, loaded) { | |
// loaded(name) returns a $.Deferred object, which modules can wait on or resolve as appropriate. | |
loaded("C").then(function(C) { | |
console.log("loaded A, needed "+C); | |
loaded("A").resolve("apple"); | |
}); |