All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
Discover gists
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
n8n: | |
image: docker.n8n.io/n8nio/n8n | |
ports: | |
- 5678:5678 | |
environment: | |
- GENERIC_TIMEZONE=America/Chicago | |
- TZ=America/Chicago |
- Hard disk prices - https://diskprices.com/?locale=in
- Price History - https://pricehistoryapp.com/
- Video player knowledgebase - https://www.videohelp.com/
- PC Price Tracker - https://pcpricetracker.in/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ConfigPlugin, withDangerousMod } from '@expo/config-plugins' | |
import { | |
MergeResults, | |
mergeContents, | |
removeContents, | |
} from '@expo/config-plugins/build/utils/generateCode' | |
import path from 'path' | |
import fs from 'fs-extra' | |
const debug = require('debug')('file-viewer-plugin') as typeof console.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
# Add a custom listener to read out stdout | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
while True: | |
rfd, wfd, efd = select.select(rpipes, [], rpipes, 1) | |
if cmd.stdout in rfd: | |
dat = os.read(cmd.stdout.fileno(), 9000) | |
stdout += dat | |
sock.sendto(dat, ("127.0.0.1", 9876)) # append to listener |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
app_delegate.c | |
1. Compile and link with: | |
$ clang -g -o AppInC app_delegate.c -lobjc -framework Foundation -framework AppKit -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk | |
2. Create a Info.plist with: | |
[[ | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
NewerOlder