Skip to content

Instantly share code, notes, and snippets.

View bsakel's full-sized avatar

Vasileios Sakellarios bsakel

View GitHub Profile
@jaytaylor
jaytaylor / delete-from-v2-docker-registry.md
Last active September 11, 2025 15:46
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" \
@tommyready
tommyready / CloudFlareApiClient.cs
Last active January 4, 2024 17:52
Update Cloud Flare DNS Record via Cloud Flare API v4 using C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using Newtonsoft.Json;
namespace CloudFlareApiClient
{
class Program
{
@chgeuer
chgeuer / Dockerfile
Last active May 29, 2018 21:59
Running Orleans in Docker
FROM ubuntu:14.04.2
MAINTAINER chgeuer@microsoft.com
RUN apt-get update && \
apt-get install mono-complete curl unzip && \
mkdir /usr/local/orleans && \
curl https://chgeuer.blob.core.windows.net/public/orleans1_0.zip > /usr/local/orleans/orleans1_0.zip && \
cd /usr/local/orleans && \
unzip orleans1_0.zip
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Collections.Generic;
public class SSEvent {
public string Name { get; set; }
public string Data { get; set; }
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active February 15, 2026 20:33
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook