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 | |
# ============================================================================== | |
# create_user.sh | |
# | |
# 一个在 Ubuntu 系统上以交互方式创建新用户的脚本。 | |
# 功能: | |
# 1. 交互式询问新用户名和 SSH 公钥。 | |
# 2. 创建一个与用户名同名的组。 | |
# 3. 创建用户,并将其主目录设置为 /home/<username>。 |
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.13" | |
# dependencies = [ | |
# "pandas", | |
# "paramiko", | |
# "rich", | |
# ] | |
# /// | |
import pandas as pd | |
import paramiko |
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
# Devcontainer 镜像使用的 CUDA 版本。推荐与要安装的 PyTorch 的 CUDA 版本一致。 | |
CUDA_VERSION=12.9.0 | |
# 用户配置 | |
USER_NAME=duanyll | |
USER_UID=1001 | |
USER_GID=1001 | |
# 项目文件夹名称 | |
REPO_NAME=your-repo-name |