Skip to content

Instantly share code, notes, and snippets.

View whypro's full-sized avatar

Haoyu Wang whypro

View GitHub Profile
@whypro
whypro / checksum.py
Last active July 5, 2022 15:42
Simple and powerful checksum tool for backup.
#!/bin/env python3
import os
import sys
import hashlib
import datetime
import fnmatch
def generate(checksum_file_path, excludes=[]):
md5_dict = load_checksum(checksum_file_path)
@whypro
whypro / Dockerfile
Created March 29, 2018 07:50
Set the timezone info to a container.
FROM alpine:3.6
RUN apk add --no-cache tzdata
ENV TZ Asia/Shanghai
@whypro
whypro / ssh_proxy_config
Last active March 14, 2019 02:02
SSH proxy config (~/.ssh/config)
Host github.com
ProxyCommand=socat - PROXY:your.proxy.ip:%h:%p,proxyport=yourproxyport