Wszystko Nowy

user:thomas Gisty stworzone przez użytkownika

title:mygist Gisty z podanym tytułem

filename:myfile.txt Gisty zawierające pliki z podanym tytułem

extension:yml Gisty zawierające pliki z podanym rozszerzeniem

language:go Gisty zawierające pliki z podanym językiem

topic:homelab gists with given topic

Zarejestruj się

Zaloguj się


Wszystko Nowy Zarejestruj się Zaloguj się
's Avatar

anduin

Dołączono 5 months ago

Ostatnio utworzono
Najdawniej utworzono
Ostatnio zaktualizowano
Najdawniej zaktualizowano
Wszystkie Gisty 61 Zforkowane 1
anduin's Avatar

anduin / Funny CPP

0 polubień
0 forków
1 plików
Ostatnio aktywne 3 months ago
1 #include <iostream>
2 #include <vector>
3 #include <array>
4 #include <string>
5 #include <algorithm>
6 #include <ranges>
7 #include <utility>
8
9 // 1. 正常人类 (C++98)
10 void print_evens_c98(int arr[], int size) {
anduin's Avatar

anduin / Suggested flatpak apps

0 polubień
0 forków
1 plików
Ostatnio aktywne 2 months ago
1 Init All Flatpaks
2
3 flatpak install -y flathub com.github.iwalton3.jellyfin-media-player
4 flatpak install -y flathub com.nextcloud.desktopclient.nextcloud
5 flatpak install -y flathub chat.revolt.RevoltDesktop
6 flatpak install -y flathub com.qq.QQ
7 flatpak install -y flathub com.discordapp.Discord
8 flatpak install -y flathub com.mattjakeman.ExtensionManager
9 flatpak install -y flathub com.google.EarthPro
10 #flatpak install -y flathub com.jetbrains.Rider Junk
anduin's Avatar

anduin / Quicky glance a folder to view brief content

0 polubień
0 forków
1 plików
Ostatnio aktywne 4 months 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's Avatar

anduin / Interesting Prompts

0 polubień
0 forków
23 plików
Ostatnio aktywne 2 weeks ago

诸葛亮一生草庐,在刘备请他出山之前,他从无军事指挥经验。那么为什么他可以胜任军师?为什么刘备知道这个人毫无指挥经验,却能胜任军事?

他哪里来的军事指挥经验,靠冥想吗?他哪里来的复杂的管理经验?靠种地吗?

anduin's Avatar

anduin / Delete obsolete versions of AnduinOS

0 polubień
0 forków
1 plików
Ostatnio aktywne 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 polubień
0 forków
1 plików
Ostatnio aktywne 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 polubień
0 forków
2 plików
Ostatnio aktywne 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 polubień
0 forków
1 plików
Ostatnio aktywne 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 polubień
0 forków
1 plików
Ostatnio aktywne 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 polubień
0 forków
1 plików
Ostatnio aktywne 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;
Nowsze Starsze

Obsługiwane przez Opengist ⋅ Load: 58ms⋅

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