I hereby claim:
- I am denpamusic on github.
- I am denpa (https://keybase.io/denpa) on keybase.
- I have a public key whose fingerprint is B371 A23C C449 703F F1BF 0927 9CF6 463C BF75 37E8
To claim this, I am signing this object:
"""Collects device data and dumps it to the JSON file.""" | |
import asyncio | |
import json | |
import sys | |
from typing import Any, Final, Optional, Union | |
from pyplumio import ( | |
SerialConnection, | |
TcpConnection, |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import time | |
import threading | |
import traceback | |
from operator import attrgetter | |
import logging | |
import datetime | |
import struct | |
import zlib |
#include "esphome.h" | |
#include "RadSensBoard.h" | |
class RadSens_Sensor : public PollingComponent { | |
public: | |
RadSensBoard radSensBoard; | |
Sensor *radiation_dynamic_sensor = new Sensor(); | |
Sensor *radiation_static_sensor = new Sensor(); | |
Sensor *calibration_value_sensor = new Sensor(); |
#!/usr/bin/env bash | |
WAN_IFACE="eth0" | |
VPN_IFACE="wg0" | |
IPTABLES=/usr/sbin/iptables | |
NP=/usr/sbin/netfilter-persistent | |
default_drop_forward() { | |
$IPTABLES -P FORWARD DROP |
ffmpeg -rtsp_transport tcp \ | |
-i rtsp://smartiptv:[email protected]:6911/Streaming/Channels/101 \ | |
-i rtsp://smartiptv:[email protected]:6911/Streaming/Channels/201 \ | |
-i rtsp://smartiptv:[email protected]:6911/Streaming/Channels/301 \ | |
-i rtsp://smartiptv:[email protected]:6911/Streaming/Channels/401 \ | |
-filter_complex " | |
nullsrc=size=1920x1080 [base]; | |
[0:v] setpts=PTS-STARTPTS, scale=960x540 [upperleft]; | |
[1:v] setpts=PTS-STARTPTS, scale=960x540 [upperright]; | |
[2:v] setpts=PTS-STARTPTS, scale=960x540 [lowerleft]; |
#!/bin/sh | |
### | |
# vpngate.net client for OpenWRT | |
# | |
# This script allows to pull server list from vpngate public VPN server registry and filter | |
# it by country, score, maximum ping and uptime. | |
# | |
# Once server that matches requested criteria found, script will setup openvpn | |
# instance via UCI and perform connection test. |
# /etc/sysctl.conf | |
# Clemens Gruber, 2014 | |
# | |
# Uncomment this to prevent users from seeing information about processes that | |
# are being run under another UID. | |
security.bsd.see_other_uids=0 | |
## I/O |
#!/bin/sh | |
# /etc/profile.d/opkg.sh | |
# 'opkg-upgrade' - tries to upgrade every package to the latest version. | |
alias opkg-upgrade='opkg update; echo; u=$(opkg list-upgradable); [ "x${u}" != "x" ] && (opkg install netifd; echo "${u}" | cut -f1 -d" " | xargs opkg upgrade) || echo Nothing to upgrade.' | |
# 'opkg-save' - saves list of installed packages to /etc/installed-packages.list, | |
# which can then be use to reinstall packages with 'opkg-restore'. | |
# Useful after sysupgrade. |
# Put your custom commands here that should be executed once | |
# the system init finished. By default this file does nothing. | |
set_smp_affinity() { | |
local NR=0 | |
local CPU=1 | |
local ETHIRQS=`cat /proc/interrupts | grep "eth[0-9]" | cut -d: -f1` | |
local PCIIRQS=`cat /proc/interrupts | grep "qcom-pcie-msi" | cut -d: -f1` | |
local USBIRQS=`cat /proc/interrupts | grep "usb" | cut -d: -f1` | |
local IRQS="$ETHIRQS $PCIIRQS $USBIRQS" |
I hereby claim:
To claim this, I am signing this object: