全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

最近 创建
最早 创建
最近 更新
最早 更新
anduin's Avatar

anduin / clickhouse.json

0 喜欢
0 派生
2 文件
最后活跃于 2 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 喜欢
0 派生
1 文件
最后活跃于 3 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 喜欢
0 派生
1 文件
最后活跃于 4 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 喜欢
0 派生
1 文件
最后活跃于 4 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 喜欢
0 派生
1 文件
最后活跃于 5 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 喜欢
0 派生
3 文件
最后活跃于 1 month 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 喜欢
0 派生
1 文件
最后活跃于 5 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 喜欢
0 派生
2 文件
最后活跃于 5 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"
aimerneige's Avatar

aimerneige / gethddtemp.sh

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
1 #!/bin/bash
2 DRIVEPATH="$1"
3 INFO="$(sudo smartctl -a $DRIVEPATH)"
4 TEMP=$(echo "$INFO" | grep '194 Temp' | awk '{print $10}')
5 if [[ $TEMP == '' ]]; then
6 TEMP=$(echo "$INFO" | grep '190 Airflow' | awk '{print $10}')
7 fi
8 if [[ $TEMP == '' ]]; then
9 TEMP=$(echo "$INFO" | grep 'Temperature Sensor 1:' | awk '{print $4}')
10 fi
aimerneige's Avatar

aimerneige / timedatectl.sh

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
1 sudo timedatectl set-timezone UTC
2
3 sudo timedatectl set-timezone Asia/Shanghai
4
5 timedatectl status
上一页 下一页

由 Opengist 强力驱动 ⋅ Load: 62ms⋅

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