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 | |
USERNAME="EDIT_THIS" | |
PASSWORD="EDIT_THIS" | |
# add community repo | |
sed '/community/ {s/^#//; q;}' /etc/apk/repositories > tempfile && mv tempfile /etc/apk/repositories | |
apk update | |
# install sudo (alternative to doas) |
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
import sys | |
import time | |
import re | |
import paho.mqtt.client as mqtt | |
regex_address = re.compile(r'(?:(?P<username>.+):(?P<password>.+)@)?(?P<address>[\w.]+)(?::(?P<port>[0-9]+))?') | |
def on_message(client_src, userdata, message): | |
client_dest, topic_root = userdata |
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
/* | |
* Copyright (c) 2013 Clément Bœsch | |
* | |
* This file is part of FFmpeg. | |
* | |
* FFmpeg is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
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
/* --------------------------------------------------------------------------- | |
** This software is in the public domain, furnished "as is", without technical | |
** support, and with no warranty, express or implied, as to its usefulness for | |
** any purpose. | |
** | |
** main.cpp | |
** | |
** V4L2 RTSP streamer | |
** | |
** H264 capture using middleware_video |
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
from __future__ import division | |
import numbers | |
import operator | |
import math | |
class array(list): | |
def __getitem__(self, y): | |
if isinstance(y, (numbers.Integral, slice)): | |
return list.__getitem__(self, y) |