Skip to content

Instantly share code, notes, and snippets.

View hiddeco's full-sized avatar
💭
I may be slow to respond.

Hidde Beydals hiddeco

💭
I may be slow to respond.
View GitHub Profile
@hiddeco
hiddeco / dockerhub-stat.sh
Created April 7, 2022 14:32
Tiny shell script to get exact stats from DockerHub
#!/usr/bin/env sh
if [ "$#" -eq 0 ]
then
echo -e "usage:\t$0 <image>" >&2
echo -e "\t$0 mysql/mysql-server" >&2
exit 1
fi
if ! command -v jq &> /dev/n
$ trivy gcr.io/distroless/base
2021-12-13T17:18:06.684+0100 INFO Need to update DB
2021-12-13T17:18:06.684+0100 INFO Downloading DB...
25.18 MiB / 25.18 MiB [---------------------------------------------------------------------------------------------------------------------] 100.00% 24.09 MiB p/s 1s
2021-12-13T17:18:08.693+0100 INFO Detected OS: debian
2021-12-13T17:18:08.693+0100 INFO Detecting Debian vulnerabilities...
2021-12-13T17:18:08.696+0100 INFO Number of language-specific files: 0
gcr.io/distroless/base (debian 10.10)
=====================================
#!/bin/bash
kubectl patch $1 -p '{"metadata":{"finalizers":null}}' --type=merge
#!/bin/bash
CUR_IMG_REPO=
TARGET_IMG_REPO=
TAGS=$(curl -L -s "https://registry.hub.docker.com/v2/repositories/${CUR_IMG_REPO}/tags?page_size=100" | jq -r '."results"[]["name"]' | sort -V)
for tag in ${TAGS}; do
docker pull "${CUR_IMG_REPO}:${tag}"
docker tag "${CUR_IMG_REPO}:${tag}" "${TARGET_IMG_REPO}:${tag}"
docker push "${TARGET_IMG_REPO}:${tag}"
From 9ef5198b4fdd96931b218e119f75c6f8f53ee416 Mon Sep 17 00:00:00 2001
From: Hidde Beydals <hello@hidde.co>
Date: Mon, 26 Feb 2018 10:45:38 +0100
Subject: [PATCH] Namespace
---
incubator/etcd/templates/statefulset.yaml | 38 +++++++++++++++++--------------
1 file changed, 21 insertions(+), 17 deletions(-)
diff --git a/incubator/etcd/templates/statefulset.yaml b/incubator/etcd/templates/statefulset.yaml

Keybase proof

I hereby claim:

  • I am hiddeco on github.
  • I am hidde (https://keybase.io/hidde) on keybase.
  • I have a public key whose fingerprint is C910 7A9B 55A4 DD77 062B 9731 B6E3 6A6A C54A CD59

To claim this, I am signing this object: