Skip to content

Instantly share code, notes, and snippets.

View eumel8's full-sized avatar
๐Ÿ™‚

Frank Kloeker eumel8

๐Ÿ™‚
View GitHub Profile
@eumel8
eumel8 / veo.sh
Created August 29, 2025 15:07
Google Cloud VEO Text-2-Video Generator
#!/bin/bash
# Was brauch man hier:
# * Google Cloud Account https://console.cloud.google.com/
# * Goofle Projekt mit aktivem Rechnungskonto
# * AKtoierte Vertex AI API https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/veo-video-generation?hl=de#rest-ttv
set -e
PROJECT_ID=""
LOCATION_ID="us-central1"
API_ENDPOINT="us-central1-aiplatform.googleapis.com"
@eumel8
eumel8 / nerdinstall.sh
Last active August 5, 2025 21:19
Install Nerdctl/Containerd
# https://github.com/containerd/nerdctl/releases/latest
# https://github.com/containerd/nerdctl/blob/main/docs/rootless.md
# https://rootlesscontaine.rs/getting-started/common/
# https://github.com/containernetworking/plugins
VERSION=2.1.3
mkdir nerd
cd nerd
# Download the all-in-one archive
curl -LO https://github.com/containerd/nerdctl/releases/download/v${VERSION}/nerdctl-${VERSION}-linux-amd64.tar.gz
@eumel8
eumel8 / gitlab-loc.go
Created February 8, 2025 05:21
Gitlab Loc Leaderboard
package main
import (
"encoding/json"
"fmt"
"net/http"
"sort"
)
type Contributor struct {
@eumel8
eumel8 / sort-yaml.go
Created June 11, 2024 15:52
sort-yaml
// a program to sort keys in a given directory with yaml files
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"sort"
"strings"
@eumel8
eumel8 / composition-s3-backup.yaml
Created March 14, 2024 21:52
composition-s3-backup.yaml
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
annotations:
name: vcluster.caas.telekom.de
spec:
compositeTypeRef:
apiVersion: caas.telekom.de/v1alpha1
kind: Vcluster
mode: Resources
@eumel8
eumel8 / vcluster-backup.yaml
Created March 14, 2024 10:00
vcluster-backup.yaml
# adjust s3 access_key,host_base, secret_key, and s3 bucketname
apiVersion: v1
kind: Secret
metadata:
name: s3cfg
type: Opaque
stringData:
.s3cfg: |-
[default]
access_key = xxxxx
@eumel8
eumel8 / create-vcluster-for-istio.md
Last active January 2, 2024 18:01
vcluster-demo

prerequisites

have a Rancher project with 2 namespaces where the Pods and Services seen each other

create vcluster

service exposes via IngressRoutesTCP

helm -n vc1 upgrade vc1 --set isolation.networkPolicy.enabled=false --version 0.15.7 oci://mtr.devops.telekom.de/caas/charts/vcluster
@eumel8
eumel8 / mystruct2.go
Created October 8, 2023 16:34
Sort Go Types with comments alphabetically
package mystruct
// LoggingSpec defines the desired state of Logging
type MyStruct struct {
// Reference to the logging system. Each of the `loggingRef`s can manage a fluentbit daemonset and a fluentd statefulset.
LoggingRef string `json:"loggingRef,omitempty"`
// Disable configuration check before applying new fluentd configuration.
FlowConfigCheckDisabled bool `json:"flowConfigCheckDisabled,omitempty"`
// Whether to skip invalid Flow and ClusterFlow resources
@eumel8
eumel8 / getpod.yaml
Created October 4, 2023 15:23
getpod
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
name: getpods
name: getpods
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
@eumel8
eumel8 / curl.yaml
Last active August 17, 2023 13:02
curl-k8s-api
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: curl-client
name: curl-client
spec:
serviceName: curl-client
replicas: 1