Skip to content

Instantly share code, notes, and snippets.

@guntiss
guntiss / menupopup.patch
Last active April 1, 2022 19:40
Zabbix 5.2 patch to open Map URLs in blank page
Backup original file:
$ cp /usr/share/zabbix/js/menupopup.js /usr/share/zabbix/js/menupopup.js.original
Apply patch:
$ patch -i menupopup.patch /usr/share/zabbix/js/menupopup.js
Generate this patch file or compare with original:
$ git diff /usr/share/zabbix/js/menupopup.js.original /usr/share/zabbix/js/menupopup.js
--- a/usr/share/zabbix/js/menupopup.js.original
@guntiss
guntiss / Build FULLCONENAT iptables module for Ubuntu 18.md
Created December 17, 2020 16:19
Build FULLCONENAT iptables module for Ubuntu 18

Build FULLCONENAT iptables module for Ubuntu 18

This is set up instructions on now to build netfilter-full-cone-nat for Ubuntu 18.

Tested on Ubuntu 18.04.5 LTS. Kernel used: 4.15. You might need to apt install build-essential, before starting.

Confirm the kernel configuration option CONFIG_NF_CONNTRACK_EVENTS is enabled (If this option is disabled on your system, enable it and rebuild your netfilter modules):

# cat /boot/config-`uname -r` | grep CONFIG_NF_CONNTRACK_EVENTS
CONFIG_NF_CONNTRACK_EVENTS=y
@guntiss
guntiss / tasmota_timer.md
Last active October 27, 2021 18:44
Tasmota Timer for electric Airwick air freshener

This timer is used for Airwick electric air freshener. It starts working at 8:30 every day, powers on for 15min then powers off for 30min and repeats until 22:00 in evening.

Auto off after 15min

Rule1 on Power1#State=1 do backlog PowerOnState 3; PulseTime 900; endon
Rule1 1

Auto on after 30min