Skip to content

Instantly share code, notes, and snippets.

View simlun's full-sized avatar

Simon Lundmark simlun

View GitHub Profile
@simlun
simlun / command.sh
Created December 14, 2015 07:48
Collect inotify statistics for each root directory
sudo sysctl fs.inotify.max_user_watches=524288
sudo inotifywait -r -m --format "%e;%w%f" /bin /boot /etc /home /lib /lib64 /opt /root /sbin /srv /tmp /usr /var | ./dirstats.py
@simlun
simlun / EPIR_Zm.js
Created March 13, 2024 19:15
EGLO Connect.Z Motion sensor - ZigBee2MQTT
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const utils = require('zigbee-herdsman-converters/lib/utils');
const e = exposes.presets;
const ea = exposes.access;
const fzLocal = {