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
getEnum = function(values) { | |
var obj = {}; | |
values.forEach((v, iter) => { | |
Object.defineProperty(obj, v, { | |
enumerable: true, | |
get() { | |
return v | |
} | |
}); |
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
dan@raspberrypi:~ $ sudo raspivid -t 0 -n -b 1000000 -w 1920 -h 1080 -fps 30 -o - | cvlc -v stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 |
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 | |
swaymsg -t get_workspaces | jq '.[] | select(.focused==true) | .id' |