Skip to content

Instantly share code, notes, and snippets.

View bkram's full-sized avatar

Mark de Bruijn bkram

View GitHub Profile
@jelly
jelly / adding-systemd-service-zabbix
Last active January 19, 2021 14:00
Zabbix adding a systemd service trigger
# Adding a new systemd service trigger in Zabbix
## Create a template
1. Go to the "configuration" tab at the top
2. Select "templates in the second navigation
3. Click "create template"
4. As template name enter "Template App $application"
5. Add the "Templates" to the "In groups"
6. Add a description describing the template
@awfki
awfki / pynetbox_examples.md
Last active November 16, 2023 22:19
pynetbox examples

pynetbox examples

Long time network engineer, did some perl a long time ago and am liking python pretty well but the pynetbox documentation is badly lacking IMO. If I were a python wizard I'm sure it would all be obvious but I'm not and it's really frustrating that more example weren't provided.

Many of the following examples were cadged from various places on the interwebs and HAVE NOT BEEN TESTED.

Prereqs

import pynetbox
NETBOX = 'https://netbox.fq.dn/'
nb = pynetbox.api(NETBOX, get_token('nb'))
@AdamNaj
AdamNaj / about.md
Last active July 13, 2022 19:50
Z Wave Graph for Home Assistant
@buuhsmead
buuhsmead / gist:af430090084d4ffdda5985f12f1e340c
Created March 28, 2020 11:36
webhook_config for watchdog from alertmanager
(openshift 4.3)
To configure a webhook_config for Watchdog of Alertmanager we have to adjust the secret alertmanager.yml.
# oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .data "alertmanager.yaml" }}' | base64 -d > alertmanager.yaml
And then change alertmanager.yml into
global:
resolve_timeout: 5m
route:
@bkram
bkram / FM-DX Webserver linux installation.md
Last active February 17, 2024 08:49
FM-DX Webserver linux installation

FM-DX Webserver linux installation

In this small guide we will be installing FM-DX Webserver.

This will be executed on a Raspberry Pi 2, but will be useful/usable for most other Debian derived distributions.

We expect that we have set up a fresh installation and we have a user named fmdx with sudo permissions available to run our commands.

You will need a Linux supported (usb) audio device and a FM-DX Webserver supported tuner.