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/sh | |
# (c) 2023 Stefan Agner | |
# This scripts attempts to clear corrupted Docker overlay2 storage metadata | |
# which can be left over after a power failure. | |
# See also: https://github.com/moby/moby/issues/42964 | |
# | |
# Typically the error message when attempting to pull the image for which | |
# corrupted layers are in the storage looks like: | |
# failed to register layer: error creating overlay mount to /mnt/data/docker/overlay2/6ee02298ee75a4f96e77f90551673cb700f29867f9ad1c4e20b8c816bfcf0735/merged: too many levels of symbolic links |
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
// enum CommissioningStage with numeric values | |
// from | |
// https://github.com/project-chip/connectedhomeip/blob/v1.2.0.1/src/controller/CommissioningDelegate.h | |
enum CommissioningStage : uint8_t | |
{ | |
kError = 0, | |
kSecurePairing = 1, ///< Establish a PASE session with the device | |
kReadCommissioningInfo = 2, ///< Query General Commissioning Attributes, Network Features and Time Synchronization Cluster | |
kReadCommissioningInfo2 = 3, ///< Query SupportsConcurrentConnection, ICD state, check for matching fabric |
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/env python3 | |
import binascii | |
import sys | |
MESHCOP_TLV_TYPE = { | |
"CHANNEL": 0, | |
"PANID": 1, | |
"EXTPANID": 2, | |
"NETWORKNAME": 3, |
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 argparse | |
import asyncio | |
import logging | |
from typing import Any, Optional, cast | |
from zeroconf import IPVersion, ServiceInfo, ServiceStateChange, Zeroconf, ServiceListener | |
from zeroconf.asyncio import AsyncServiceBrowser, AsyncServiceInfo, AsyncZeroconf |
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 gzip | |
import io | |
import os | |
import tarfile | |
from pathlib import Path | |
import hashlib | |
from securetar import ( | |
SECURETAR_MAGIC, | |
SecureTarFile, |
OlderNewer