Skip to content

Instantly share code, notes, and snippets.

View dsphper's full-sized avatar

Fujun Lv dsphper

View GitHub Profile
@padeoe
padeoe / README_hfd.md
Last active September 1, 2025 09:19
CLI-Tool for download Huggingface models and datasets with aria2/wget: hfd

🤗Huggingface Model Downloader

Note

(2025-01-08) Add feature for 🏷️Tag(Revision) Selection, contributed by @Bamboo-D.
(2024-12-17) Add feature for ⚡Quick Startup and ⏭️Fast Resume, enabling skipping of downloaded files, while removing the git clone dependency to accelerate file list retrieval.

Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, This command-line tool leverages curl and aria2c for fast and robust downloading of models and datasets.

Features

  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
@zhwei
zhwei / sub-branches.json
Last active August 22, 2023 08:15
完整国内支行联行号(部分国外,取自中信银行)
This file has been truncated, but you can view the full file.
{
"000998800006": "电子联行转换中心",
"001100001509": "中国人民银行营业管理部营业室",
"001110002715": "中国人民银行天津分行营业管理部",
"001110002774": "中国人民银行天津分行塘沽中心支行营业部",
"001121004527": "中国人民银行石家庄中心支行营业部",
"001121004535": "中国人民银行赞皇县支行",
"001121004543": "中国人民银行元氏县支行",
"001121004551": "中国人民银行赵县支行",
"001121004560": "中国人民银行栾城县支行",
@dannvix
dannvix / intercept-https-with-python-mitmproxy.md
Last active March 6, 2025 01:41
Intercept and manipulate HTTPs traffic with Python and mitmproxy

Intercepts HTTPs Traffic with Python & mitmproxy

Warning

This Gist is created in 2014, and it's highliy outdated now, according to one of mitmproxy's manjor contributor (check his comment below). Thanks for letting us know, @mhils!

Introduction

Modern applications usually make use of back-end API servers to provide their services. With a non-transparent HTTPs proxy, which intercepts the communication between clients and servers (aka the man-in-the-middle scheme), you can easily manipulate both API requests and responses.