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
# Basic sensor, read everything from MQTT | |
- platform: mqtt | |
name: "WLANThermo" | |
# change topic to your modelname! | |
state_topic: "WLanThermo/NANOv3/status/data" | |
value_template: "{{ value_json.system.soc }}" | |
# change topic to your modelname! | |
json_attributes_topic: "WLanThermo/NANOv3/status/data" | |
json_attributes_template: "{{ value_json | tojson }}" | |
device_class: battery |
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
If for some reason you got an IPTV playlist which has empty tvg-name, but actual channel names are exists at the end of line, example: | |
#EXTINF:-1 tvg-id="none" tvg-name="none" tvg-logo="" group-title="Testing", Test_Title_CC (GER) | |
#EXTINF:-1 tvg-id="none" tvg-name="none" tvg-logo="" group-title="Testing", Cup Mus (GER) | |
#EXTINF:-1 tvg-id="none" tvg-name="New World (NED)" tvg-logo="" group-title="Apple", New World (NED) | |
you can use awk to fix this issue: | |
awk 'BEGIN{FS=", "}/^#EXTINF:-1/&&/tvg-name="none"/{sub(/tvg-name="none"/,"tvg-name=\x22" $NF "\x22")}{print}' file.txt |
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
I can't describe how much I hate Dymo developers. Long hours of annoyance were caused by their negligence. | |
So you are here, because you are looking for solution for "None of the ports were configured to use SSL certificate" | |
- when you try to diagnose Dymo Web Service. | |
The good developers at Dymo forgot to delete/check/reinstall (call as you want) certificates when you uninstall/reinstall the web service. | |
After hours (days!) I found the solution. |
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
@UniFiSecurityGateway3P:/config$ configure | |
@UniFiSecurityGateway3P# set protocols static table 5 interface-route 0.0.0.0/0 next-hop-interface wg0 | |
@UniFiSecurityGateway3P# set firewall modify VPN_Gateway rule 2502 action modify | |
@UniFiSecurityGateway3P# set firewall modify VPN_Gateway rule 2502 modify table 5 | |
@UniFiSecurityGateway3P# set firewall modify VPN_Gateway rule 2502 destination group address-group 6029c3e9e4f9411eca96870f | |
@UniFiSecurityGateway3P# set firewall modify VPN_Gateway rule 2502 protocol all | |
@UniFiSecurityGateway3P# set interfaces ethernet eth1 firewall in modify VPN_Gateway | |
@UniFiSecurityGateway3P# commit | |
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
policy-based routing on USG. | |
NOTES & REQUIREMENTS: | |
Applicable to all UniFi Security Gateway models (USG / USG-PRO-4 / USG-XG-8). | |
This article does not apply to the UniFi Dream Machine (UDM) models. | |
This article contains advanced JSON configurations using the CLI and should only be attempted by advanced users. | |
See the Configuration Using config.gateway.json help center article for more information on JSON configurations. | |
Introduction |
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
{ | |
"firewall": { | |
"modify": { | |
"LOAD_BALANCE": { | |
"description": "LOAD_BALANCE", | |
"rule": { | |
"2501": { | |
"action": "modify", | |
"modify": { | |
"table": "5" |
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
python -c 'from twisted.web.server import Site; from twisted.web.static import File; from twisted.internet import reactor; from twisted.python import log; import sys; log.startLogging(sys.stdout); reactor.listenTCP(1990, Site(File("."))); reactor.run()' |
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
I wanted to route only specific IPs trough a Wireguard interface. I am not expert in any way, but I am trying to explain you as best I can how I did it. | |
Setup a WG connection as usual on one of your device in your network (In my example I will call it "Ubuntu server", 192.168.1.54): | |
[Interface] | |
Address = something/24 | |
PrivateKey = longprivatekeyR5FE= | |
Table = 43 | |
PostUp = ip rule add from 192.168.1.91 table 43; iptables -w -A FORWARD -i %i -j ACCEPT; iptables -w -A FORWARD -o %i -j ACCEPT; iptables -w -t nat -A POSTROUTING -o ens160 -j MASQUERADE; iptables -t nat -A POSTROUTING -o %i -j MASQUERADE |
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
!!!NOT WORKING!!! | |
configure | |
set interfaces wireguard wg0 address 10.xx.xxx.253/32 | |
set interfaces wireguard wg0 listen-port 51820 | |
set interfaces wireguard wg0 route-allowed-ips false | |
set interfaces wireguard wg0 peer JuE+ endpoint mullvadserverip:51820 | |
set interfaces wireguard wg0 peer JuE+ allowed-ips 0.0.0.0/0 |
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
for f in *.png ; do convert "$f" -fill black -colorize 100 "${f%.png}.png" ; done |
NewerOlder