Skip to content

Instantly share code, notes, and snippets.

View fholzer's full-sized avatar

Ferdinand Holzer fholzer

  • Entain plc
  • Vienna, Austria
View GitHub Profile
@fholzer
fholzer / tf-debug.log
Created August 5, 2025 10:08
cf-dns-soa-issue-minimal-poc
11:57:12.098 INFO terraform: TF_LOG: Terraform version: 1.12.2
11:57:12.098 INFO terraform: TF_LOG: Go runtime version: go1.24.2
11:57:12.098 INFO terraform: TF_LOG: CLI args: []string{"../../../../../../../../.tfenv/versions/1.12.2/terraform", "plan", "-out", "tfplan"}
11:57:12.098 INFO terraform: TF_LOG: CLI command args: []string{"plan", "-out", "tfplan"}
11:57:12.099 INFO terraform: TF_LOG: backend-s3.aws-base: Retrieved credentials: tf_backend.operation=Configure tf_backend.req_id=2ca282df-d337-fd99-b476-53b0b755e047 tf_backend.s3.bucket=tfstate-1234567890 tf_backend.s3.path=bucketpath/terraform-cf-issue-minimal-poc.tfstate tf_aws.credentials_source=EnvConfigCredentials
11:57:12.100 STDERR terraform: http.request.body=
11:57:12.100 STDERR terraform: | Action=GetCallerIdentity&Version=2011-06-15
11:57:12.100 STDERR terraform: http.user_agent="APN/1.0 HashiCorp/1.0 Terraform/1.12.2 (+https://www.terraform.io) aws-sdk-go-v2/1.36.0 ua/2.1 os/linux lang/go#1.24.2 md/GOOS#linux md/GOARCH#amd64
@fholzer
fholzer / gopro-sort.sh
Created September 14, 2024 17:58
GoPro Media Sorter
#!/bin/bash
set -eo pipefail
function findSeries() {
ls -1 GX01*.MP4 | sed -e 's/^\(GX\)01\([0-9]\+\).\(MP4\)$/\1 \2 \3/'
}
function processSeries() {
local prefix="$1"
local id="$2"
@fholzer
fholzer / docker-compose.yml
Last active September 9, 2024 21:34
home assistant test setup
---
version: "2.1"
services:
homeassistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: homeassistant
network_mode: host
environment:
- PUID=1000
- PGID=1000

Emitted Events

Dim Behavior

Some devices send dim events others don't. Some of those that send dim events additionally send press events, others don't.

Device Dim Events Additional Press Events on Dimm
RWL020 ? ?
RWL021 up/down buttons No
@fholzer
fholzer / PhilipsRemoteCluster-init-rdm001.patch
Created August 29, 2023 22:29
PhilipsRemoteCluster diff
colordiff -wub p-init.py p-rdm001.py
--- p-init.py 2023-08-29 23:58:18.662019044 +0200
+++ p-rdm001.py 2023-08-29 23:58:17.972036079 +0200
@@ -21,27 +21,29 @@
class PhilipsRemoteCluster(CustomCluster):
"""Philips remote cluster."""
- cluster_id = 0xFC00
+ cluster_id = 64512
name = "PhilipsRemoteCluster"
<#
Create Unix VM's.
PREREQUISITES:
- A VM that has been installed with an OS that supports cloud-init
- cloud-init is installed on the vm
How it works:
- Asks for a bunch of parameters
- Creates a disk from parent vhdx for speed
[user@user-pc node-addon-api-tsfn]$ valgrind -s node --expose-gc test/test_binding.js
==6991== Memcheck, a memory error detector
==6991== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6991== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==6991== Command: node --expose-gc test/test_binding.js
==6991==
Consumer::Close called. releasing tsfn...
Consumer::Close called. tsfn released.
ThreadSafeFunction finalizer called
==6991== Invalid write of size 8
@fholzer
fholzer / tombstone-count.sh
Last active June 1, 2021 09:57 — forked from JensRantil/tombstone-count.sh
How to count number of tombstones per partition key in one or multiple sstables.
#!/bin/bash
#
# Counts number of tombstones per partition key in one or multiple sstables.
#
# Usage: ./tombstone-count.sh /var/lib/cassandra/data/mykeyspace/mytable/*-Data.db
#
# Sample output:
# "40e6a9839bf44bdaa624cc53e96733fe" 8
# "8e177ab222c14f868bcb6d2922b18d2b" 8
# "28aaa9db0dad4ae78cabe8bcc25d14a3" 9
@fholzer
fholzer / ansible-inventory-patch.diff
Last active February 21, 2019 20:28
ansible inventory plugin patch
--- __init__.py.bak 2019-02-21 17:23:21.768801439 +0000
+++ __init__.py 2019-02-21 20:05:12.171070413 +0000
@@ -40,15 +40,6 @@
from ansible.utils.display import Display
display = Display()
-_SAFE_GROUP = re.compile("[^A-Za-z0-9_]")
-
-
-# Helper methods
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>svg foreignObject test</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
}