Skip to content

Instantly share code, notes, and snippets.

View someniatko's full-sized avatar
🚩
tuturu

someniatko

🚩
tuturu
  • Bahnhof
  • Ukraine, Kyiv
View GitHub Profile
@hamstar
hamstar / php-calling-class-test.php
Created August 3, 2011 13:51
A function that will return the calling class to the class using it
/***********************************************************
******* SIMPLE TEST **/
class A {
function t() {
echo get_calling_class();
}
}
class B {
@jaytaylor
jaytaylor / delete-from-v2-docker-registry.md
Last active June 10, 2024 13:57
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" \