Skip to content

Instantly share code, notes, and snippets.

@cedrico2016
cedrico2016 / get_evicted_pods.sh
Created September 11, 2025 13:49
Get Evicted pods
#!/bin/bash
echo "Listing evicted pods in all namespaces..."
# Get all namespaces
#namespaces=$(oc get ns --no-headers -o custom-columns=":metadata.name")
namespaces=$(oc get projects -o json | jq -r '.items[] | select(.metadata.name | test("^bsp-[0-9]{4}-zka$")) | .metadata.name')
2022-01-08 08:10:38.879 WARN 1 --- [freshExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: I/O error on GET request for "http://localhost:8761/eureka/apps/": Connect to localhost:8761 [localhost/127.0.0.1] failed: Connection refused (Connection refused); nested exception is org.apache.http.conn.HttpHostConnectException: Connect to localhost:8761 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
2022-01-08 08:10:38.879 INFO 1 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_MASTER-DATA-SERVICE/a53013276312:MASTER-DATA-SERVICE:8081 - was unable to refresh its cache! This periodic background refresh will be retried in 30 seconds. status = Cannot execute request on any known server stacktrace = com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112)
#R version 3.4.4
# options(warn=1)
myMatrikel = 6808351 # put in your matriculation number here.
# Start search for errors here
{
n = 500
set.seed(myMatrikel)
p = sample(1:6, 1)
{
"backends": [
{
"virtualService": {
"virtualServiceName": "foo.mesh.local",
"clientPolicy": {
"tls": {
// (OPTIONAL) Scope down which upstream ports to enforce TLS on.
// Default: all ports
"ports": [443],
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAuOYJpbzwAWlApfY8rnE/x7VU1HUYMDBjwTeS1Ni8BQiVcsX5MQ5bJd6UBmi9gmbjg8gyvgnMh9oj3zqbgMMQgMi+Aee/Ox5EO7HIROMdoqSamgETKCTkPFr/TtG4GO0GUrsgqv2wJprR+/VM24VGTVHCjRnYcitf4IHZdsQBmqPx0oocDenBY2VwslBON28sdGbhmM+r4KNjgedZC65qA4q4eCGNfSh2R05e1gaHt9Paqmtxlrgq6dBGLZiKFXsofH+FnbZbKhJhPFIuek7zBp87CFA/9gII+wyiAUQstlajBTN0jjOCwOCG+v3M5oXcjQNmjz3U1s3ehY83aYFFMQ== cedrico2015
@cedrico2016
cedrico2016 / aufgabe3.c
Created January 6, 2019 20:54
Aufgabe 3
#include <stdio.h>
/*DIN5008-Normdatum aus:
Zahl für Tag zweistellig, Monat ausgeschrieben, Jahr vierstellig */
typedef struct {
int tag;
char monat[10];
int jahr;
} DIN5008_TTMonatJJJJ;
/* Namen der Wochentage */
@cedrico2016
cedrico2016 / cedrico.pubkey
Created November 15, 2018 09:15
pub key cedrico
AAAAB3NzaC1yc2EAAAABJQAAAQEAuOYJpbzwAWlApfY8rnE/x7VU1HUYMDBjwTeS1Ni8BQiVcsX5MQ5bJd6UBmi9gmbjg8gyvgnMh9oj3zqbgMMQgMi+Aee/Ox5EO7HIROMdoqSamgETKCTkPFr/TtG4GO0GUrsgqv2wJprR+/VM24VGTVHCjRnYcitf4IHZdsQBmqPx0oocDenBY2VwslBON28sdGbhmM+r4KNjgedZC65qA4q4eCGNfSh2R05e1gaHt9Paqmtxlrgq6dBGLZiKFXsofH+FnbZbKhJhPFIuek7zBp87CFA/9gII+wyiAUQstlajBTN0jjOCwOCG+v3M5oXcjQNmjz3U1s3ehY83aYFFMQ== cedrico2015
/******************************************************************************
Programm-Titel: Berechnung des natürlichen Logarithmus
Name:
Matrikulnummer:
*******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
@cedrico2016
cedrico2016 / gist:3f946fe39ccbcd2caaddf8e85743c9e2
Created August 23, 2017 10:03
docker build multi staging
FROM bitwalker/alpine-erlang:19.3.4 as builder
ENV HOME=/opt/app/ TERM=xterm
# Install Elixir and basic build dependencies
RUN \
echo "@edge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk --update upgrade musl && \
apk --no-cache add \
git make g++ \
public void listFilesForFolder(final File folder) {
for (final File fileEntry : folder.listFiles()) {
if (fileEntry.isDirectory()) {
listFilesForFolder(fileEntry);
} else {
System.out.println(fileEntry.getName());
}
}
}