Skip to content

Instantly share code, notes, and snippets.

View borball's full-sized avatar

Borball Zhai borball

  • Red Hat
  • Montreal, QC, Canada
  • 13:51 (UTC -05:00)
View GitHub Profile
@borball
borball / mysqldump_cron.sh
Last active December 29, 2020 03:09 — forked from grahampugh/mysqldump_cron.sh
Script to create daily, weekly and monthly mysqldumps and delete old ones
#!/bin/bash
# original source Lyman Lai
# http://002.yaha.me/item/22728a58-c967-46d5-93eb-2649d684a9aa/
# edited by G Pugh 2019-01-15
STORE_FOLDER="/home/MySQL-Backups"
PASSWD_FILE=$STORE_FOLDER/passwd
@borball
borball / delete-from-v2-docker-registry.md
Created February 21, 2019 17:15 — forked from jaytaylor/delete-from-v2-docker-registry.md
One liner for deleting images from a v2 docker registry

One liner for deleting images from a v2 docker registry

Just plug in your own values for registry and repo/image name.

registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
    curl -sSL -I \
        -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \