anduin / Quicky glance a folder to view brief content
0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 month ago
1 | # glance - Provides a quick and intelligent overview of a directory's contents. |
2 | # |
3 | # Authors: anduin |
4 | # |
5 | # Features: |
6 | # - Auto-detects Git repositories to intelligently list files. |
7 | # - Dynamically calculates and adjusts the `tree` view depth to prevent clutter. |
8 | # - File content display strictly adheres to the calculated tree depth. |
9 | # - Limits the maximum lines printed per file to avoid long scrolls. |
10 | # - Supports powerful filtering by file glob patterns. |
anduin / Delete obsolete versions of AnduinOS
0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 month ago
1 | #!/usr/bin/env python3 |
2 | # -*- coding: utf-8 -*- |
3 | |
4 | """ |
5 | 按分支(1.0、1.1、1.2、1.3…)仅保留该分支中“最高版本目录”的 .iso 文件,删除其余版本目录中的 .iso。 |
6 | - 仅删除 .iso,不动 .sha256 / .torrent / 目录结构。 |
7 | - 支持 --dry-run 仅打印计划删除项。 |
8 | - 版本比较使用语义数字比较:x.y.z -> (x,y,z),保证 1.3.10 > 1.3.4。 |
9 | """ |
anduin / Set keys to all gitlab repos
0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 month ago
1 | #!/usr/bin/env python3 |
2 | """ |
3 | 为个人所有 GitLab 仓库批量添加 CI/CD 变量: |
4 | DOCKER_USERNAME |
5 | DOCKER_PASSWORD |
6 | LOCAL_DOCKER_USERNAME |
7 | LOCAL_DOCKER_PASSWORD |
8 | """ |
9 | |
10 | import os |
anduin / Run docker in docker in docker
0 gustos
0 bifurcaciones
1 archivos
Última actividad 2 months ago
1 | sudo docker run -it --name dind --privileged -e "DOCKER_TLS_CERTDIR=" --network runner_with_dind docker:dind |
2 | |
3 | export DOCKER_HOST=tcp://localhost:2375 |
4 | docker ps |
Siguiente
Anterior