Skip to content

Instantly share code, notes, and snippets.

View aojea's full-sized avatar

Antonio Ojea aojea

View GitHub Profile
@aojea
aojea / README.md
Last active January 22, 2024 05:48
Sniff CNI commands

CNI SNIFFER

The Container Networking Interface, or CNI, is a generic plugin-based networking solution for configuring the network on containers.

The CNI specification defines:

  1. A format for administrators to define network configuration.
  2. A protocol for container runtimes to make requests to network plugins.
  3. A procedure for executing plugins based on a supplied configuration.
  4. A procedure for plugins to delegate functionality to other plugins.
@aojea
aojea / find_ipv6.go
Last active September 8, 2022 07:53
find ipv6 addresses
package main
import (
"bufio"
"flag"
"fmt"
"go/scanner"
"io"
"io/fs"
"os"
package main
import (
"context"
"flag"
"fmt"
"net"
"os"
"time"
package main
import (
"context"
"crypto/tls"
"fmt"
"io"
"log"
"net"
"net/http"
@aojea
aojea / backend.go
Created April 22, 2022 10:04
kubernetes reverse proxy
package main
import (
"crypto/tls"
"flag"
"log"
"net/http"
"os"
"path/filepath"
@aojea
aojea / main.go
Last active March 31, 2022 16:31
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@aojea
aojea / k8s_prom.sh
Last active April 11, 2024 17:42
kubernetes prometheus CI metrics
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/108414/pull-kubernetes-e2e-gce-100-performance/1499390264190439424
https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/108414/pull-kubernetes-e2e-gce-100-performance/1499390264190439424/artifacts/prometheus_snapshot.tar
TMP_DIR=$(mktemp -d)
cd $TMP_DIR
wget https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/108414/pull-kubernetes-e2e-gce-100-performance/1499390264190439424/artifacts/prometheus_snapshot.tar
tar xvf prometheus_snapshot.tar
touch prometheus.yml
SNAPSHOT=$(ls prometheus/snapshots/)
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",