Tümü Yeni

user:thomas kullanıcı tarafından oluşturulan gistler

title:mygist belirtilen isme sahip gistler

filename:myfile.txt belirtilen isimde dosyaları olan gistler

extension:yml belirtilen uzantıya sahip dosyalara sahip gistler

language:go belirtilen dilde dosyaları olan gistler

topic:homelab Verilen konuyla ilgili gist'ler

Kaydol

Giriş


Tümü Yeni Kaydol Giriş

Tüm gistler

Yakın zamanda oluşturuldu
En eski oluşturuldu
Yakın zamanda güncellendi
En eski güncellendi
anduin's Avatar

anduin / Delete obsolete versions of AnduinOS

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 4 months 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's Avatar

anduin / Set keys to all gitlab repos

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 4 months 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's Avatar

anduin / clickhouse.json

0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 4 months ago
1 {
2 "annotations": {
3 "list": [
4 {
5 "builtIn": 1,
6 "datasource": {
7 "type": "grafana",
8 "uid": "-- Grafana --"
9 },
10 "enable": true,
anduin's Avatar

anduin / Run docker in docker in docker

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 5 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
anduin's Avatar

anduin / My MCP config

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 6 months ago
My MCP config
1 {
2 "mcpServers": {
3 "code-runner": {
4 "type": "streamable_http",
5 "url": "https://cpprunner.aiursoft.cn/mcp",
6 "headers": {
7 "Content-Type": "application/json"
8 }
9 },
10 "context7": {
anduin's Avatar

anduin / 死锁检测测试

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 6 months ago
1 // gcc -g ./s.c -o deadlock_demo -lpthread
2 // sudo valgrind --tool=helgrind ./deadlock_demo
3
4 #include <pthread.h>
5 #include <stdio.h>
6 #include <unistd.h>
7
8 pthread_mutex_t lock_a = PTHREAD_MUTEX_INITIALIZER;
9 pthread_mutex_t lock_b = PTHREAD_MUTEX_INITIALIZER;
anduin's Avatar

anduin / circle.asm

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 7 months ago
1 ; boot2.asm
2 ; nasm -f bin boot2.asm -o boot2.img
3 ; qemu-system-i386 -drive format=raw,file=boot2.img
4
5 [org 0x7c00]
6 bits 16
7
8 start:
9 cli
10 xor ax, ax
anduin's Avatar

anduin / Autoseed.sh

0 beğeniler
0 çatallar
3 dosyalar
Son aktivite 3 months ago
Seed all torrent files under current folder.
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 # -----------------------------------------------------------------------------
5 # 依赖检查:aria2c、tmux 和 ufw(如果存在)
6 # -----------------------------------------------------------------------------
7 if ! command -v aria2c &> /dev/null; then
8 echo "[INFO] Installing aria2..."
9 sudo apt-get update && sudo apt-get install -y aria2
10 fi
anduin's Avatar

anduin / System tools check

0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 7 months ago
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 # 要检查的命令列表(包含常用的系统管理、文件操作、网络诊断等)
5 cmds=(
6 # 原有命令
7 ls type which make uname lsb_release usermod nano apt sudo
8 dirname basename yes printf stat diff patch dpkg dpkg-query apt-cache
9 rsync id groups smartctl mkfs.ext4 strace nmap rsync
10 tar xz gzip file less w who whoami scp vim
anduin's Avatar

anduin / compare_manifest

0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 7 months ago
Compare two manifest files and list packages present in the first but not the second.
1 # 保存脚本为 compare_manifests.py,并赋可执行权限
2 chmod +x compare_manifests.py
3
4 # 运行脚本,依次传入 Ubuntu、Zorin、Anduin 三个 manifest 文件路径
5 ./compare_manifests.py \
6 "/media/anduin/Ubuntu 25.04 amd64/casper/filesystem.manifest" \
7 "/media/anduin/Zorin OS 17.3 Core 64bit/casper/filesystem.manifest" \
8 "/media/anduin/anduinos/casper/filesystem.manifest"
Daha yeni Daha eski

Opengist tarafından desteklenmektedir ⋅ Load: 59ms⋅

Türkçe
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文