Skip to content

Instantly share code, notes, and snippets.

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