Skip to content

Instantly share code, notes, and snippets.

View bradleeedmondson's full-sized avatar

Bradlee H. Edmondson bradleeedmondson

View GitHub Profile
@bradleeedmondson
bradleeedmondson / zero_division.md
Created March 30, 2021 18:01 — forked from limitusus/zero_division.md
Zabbix: handle calculated item with zero division

Problem

Want to create a calculated item with last("X") / last("Y"). When Y = 0, the result should be 0.

Answer

last("X") * (1 - count("Y",#1,0)) / (last("Y") + count("Y",#1,0))
Github "feature pull" request or "idea pull" request
Sometimes, we solve problems or create features that have already been fully implemented in similar software. Why reinvent the wheel? Well, maybe there is a good reason, but we should at least know that we're doing that.
Example:
edX platform has forums, but the featureset leaves something to be desired. Other open-source projects have (or are) forums that already have these features. How should we model a feature request for edX platform to add these features?
Opportunities:
Point to a branch or a commit in another github project that implements the feature or idea you care about in that project.