Skip to content

Instantly share code, notes, and snippets.

@pdecat
pdecat / u2f_fido2_dissector.lua
Last active June 22, 2022 08:18 — forked from z4yx/u2f_fido2_dissector.lua
Wireshark protocol decoder for FIDO(U2F) and FIDO2(WebAuthn) over USB HID
cbor = Dissector.get("cbor")
iso7816 = Dissector.get("iso7816")
ctap_proto = Proto("ctaphid","ctap hid")
-- Field Extractor
direction_fe = Field.new("usb.endpoint_address.direction")
udp_srcport_fe = Field.new("udp.srcport")
CTAPHID_COMMAND_CODE = {
[0x03]='CTAPHID_MSG',
[0x10]='CTAPHID_CBOR',
@pdecat
pdecat / libreelec.sh
Last active May 28, 2020 13:20 — forked from Paulchen-Panther/libreelec.sh
Hyperion.NG on LibreELEC installation script
#!/bin/sh
# Script for downloading and installing the latest Hyperion.NG release on LibreElec
#Set welcome message
echo '*******************************************************************************'
echo 'This script will install Hyperion.NG on LibreELEC'
echo 'Created by brindosch and modified by Paulchen-Panther - hyperion-project.org - the official Hyperion source.'
echo '*******************************************************************************'
# Find out if we are on LibreELEC
@pdecat
pdecat / node_exporter.default
Last active March 12, 2019 10:19 — forked from eloo/node_exporter.default
Moved to https://github.com/pdecat/prometheus-exporters-openwrt (Init.d scripts for prometheus exporters)
# Set the command-line arguments to pass to the server.
ARGS='-web.listen-address=:9100 -collector.diskstats.ignored-devices="^(ram|loop|fd)\\d+$"'
# Prometheus-node-exporter supports the following options:
# -collector.diskstats.ignored-devices="^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$": Regexp of devices to ignore for diskstats.
# -collector.filesystem.ignored-mount-points="^/(sys|proc|dev)($|/)": Regexp of mount points to ignore for filesystem collector.
# -collector.ipvs.procfs="/proc": procfs mountpoint.
# -collector.megacli.command="megacli": Command to run megacli.
# -collector.ntp.server="": NTP server to use for ntp collector.
# -collector.textfile.directory="": Directory to read text files with metrics from.