Skip to content

Instantly share code, notes, and snippets.

View JokerQyou's full-sized avatar

Joker_ JokerQyou

View GitHub Profile
@JokerQyou
JokerQyou / README.md
Last active September 29, 2017 07:28
Wtf is with these docker registry clients, I just want to delete an image.

Usage:

python delete_docker_image.py 192.168.2.1:5000/hello-world:latest --delete-layers
@JokerQyou
JokerQyou / win_subprocess.py
Last active April 19, 2018 02:18 — forked from vaab/win_subprocess.py
Fixing python 2.7 windows unicode issue with ``subprocess.Popen``.
# coding: utf-8
# This patched `Popen` class
# adds support for Unicode commandline on Windows platform.
# issue: https://bugs.python.org/issue19264
import os
import ctypes
import subprocess
import _subprocess
from ctypes import (
@JokerQyou
JokerQyou / cloud-init-docker.yaml&env=plain&abbr=cloud-init
Last active April 22, 2020 02:10
Cloud-init user data to install some fundamental components
#cloud-config
runcmd:
- curl -fsSL https://get.docker.com | sh
- curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- ln -s /usr/local/bin/docker-compose /usr/local/bin/dc
- apt-get install -y zsh git
groups: