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 / gcs-signed-url-main.go
Created January 31, 2020 17:39
Creating a GCS Signed URL without a Service Account Key from a GCE instance or a GKE Pod using Workload Identity
package main
import (
"context"
"flag"
"log"
"net/url"
"time"
"cloud.google.com/go/compute/metadata"
@pdecat
pdecat / google-cloud-release-notes-feeds.txt
Last active May 17, 2021 08:19
Google Cloud release notes feeds
https://cloud.google.com/feeds/aiplatform-release-notes.xml
https://cloud.google.com/feeds/anthos-gke-security-bulletins.xml
https://cloud.google.com/feeds/anthos-release-notes.xml
https://cloud.google.com/feeds/anthosconfig-release-notes.xml
https://cloud.google.com/feeds/app-engine-admin-api-release-notes.xml
https://cloud.google.com/feeds/armor-release-notes.xml
https://cloud.google.com/feeds/artifactregistry-release-notes.xml
https://cloud.google.com/feeds/asset-release-notes.xml
https://cloud.google.com/feeds/automl-language-release-notes.xml
https://cloud.google.com/feeds/automl-recommendation-release-notes.xml
@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.

Keybase proof

I hereby claim:

  • I am pdecat on github.
  • I am pdecat (https://keybase.io/pdecat) on keybase.
  • I have a public key ASBJLJIFng3IPfVV_o1e1oqfTh1TSkwexD0mn3WXgNw5hgo

To claim this, I am signing this object: