Skip to content

Instantly share code, notes, and snippets.

View mickaelbaron's full-sized avatar
:bowtie:
Contributing to open source projects

Mickael BARON mickaelbaron

:bowtie:
Contributing to open source projects
View GitHub Profile
@mickaelbaron
mickaelbaron / deleteimage.sh
Created March 6, 2024 15:12
How to delete Docker image:tag from a Docker Registry?
#!/bin/bash
# Check parameters
if [ $# -eq 0 ]; then
echo "Login and password are missing (user:password)."
exit 1
fi
if [ $# -eq 1 ]; then
echo "Image name is missing."
@mickaelbaron
mickaelbaron / getimagesdetail.sh
Last active March 6, 2024 15:08
How to list Docker images with their tags inside a Docker Registry?
#!/bin/bash
# https://github.com/kwk/docker-registry-setup#manual-token-based-workflow-to-list-repositories
# https://github.com/mayflower/docker-ls
# Check parameters
if [ $# -eq 0 ]; then
echo "Login and password are missing (user:password)."
exit 1
fi
@mickaelbaron
mickaelbaron / XOA_JSON-RPC_Example.md
Last active February 4, 2022 13:19
XOA json-rpc call basic example

A piece of code to communicate from a Python program to XO-Server API.

import json
import aiohttp
import asyncio

from jsonrpc_websocket import Server

async def routine():