- Put 'nvload.service' into /etc/systemd/system
- chmod 664 nvload.service
- Put 'nvsmi-load.sh' script in e.g. /usr/local/nvsmi-load.sh
- chmod 744 nvsmi-load.sh
- Optionally correct path to the nvsmi-load.sh From root exec cmds:
- 'systemctl daemon-reload'
- 'systemctl enable nvload.service'
- To test if works exec: systemctl start nvload.service
- Check if /tmp/nvsmi-load.log exists and have expected contetn (output of nvidia-smi and if have current date & time at header).
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/bash | |
############################################################################## | |
# | |
# Filename: slim-raspbian.sh | |
# Description: Script to remove bloatware from fresh Raspbian Jessie install | |
# Source: https://github.com/hyper3xpl0iter/helper_scripts.git | |
# Author: Andre Mattie | |
# Email: devel@th3c1inic.org | |
# GPG: B9C0 3976 3CB4 794E D66C 8F75 8AA0 8470 3533 2EDD |
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
/* | |
* resetevents.c | |
* | |
* Created: 2019-01-30 20:43:30 | |
* Author : saper | |
*/ | |
#include <avr/io.h> | |
#include <inttypes.h> | |
//#include <avr/interrupt.h> |
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
/* | |
* resetevents.c | |
* | |
* Created: 2019-01-30 20:43:30 | |
* Author : saper | |
*/ | |
#include <avr/io.h> | |
#include <inttypes.h> | |
//#include <avr/interrupt.h> |
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/bash | |
# Author: Przemyslaw W. [saper_2] | |
# Date: 2019-08-01 | |
# this script check for running process and (re)start it's service. After 4 failures it'll reboot system. | |
# use "-c" parameter for suppress console output messages if script will be run from cron. | |
# you can rename this script as you fit (e.g. check_domoticz.sh :P ) | |
# You cat put this in crontab (run script every 5min): | |
# */5 * * * * /home/pi/check_proc.sh -c |
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
<html> | |
<head> | |
<meta charset="UTF-8"> <!-- kodowanie UTF-8 tego pliku teksotwego --> | |
<!-- sciągnij z https://jquery.com/download/ najnowszy "compressed, production jQuery x.y.z" , | |
wrzuć sciągnięty plik 'jquery-x.y.z.min.js' do tego samego katalogu co ten plik html. | |
Ah, jak klikniesz "Download ...." to otworzy się strona z "tekstem" - po prostu uzyj Plik->Zapisz aby zapisać 'jquery-x.y.z.min.js' :) | |
Dla innych ludzi którzy dotrą do tego :) : popraw wersję jquery jak będziesz ściągał ("x.y.z" to będzie numer wersji) w tagu poniżej "script src=...." | |
--> | |
<script type="text/javascript" src="jquery-3.4.1.min.js"></script> | |
<script> |
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
# Remote IP Checker | |
# | |
# Author: saper_2, 2019 | |
# | |
# version 0.0.1 : Initial release, based on 'Wan IP Checker v.1.2.5' by ycahome (https://www.domoticz.com/forum/viewtopic.php?t=16266) | |
# | |
# | |
# | |
""" | |
<plugin key="REMOTE-IP-CHECKER" name="Remote IP Checker" author="saper_2" version="0.1" externallink=""> |
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
https://www.dghcorp.com/modbus/modbusrtuexceptioncodes.asp | |
https://www.modbustools.com/modbus.html | |
http://forums.mrplc.com/index.php?/files/file/575-supermon-565/ | |
RTU Parser https://store.chipkin.com/products/tools#modbus-rtu-parser |
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
# ********************************************************* | |
# Map sensors from domoticz MQTT:/domoticz/out into: | |
# MQTT:home/sensor/xxx/sensor : {json_data} | |
# | |
# Not advised by MQTT is to use this layout: | |
# MQTT:home/sensor/xxx/yyyy : value | |
# Because, many topics generates additional traffic. | |
# | |
# xxx - domoticz sensor id , | |
# yyyy - sensor value type, e.g.: |
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
#client, protocol TCP, set file name as you like - it'll be displayed in OpenVPN client as connection name. | |
proto tcp-client | |
remote domain.com 12345 # Remote OpenVPN Server DNS/IP and port | |
# tap allow to access LAN traffic without additional routing - not supported by ios and Android | |
dev tap | |
# 'tun' - require additional routing to access LAN resources, but works with android and ios | |
nobind | |
persist-key | |
persist-tun |
OlderNewer