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
ARG UBUNTU_VERSION=22.04 | |
FROM nvidia/opengl:1.2-glvnd-runtime-ubuntu${UBUNTU_VERSION} | |
LABEL authors="Joshua J. Damanik" | |
ARG VIRTUALGL_VERSION=3.1 | |
ARG TURBOVNC_VERSION=3.1 | |
ENV DEBIAN_FRONTEND noninteractive | |
# Install some basic dependencies |
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/bash | |
TMP_PATH=/tmp/work | |
# STORAGE_PATH="/net/sahara/Storage/Security/events" | |
# /net/security/frigate/recordings/2023-04-14/*/front/*.mp4 | |
STORAGE_PATH="/net/security/frigate/recordings" | |
OUTPUT_PATH="/net/security/exports" | |
# list or of monitors with output fps. | |
MONITORS="front 30,doorbell 30,pathway 30,backdoor 30,patio 30" | |
FILES_TOKEEP=14 |
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
if (msg.payload.after.label == "car") { | |
if (msg.payload.type == "new"){ | |
if (msg.payload.after.entered_zones.length > 0 && (msg.payload.after.entered_zones.includes("garage") && msg.payload.after.entered_zones.includes("driveway"))){ | |
return msg; | |
} | |
if (msg.payload.after.entered_zones.length > 0 && (msg.payload.after.entered_zones.includes("driveway") && msg.payload.after.entered_zones.includes("road"))) { | |
return msg; | |
} |
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
[adxl345] | |
axes_map: x,-y,z | |
cs_pin: PC7 | |
spi_bus: spi1 |
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
function gen_numbers() { | |
for (var i = 0; i < 28; i++ ) { | |
var number1 = getRandomInt(12); | |
var number2 = getRandomInt(number1); | |
var number3 = getRandomInt(12); | |
var add_sub = Math.round(Math.random()); | |
if (add_sub) { |
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/bash | |
channel="$1" | |
echo -n "Sending: " | |
cd /opt/rm3/mag_iptv | |
if mkdir /var/lock/rm3; then | |
for (( i=0; i<${#channel}; i++ )); do | |
letter=${channel:$i:1} | |
broadlink_cli --device @cogeco.device --send @$letter.iptv | |
echo -n $letter | |
sleep 0.5 |
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/bash | |
TMP_PATH=/tmp/work | |
STORAGE_PATH="/net/gobi/Storage/Security/events/" | |
OUTPUT_PATH="/net/gobi/Storage/Security/exports" | |
MONITORS="Front Patio Backdoor Pathway" | |
FILES_TOKEEP=7 | |
DOCKER_CMD='docker run -v /net/gobi:/net/gobi:shared -v /tmp/work:/tmp/work --user www-data:www-data jrottenberg/ffmpeg' | |
var=$1 | |
if [ ! -z "$1" ] ; then |
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
PS1=\[\e]0;\u@\h: \w\a\]\[\033[0;31m\]\342\224\214\342\224\200$([[ $? != 0 ]] && echo "[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200")[\[\033[0;39m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h\[\033[0;31m\]]\342\224\200[\[\033[0;32m\]$(pwd)\[\033[0;31m\]]\n\[\033[0;31m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]\[\e[01;33m\]\$\[\e[0m\] |
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
sudo rsync -ahPHAXx --delete --exclude='{/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}' /old/ /new | |
sudo grub-install --recheck --root-directory=/new/ /dev/sda | |
sudo update-grub |