윈도우 데스크탑에서 서버로 사용 중인 미니PC에 물린 DAS 내 파일 가져올 때 속도가 더럽게 느림
- 다음 명령어로 파편화 여부를 확인
| import signal | |
| import logging | |
| import asyncio | |
| import re | |
| from os import environ | |
| import uvloop | |
| from discord import Intents, Guild, Member, Message, RawMessageUpdateEvent | |
| from discord.abc import Messageable | |
| from discord.ext.commands import Bot, when_mentioned |
| # use mitmproxy and rooted avd + cert-fixer to crack device_id and access_token | |
| import asyncio | |
| import json | |
| import aiohttp | |
| from pathlib import Path | |
| from base64 import b64decode | |
| from http.cookies import SimpleCookie | |
| from urllib.parse import urlencode |
| ### stage 1 | |
| FROM docker.io/alpine:latest as builder | |
| ENV TOR_VERSION="0.4.8.16" | |
| RUN apk add build-base libevent-dev openssl-dev zlib-dev | |
| RUN mkdir /src | |
| RUN wget -O - "https://archive.torproject.org/tor-package-archive/tor-${TOR_VERSION}.tar.gz" |\ | |
| tar -C /src --strip-components 1 -xzf - |
| #!/usr/bin/env bash | |
| # https://github.com/bubuntux/nordlynx/blob/main/root/etc/services.d/wireguard/run | |
| set -o errexit | |
| set -o pipefail | |
| if [[ "${TRACE-0}" == "1" ]]; then | |
| set -o xtrace | |
| fi | |
| API_ENTRYPOINT=${API_ENTRYPOINT:-"https://api.nordvpn.com/v1"} |
| # (required) pip install vdf | |
| # (optional) pip install openai | |
| # | |
| # Usage: | |
| # python closecaption_tool.py "closecaption_english.txt" "closecaption_korean.txt" | |
| from typing import Dict | |
| from dataclasses import dataclass | |
| from argparse import ArgumentParser | |
| from pathlib import Path |
| #!/usr/bin/python | |
| from typing import List | |
| from dataclasses import dataclass | |
| from argparse import ArgumentParser | |
| from pathlib import Path | |
| from urllib.parse import urlparse, ParseResult | |
| from requests import session | |
| from subprocess import call | |
| @dataclass |
| #!/bin/sh | |
| # simple podman exec macro for quadlet containers | |
| # locate this script into ~/.profile | |
| # $ crontab -l | |
| # */5 * * * * . ~/.profile && XDG_RUNTIME_DIR="/run/user/$(id -u)" nextcloud_cron | |
| # 0 * * * * . ~/.profile && XDG_RUNTIME_DIR="/run/user/$(id -u)" nextcloud_occ files:scan --path=user/files | |
| quadlet () { | |
| local container=$1 | |
| if [ -z "$container" ]; then |