Skip to content

Instantly share code, notes, and snippets.

@kizbitz
kizbitz / dockerhub-v2-api-organization.sh
Last active Jan 10, 2022
Get the list of images and tags for a Docker Hub organization account
View dockerhub-v2-api-organization.sh
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
ORG=""
@kizbitz
kizbitz / dockerhub-v2-api-user.sh
Last active Dec 15, 2021
Get the list of images and tags for a Docker Hub user account.
View dockerhub-v2-api-user.sh
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all imagas and tags associated with a Docker Hub user account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username and password
UNAME=""
UPASS=""
@brianredbeard
brianredbeard / syncrepos.sh
Last active Jun 8, 2021
Reposync - A better tool than mrepo. Use this to sync down all channels a RHEL system is subscribed to and turn them into locally exposed yum repositories.
View syncrepos.sh
#!/bin/bash
# This tool can be used to sync down Red Hat based packages from RHN using only Red Hat shipped tools
# Brian "Red Beard" Harrington <brian@dead-city.org>
# Copyright 2013
#
# To satisfy the pre-reqs for this script install the following two rpms:
# yum-utils
# createrepo_c (in RHEL 8 createrepo and createrepo_c have been combined)
# See https://github.com/rpm-software-management/createrepo_c#differences-in-behavior-between-createrepo_c-and-createrepo