This file contains hidden or 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
| #!/bin/bash | |
| source /venv/main/bin/activate | |
| COMFYUI_DIR=${WORKSPACE}/ComfyUI | |
| # Packages are installed after nodes so we can fix them... | |
| APT_PACKAGES=( | |
| #"package-1" | |
| #"package-2" |
This file contains hidden or 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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "httpx", | |
| # "websocket-client", | |
| # "pillow", | |
| # "typing-extensions", | |
| # ] | |
| # /// |
This file contains hidden or 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
| { | |
| "ldsr_steps": 100, | |
| "ldsr_cached": false, | |
| "SCUNET_tile": 256, | |
| "SCUNET_tile_overlap": 8, | |
| "SWIN_tile": 192, | |
| "SWIN_tile_overlap": 8, | |
| "SWIN_torch_compile": false, | |
| "control_net_detectedmap_dir": "detected_maps", | |
| "control_net_models_path": "", |
This file contains hidden or 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 subprocess | |
| import json | |
| url = 'URL_YOU_WANTED_TO_ADD_NOTEBOOK_LM' | |
| notebook_id = 'YOUR_NOTEBOOK_ID' | |
| at = "YOUR_AT" | |
| cookie_str = """ | |
| YOUR_COOKIE | |
| """.strip() |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| FILEPATH=$1 | |
| FILENAME=${FILEPATH##*/} | |
| UUID=$2 | |
| # UUIDが未指定の場合、uuidgenで生成 | |
| if [ -z "$UUID" ]; then |
This file contains hidden or 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 requests | |
| from requests.exceptions import HTTPError | |
| from pathlib import Path | |
| import re | |
| import boto3 | |
| from typing import List | |
| import json | |
| from libxmp import XMPFiles, XMPMeta, consts | |
| import tempfile |
This file contains hidden or 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
| SHELL=/bin/bash | |
| USER=$(shell whoami) | |
| NOW:=$(shell date +%H:%M:%S) | |
| BIN_NAME:=isuports | |
| P_LANGUAGE=rust | |
| SERVICE_NAME:=$(BIN_NAME).$(P_LANGUAGE).service | |
| DB_PATH:=/etc/mysql | |
| NGINX_PATH:=/etc/nginx |
This file contains hidden or 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 threading | |
| import time | |
| import requests | |
| import queue | |
| threads: list[threading.Thread] = [] | |
| stop_cue = queue.Queue(maxsize=1) | |
This file contains hidden or 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
| # coding: utf-8 | |
| from dataclasses import dataclass | |
| class Result: | |
| def __str__(self): | |
| return f"<{self.__class__.__name__}: {self._value}>" | |
| def is_ok(self) -> bool: | |
| ... | |
| def ok(self): |
This file contains hidden or 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
| from typing import Protocol | |
| import injector | |
| import os | |
| class Repository(Protocol): | |
| def get(id_: str) -> str: pass | |
| def create(id_: str) -> str: pass | |
| class RepoImpl(Repository): |
NewerOlder