Skip to content

Instantly share code, notes, and snippets.

@padeoe
padeoe / README_hfd.md
Last active May 21, 2024 06:04
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.
@miketwenty1
miketwenty1 / Cargo.toml
Last active May 21, 2024 06:03
Bevy + Reqwest + WASM target Example
[package]
name = "somepackagename"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = { version = "0.9" } #, features = ["dynamic"] }
bevy-inspector-egui = "0.14"
wasm-bindgen = "0.2"
reqwest = { version = "0.11", features = ["json"] }

Build a Hyper-converged Proxmox HA Cluster with Ceph

Part of collection: Hyper-converged Homelab with Proxmox

This is part 1 focussing on the networking part of building a Proxmox High Available cluster with Ceph.

Part 2 focusses on building the Proxmox Cluster and setting up Ceph itself, and part 3 focussing on Managing and Troubleshooting Proxmox and Ceph.

Why

For some time, I was looking for options to build a Hyper-converged (HCI) Homelab, considering options like TrueNAS Scale, SUSE Harvester) among other option.

@Denkong
Denkong / SQL - блокировки, транзакции
Created November 22, 2018 15:53
SQL - блокировки, транзакции
===SQL====
Транзакция — это операция, состоящая из одного или нескольких запросов к базе данных.
Суть транзакций — обеспечить корректное выполнение всех запросов в рамках одной транзакции,
а так-же обеспечить механизм изоляции транзакций друг от друга для решения проблемы совместного доступа к данным.
set autocommit=0; //отключаем autocommit
Start transaction; (также, можно написать BEGIN; )
Select * from table where ... FOR UPDATE; // блокирует записаь, снимается после commit
…какие-то действий с БД (insert, update,delete…)
@BookGin
BookGin / 臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 .txt
Last active May 21, 2024 06:00
學術倫理 解答,臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 ,請大家留言補充更多解答 或是修正答案 感謝!
使用方法:Ctrl + F 直接輸入題目關鍵字搜尋即可
請大家留言補充更多解答 或是修正答案,感謝各位的貢獻!
臺灣學術倫理教育資源中心
https://ethics.moe.edu.tw/exam/
其他資源:

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 21, 2024 05:57 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@PARC6502
PARC6502 / OpenSourceBaas.md
Last active May 21, 2024 05:55
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services
@maxim
maxim / gh-dl-release
Last active May 21, 2024 05:55
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@jhorsman
jhorsman / Cisco_Anyconnect.ps1
Created January 6, 2015 10:11
PowerShell to automate VPN connection with Cisco AnyConnect Secure Mobility Client
#Source www.cze.cz
#This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495"
# Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>]
#Please change following variables
#IP address or host name of cisco vpn, Username, Group and Password as parameters
param (
[string]$Server = $( Read-Host "Input server, please" ),