Skip to content

Instantly share code, notes, and snippets.

View xvzf's full-sized avatar

Matthias Riegler xvzf

View GitHub Profile
@xvzf
xvzf / bcm2711-rpi-cm4-ha-yellow.dts
Created February 24, 2023 17:45
Home Assistant Yellow device tree
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "bcm2711.dtsi"
#include "bcm2711-rpi.dtsi"
//#include "bcm283x-rpi-usb-peripheral.dtsi"
/ {
compatible = "raspberrypi,4-compute-module-ha-yellow", "raspberrypi,4-compute-module", "brcm,bcm2711";
model = "Raspberry Pi Compute Module 4 on Home Assistant Yellow";
@xvzf
xvzf / main.go
Created February 13, 2023 15:57
Redirect stdin when using exec
package main
import (
"bytes"
"context"
"fmt"
"os/exec"
"sync"
"time"
)
@xvzf
xvzf / main.go
Created February 8, 2023 08:26
Go context timeout example
package main
import (
"context"
"fmt"
"sync"
"time"
)
func fiz(ctx context.Context) {
@xvzf
xvzf / agent.yaml
Last active January 18, 2023 21:43
Istio OTEL test
traces:
configs:
- automatic_logging:
backend: stdout
loki_name: default
spans: true
batch:
send_batch_size: 1000
timeout: 5s
name: default
@xvzf
xvzf / envoyfilter.yaml
Created December 19, 2022 16:25
Istio debug logging for specific headers
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: matthias-tmp-access-logging
namespace: my-service-123
annotations:
owner: matthias
spec:
configPatches:
- applyTo: NETWORK_FILTER
@xvzf
xvzf / cloud-init.yaml
Last active August 13, 2022 16:52
Ubuntu 22.04 (+ multipass) Cluster setup
#cloud-config
output: { all: "| tee -a /var/log/cloud-init-output.log" }
package_update: true
package_upgrade: true
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg
@xvzf
xvzf / issue.md
Last active January 5, 2022 11:52

Which component are you using?:

cluster-autoscaler

What version of the component are you using?:

Component version: 1.21.2

What k8s version are you using (kubectl version)?:

Keybase proof

I hereby claim:

  • I am xvzf on github.
  • I am xvzf (https://keybase.io/xvzf) on keybase.
  • I have a public key ASB578CRX-GMnxZXW9Kzoyi61uSEu25axCcS_pt5Wt4vHwo

To claim this, I am signing this object:

import xml.etree.ElementTree as Xet
import pandas as pd
cols = [
"Praeposition",
"Kasus",
"Genus",
"Sonstiges",
"Zitat",
"Quelle",
from flask import Flask
from flask_mqtt import Mqtt
def create_app():
app = Flask(__name__)
app.config['MQTT_BROKER_URL'] = 'mosquito.lanarama.local' # use the free broker from HIVEMQ
app.config['MQTT_BROKER_PORT'] = 1883 # default port for non-tls connection
app.config['MQTT_USERNAME'] = '' # set the username here if you need authentication for the broker
app.config['MQTT_PASSWORD'] = '' # set the password here if the broker demands authentication
app.config['MQTT_KEEPALIVE'] = 5 # set the time interval for sending a ping to the broker to 5 seconds