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 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 |
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
| # 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 |
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
| ### 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 - |
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
| #!/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"} |
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
| # (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 |
- quadlet-exec.sh - exec macro for quadlet containers
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
| #!/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 |
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/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 |
NewerOlder
