Skip to content

Instantly share code, notes, and snippets.

View huangzulin's full-sized avatar

huangzulin huangzulin

  • Shenzhen China
View GitHub Profile
@huangzulin
huangzulin / cleanup.sh
Created November 12, 2019 02:57 — forked from paulrobello/cleanup.sh
Docker registry v2 cleanup script
#!/bin/bash
### your registry must have the following environment var set
# REGISTRY_STORAGE_DELETE_ENABLED=true
### replace YOUR_SERVER with corect info
REGISTRY_URL=https://YOUR_SERVER:5000
### host registry volume folder
REGISTRY_ROOT=/registry
### container to execute garbage-collect
CONTAINER_NAME=services_registry.1
@huangzulin
huangzulin / clipboard_image_post_js.html
Created March 23, 2016 12:53 — forked from kidatti/clipboard_image_post_js.html
Upload clipboard image to server (HTML5 / JavaScript / AJAX)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
</head>
<body>
<script>