Skip to content

Instantly share code, notes, and snippets.

@padeoe
padeoe / README_hfd.md
Last active May 5, 2024 16:45
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.
@vorozhba
vorozhba / Как удалить commit в Github.txt
Last active May 5, 2024 16:45
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться.
2. Заходим в папку репозитория и пишем в консоль:
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a
$ git push --force
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 5, 2024 16:43
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@ak--47
ak--47 / productSchool.js
Last active May 5, 2024 16:43
💾 data loader for the Product Analytics Certification
//PUT YOUR MIXPANEL TOKEN AND SECRET BELOW:
const credentials = {
"token": "your-mixpanel-token-here",
"secret": "your-mixpanel-secret-here"
}
/*
@raelgc
raelgc / Email Server (Windows Only).md
Last active May 5, 2024 16:43
Setup a Local Only Email Server (Windows Only)
@mvasin
mvasin / export-import-volumes.sh
Last active May 5, 2024 16:42
Export a Docker volume to a .tar / Import into Docker volume from a .tar / Duplicate volumes (via tar)
# Usage: export_volume volume_name
# export_volume volume_name > file.tar
#
# prints to STDOUT a volume in .tar format
export_volume() {
# Quit if volume name is not specified
vol=${1:?}
# If there is no such container, a new container will be created, we don't need that
docker volume inspect $vol > /dev/null || (echo "Container specified for export doesn't exist" && return 1)
@adamelliotfields
adamelliotfields / docker-compose.yml
Created February 10, 2019 22:39
Docker Compose Mongo with Mongo Express
version: "3.5"
services:
mongo:
image: mongo:latest
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
ports:
@alvarofe
alvarofe / meterpreter-tips.txt
Created July 4, 2016 15:32
Metasploit meterpreter tips
TOP: checkvm getcountermeasure getgui get_local_subnets gettelnet hostsedit killav remotewinenum scraper winenum
clearev
use incognito
run autoroute -s 10.0.0.0/24
irb log.clear
run autoroute -h
getsystem
@wtw24
wtw24 / docker_rus.md
Last active May 5, 2024 16:40
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

@WDUK
WDUK / Resign iOS App
Last active May 5, 2024 16:40
How to re-sign an iOS Application
Here's what you do!
1. Terminal: Unzip the ipa (it's just a zip file after all)
unzip -q App.ipa
1a, You will need to have the entitlements file, this information is needed during signing.
codesign -d --entitlements :- "Payload/App.app"
2. Terminal: This will produce a `Payload/` directory. Remove the existing code signature.
rm -rf Payload/App.app/_CodeSignature