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 | |
| # Sunshine 退出会话时:智能冻结进程 | |
| # 此脚本在容器内部运行 | |
| # 逻辑: | |
| # - 如果有游戏运行:冻结 Steam + reaper + 游戏 | |
| # - 如果没有游戏:只冻结 reaper,保持 Steam 客户端运行 | |
| LOG_FILE="$(dirname "$0")/steam-pause.log" |
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 | |
| # Sunshine 应用启动前:解冻所有 Steam 和游戏进程 | |
| # 此脚本在容器内部运行 | |
| LOG_FILE="$(dirname "$0")/steam-pause.log" | |
| log_message() { | |
| echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE" | |
| } |
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 | |
| # Steam 和游戏进程暂停管理脚本 | |
| # 基于 Nyrna 的 SIGSTOP/SIGCONT 机制 | |
| # 用法: ./process-pause-manager.sh [check|pause|unpause|toggle] | |
| # 切换到脚本所在目录 | |
| cd "$(dirname "$0")" | |
| # 设置日志文件 |
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 | |
| # Sunshine 应用启动前:解冻所有 Steam 和游戏进程 | |
| # 此脚本在容器内部运行 | |
| LOG_FILE="$(dirname "$0")/steam-pause.log" | |
| log_message() { | |
| echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE" | |
| } |
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 | |
| # Sunshine 退出会话时:智能冻结进程 | |
| # 此脚本在容器内部运行 | |
| # 逻辑: | |
| # - 如果有游戏运行:冻结 Steam + reaper + 游戏 | |
| # - 如果没有游戏:只冻结 reaper,保持 Steam 客户端运行 | |
| LOG_FILE="$(dirname "$0")/steam-pause.log" |
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 | |
| # Steam 和游戏进程暂停管理脚本 | |
| # 基于 Nyrna 的 SIGSTOP/SIGCONT 机制 | |
| # 用法: ./process-pause-manager.sh [check|pause|unpause|toggle] | |
| # 切换到脚本所在目录 | |
| cd "$(dirname "$0")" | |
| # 设置日志文件 |
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 | |
| # quick-spark-ustc.sh —— PVE/LXC 一键部署 Spark Standalone | |
| # Master: | |
| # bash quick-spark-ustc.sh --role master | |
| # Worker: | |
| # bash quick-spark-ustc.sh --role worker --master-ip 192.168.1.10 --cores 4 --mem 6g | |
| set -euo pipefail | |
| log(){ echo -e "\033[1;32m[INFO]\033[0m $*"; } | |
| die(){ echo -e "\033[1;31m[ERROR]\033[0m $*" >&2; exit 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
| # ____ _ | |
| # / ___| _ _ ___| |_ ___ _ __ ___ | |
| # \___ \| | | / __| __/ _ \ '_ ` _ \ | |
| # ___) | |_| \__ \ || __/ | | | | | | |
| # |____/ \__, |___/\__\___|_| |_| |_| | |
| # |___/ | |
| # | |
| NAME=SteamHeadless | |
| TZ=Asia/Shanghai | |
| USER_LOCALES=en_US.UTF-8 UTF-8 |
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 | |
| # Docker Compose 暂停状态管理脚本 | |
| # 用法: ./docker-compose-manager.sh [check|pause|unpause|toggle] | |
| # 切换到脚本所在目录 | |
| cd "$(dirname "$0")" | |
| # 创建必要的目录 | |
| mkdir -p ./home |
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 | |
| # 检查参数 | |
| if [ $# -ne 2 ]; then | |
| echo "用法: $0 url_list.txt 下载目录" | |
| exit 1 | |
| fi | |
| URL_FILE="$1" | |
| DOWNLOAD_DIR="$2" |
NewerOlder