Skip to content

Instantly share code, notes, and snippets.

16892434 /
Created April 8, 2024 00:29 — forked from padeoe/
CLI-Tool for download Huggingface models and datasets with aria2/wget+git

🤗Huggingface Model Downloader

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 smartly utilizes wget or aria2 for LFS files and git clone for the rest.


  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
  • 🚀 Multi-threaded Download: Utilize multiple threads to speed up the download process.
  • 🚫 File Exclusion: Use --exclude or --include to skip or specify files, save time for models with duplicate formats (e.g., *.bin or *.safetensors).
  • 🔐 Auth Support: For gated models that require Huggingface login, use --hf_username and --hf_token to authenticate.
  • 🪞 Mirror Site Support: Set up with HF_ENDPOINT environment variable.
16892434 /
Created February 1, 2024 06:37 — forked from danielcshn/
Fix Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-* Android Studio | 2022.2.1

📜 Info:

  • Android Studio Flamingo | 2022.2.1
  • Build #AI-222.4459.24.2221.9862592, built on March 31, 2023
  • Gradle JDK: jbr-17 (JetBrains Runtime version 17.0.6)
  • Windows 11 (version 10.0.22000.1817)

🐛 Bug/Error log:

16892434 / ACME-MDA-Example.mobileconfig
Created January 9, 2024 06:20 — forked from jedda/ACME-MDA-Example.mobileconfig
An example of an ACME Certificate Profile & payload ( that can be used on iOS (16 and above) and macOS (14 and above) to request an ACME certificate with Managed Device Attestation from Apple.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
16892434 /
Created November 27, 2023 10:04 — forked from JakeWharton/
An OkHttp interceptor which does OAuth1 signing. Requires Guava and Java 8, although those dependencies wouldn't be too hard to break if you didn't have them.
* Copyright (C) 2015 Jake Wharton
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
16892434 /
Created November 24, 2023 05:36 — forked from soarez/
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

16892434 /
Created September 13, 2023 02:40 — forked from staltz/
The introduction to Reactive Programming you've been missing
16892434 /
Created August 29, 2023 02:47 — forked from hihanley/
Java retrofit2 请求设置代理
import lombok.Data;
import okhttp3.OkHttpClient;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.jackson.JacksonConverterFactory;
import retrofit2.http.GET;
16892434 / search.js
Created August 22, 2023 08:17 — forked from napoler/search.js
YouTube Search Autocomplete Example
var suggestCallBack; // global var for autocomplete jsonp
$(document).ready(function () {
source: function(request, response) {
"hl":"en", // Language
"ds":"yt", // Restrict lookup to youtube
"jsonp":"suggestCallBack", // jsonp callback function name
16892434 / Social Media Icons
Created June 19, 2023 09:54 — forked from mamun94/Social Media Icons
HTML Code for Bootstrap Social Media Icons
<head><!--HTML Head Start-->
<title>Bootstrap 3 Social Media Icons Tutorial</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--Load Bootstrap css-->
<link href="//" rel="stylesheet">
<!--load font awesome-->
<link href="//" rel="stylesheet">
</head><!--HTML Head End-->
<div class="social"><!--HTML Body Start-->
16892434 /
Created May 30, 2023 01:37 — forked from AgentOak/
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4