Skip to content

Instantly share code, notes, and snippets.

@zahlex
zahlex / telegraf.conf
Created April 18, 2022 15:46
Telegraf configuration for exporting Zigbee2MQTT messages to Prometheus (mainly for IKEA Trådfri Motion Sensor)
[agent]
interval = "1s"
flush_interval = "1s"
omit_hostname = true
[[inputs.mqtt_consumer]]
## Broker URLs for the MQTT server or cluster. To connect to multiple
## clusters or standalone servers, use a separate plugin instance.
servers = ["tcp://localhost:1883"]
@zahlex
zahlex / index.html
Created May 6, 2016 04:19
Sticky scrolling Bootstrap Navbar
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Sticky scrolling Navbar by Zahlex</title>
<meta name="description" content="Simple but efficient way to implement a TWBS Navbar that scrolls with the content but also sticks at the top of the viewport">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
</head>