registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
echo $repo
tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
for tag in $tags; do
echo $tag
curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
curl -sSL -I \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SOURCES: | |
# http://unix.stackexchange.com/a/122188 | |
# https://natelandau.com/my-mac-osx-bash_profile | |
# https://jonsuh.com/blog/bash-command-line-shortcuts | |
# https://news.ycombinator.com/item?id=8159771 | |
# .bashrc: https://gist.github.com/evdokimovm/67e4fcd938af98528aa108574626e522 | |
bash -c zsh | |
# Verify that shell is interactive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python 2.7.6 | |
# stomp.py v4.1.5 (https://pypi.python.org/pypi/stomp.py) | |
import time | |
import stomp | |
class MyListener(stomp.ConnectionListener): | |
def on_message(self, headers, message): | |
print('MyListener:\nreceived a message "{}"\n'.format(message)) |