Skip to content

Instantly share code, notes, and snippets.

View mickaelbaron's full-sized avatar
💻
Updating my training courses on #SOA #WebService #Microservice

Mickael BARON mickaelbaron

💻
Updating my training courses on #SOA #WebService #Microservice
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():