Skip to content

Instantly share code, notes, and snippets.

View berendt's full-sized avatar
🚀

Christian Berendt berendt

🚀
View GitHub Profile
#!/usr/bin/env bash
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
CONFIGURATION_DIRECTORY=${CONFIGURATION_DIRECTORY:-/opt/configuration}
ANSIBLE_COLLECTION_SERVICES_VERSION=${ANSIBLE_COLLECTION_SERVICES_VERSION:-main}
ANSIBLE_INVENTORY=${ANSIBLE_INVENTORY:-/opt/configuration/inventory}
ANSIBLE_PLAYBOOKS_MANAGER_VERSION=${ANSIBLE_PLAYBOOKS_MANAGER_VERSION:-main}
ANSIBLE_PRIVATE_KEY=${ANSIBLE_PRIVATE_KEY:-/opt/ansible/secrets/id_rsa.operator}
ANSIBLE_USER=${ANSIBLE_USER:-dragon}
@berendt
berendt / jupyter.md
Last active September 12, 2020 10:18
Jupyter
#!/usr/bin/env bash
NAMESPACE=your_namespace_on_quay
TAG=the_tag
# https://quay.io/organization/your_namespace_on_quay?tab=applications
ACCESS_TOKEN=xxxxx
for repository in $(curl -s -X GET -H "Authorization: Bearer $ACCESS_TOKEN" "https://quay.io/api/v1/repository?namespace=$NAMESPACE" | jq -r '.repositories[].name' | sort); do
curl -s -X DELETE -H "Authorization: Bearer $ACCESS_TOKEN" https://quay.io/api/v1/repository/$NAMESPACE/$repository/tag/$TAG
#!/usr/bin/env python
# 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
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT