Skip to content

Instantly share code, notes, and snippets.

@guntiss
guntiss / download_vscode_server.sh
Created February 20, 2025 07:05 — forked from cvcore/download_vscode_server.sh
Manual download vscode-server
#!/bin/bash
# This script downloads and installs a specific version of VSCode Server for Linux.
# The version is specified by the first argument to the script.
# You can find the git commit id in the output of Remote - SSH plugin in VSCode.
# The output looks like this:
# ...
# Using commit id "af28b32d7e553898b2a91af498b1fb666fdebe0c" and quality "stable" for server
# ...
@guntiss
guntiss / install-k9s.sh
Last active February 9, 2025 13:54
k9s one liner install
curl -s -L https://github.com/derailed/k9s/releases/download/v0.32.7/k9s_Linux_amd64.tar.gz | tar xvz -C /usr/bin k9s
@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

@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 / 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