Skip to content

Instantly share code, notes, and snippets.

View elrondwong's full-sized avatar
🌟
learning

elrond elrondwong

🌟
learning
View GitHub Profile
@elrondwong
elrondwong / docker-registry-mirrors.md
Created April 28, 2025 05:53 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@elrondwong
elrondwong / ini2json.py
Created July 31, 2020 07:59 — forked from Natim/ini2json.py
Convert an ini configuration file into a json file
# -*- coding: utf-8 -*-
import json
import sys
from ConfigParser import (ConfigParser, MissingSectionHeaderError,
ParsingError, DEFAULTSECT)
class StrictConfigParser(ConfigParser):
def _read(self, fp, fpname):
@elrondwong
elrondwong / config.ini
Created July 14, 2020 16:00 — forked from tsuriga/config.ini
Simple config file validation in python
[DEFAULT]
; Operation mode
; This is a global value for all sections
mode = master
[server]
; Connection lifetime
timeout = 3600