Skip to content

Instantly share code, notes, and snippets.

View Artemyin's full-sized avatar
🌍
Open to communication

Artemii Artemyin

🌍
Open to communication
View GitHub Profile
@Artemyin
Artemyin / default.sh
Last active January 18, 2026 11:46
Its default provision script for ComfyUI on vastai
#!/bin/bash
source /venv/main/bin/activate
COMFYUI_DIR=${WORKSPACE}/ComfyUI
# Packages are installed after nodes so we can fix them...
APT_PACKAGES=(
"rclone"
#"package-1"
@Artemyin
Artemyin / ft_contract.py
Created March 31, 2025 17:54
NEAR_ft_contract_py
from near_sdk_py import Contract, view, call, init, AccountId
from near_sdk_py import Promise
from near_sdk_py.contract import StorageError, ContractPanic, InvalidInput, ContractStorage
from near_sdk_py.collections import LookupMap, UnorderedMap
class FungibleToken(Contract):
# def safe_get(self, key):
# if not key in self.storage:
# raise StorageError