Skip to content

Instantly share code, notes, and snippets.

@chenpx976
chenpx976 / README_hfd.md
Last active June 27, 2024 12:28 — forked from padeoe/README_hfd.md
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.

Features

  • ⏯️ 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.
@chenpx976
chenpx976 / aseprite_install_m2.sh
Last active October 19, 2023 01:55 — forked from ryancat/aseprite_install.sh
Download and install aseprite
#!/bin/bash
# Must have git, homebrew, and xcode to install
# Make sure to change line 29 and line 30 according to your mac OS and xcode versions
# Install ninja compiler
brew install ninja
# Install CMake for makefile
brew install cmake
@chenpx976
chenpx976 / listen1_aha_playlist.md
Created August 30, 2021 06:29
updated by Listen1(https://listen1.github.io/listen1/) at 2021/8/30下午2:29:51

本歌单由Listen1创建, 歌曲数:71,歌单数:1,点击查看更多

@chenpx976
chenpx976 / index.html
Created March 10, 2019 12:40
The Chameleon from Null Island
<div id="mouse-container">
<div id="lottie"></div>
</div>
<div id="cursor_preloader"></div>
@chenpx976
chenpx976 / customizable-walk-cycle-with-duik-basel.markdown
Created March 10, 2019 12:37
Customizable walk cycle with Duik Basel

Customizable walk cycle with Duik Basel

Using Duduf's amazing Duik Bassel and lottie-api, I've exported this animation from After Effects and connected all properties to sliders.

A Pen by PandaCoder on CodePen.

License.

@chenpx976
chenpx976 / filters.js
Created June 23, 2018 11:11
filters.js
define(function(require, exports, module) {
exports.jsonRes = function(res) {
// 自己的业务逻辑
localStorage.setItem('cpx', 'hello world');
return {
status: 'success',
result: res,
};
};
exports.checkFilter = function(check, name) {
@chenpx976
chenpx976 / laravel-5-tweak-login-authcontroller.php
Created February 23, 2017 06:40 — forked from AlexanderPoellmann/laravel-5-tweak-login-authcontroller.php
Log in with Username or Email in Laravel 5 - AuthController->postLogin()
<?php
/**
* This snippet goes into your
* \app\Http\Controllers\Auth\AuthController.php
*
* Make sure to update your login view as well
* (\resources\views\auth\login.blade.php). Just
* change
*/
@chenpx976
chenpx976 / master.blade.php
Created February 24, 2016 06:55
Blade::layout
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ $meta_description }}">
<meta name="author" content="{{ config('blog.author') }}">
<title>{{ $title or config('blog.title') }}</title>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style>
#div1 {
width: 100px;
height: 100px;
# Path to your oh-my-zsh installation.
export ZSH=/Users/xichang/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"