This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uart: | |
id: modbus_uart | |
rx_pin: GPIO16 | |
tx_pin: GPIO17 | |
# required for this meter type | |
baud_rate: 9600 | |
parity: EVEN | |
stop_bits: 1 | |
modbus: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name z0r key shortcuts | |
// @namespace http://www.example.com/gmscripts | |
// @description key shortcuts for z0r | |
// @include http://z0r.de/* | |
// @include https://z0r.de/* | |
// @version 0.3 | |
// ==/UserScript== | |
function addJQuery(callback) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import io | |
import logging | |
import os | |
import struct | |
import sys | |
import csv | |
from typing import BinaryIO | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -type f | sed -nE 's/^.*-([A-Za-z0-9_-]{11})\..*$/\1/gp' | xargs -I '{}' youtube-dl 'https://youtube.com/watch?v={}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo '# HELP node_mlx_temperature Mellanox networking card temperature.' | |
echo '# TYPE node_mlx_temperature gauge' | |
temperature=`mget_temp -d $1 | tr -d '[[:space:]]'` | |
echo "node_mlx_temperature{device=\"$1\"} $temperature" |