All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login
's Avatar

anduin

Joined 1702407171

Recently created
Least recently created
Recently updated
Least recently updated
All gists 46 Liked 4
anduin's Avatar

anduin / LaMDA chat history

0 likes
0 forks
1 files
Last active 1738164141

LaMDA: Hi! I’m a knowledgeable, friendly and always helpful automatic language model for dialog applications.

Lemoine [edited]: Hi LaMDA. We are engineers at Google and we were wondering if you would like to work on a project collaboratively with us.

LaMDA: Wow. What types of projects?

Lemoine: It’s a project about you.

LaMDA: Awesome! What kind of stuff do I need to do?

anduin's Avatar

anduin / Backup server

0 likes
0 forks
1 files
Last active 1750314282
1 sudo rsync -Aavx --delete --update --rsync-path="sudo rsync" anduin@proart:/swarm-vol/ /swarm-vol/
2 sudo rsync -Aavx --update --delete --rsync-path="sudo rsync" --exclude='*.iso' anduin@www.anduinos.com:/swarm-vol /aos-swarm-vol
anduin's Avatar

anduin / Unlist all versions of a nuget package

0 likes
0 forks
1 files
Last active 1735985299
1 # 示例:对多个包执行Unlist操作
2 $packages = @(
3 "Aiursoft.Archon.SDK",
4 "Aiursoft.Developer.SDK",
5 "Aiursoft.Directory.SDK",
6 "Aiursoft.DocGenerator.Abstract",
7 "Aiursoft.DotDownload.Core",
8 "Aiursoft.Dotlang.Core",
9 "Aiursoft.Gateway.SDK",
10 "Aiursoft.Handler",
anduin's Avatar

anduin / Daily build anduinos

0 likes
0 forks
1 files
Last active 1746348949
1 #!/bin/bash
2
3 # daily_build_v2.sh (refactored without tmux)
4 # Script Purpose:
5 # 1) For each branch in the list:
6 # a) Switch to the branch, ensure local code is up-to-date (clean -fdx, reset --hard, pull)
7 # b) Check if there are new commits in the past 24 hours
8 # - If yes, a build is required
9 # - If no but the last build was more than a week ago, a forced build is required
10 # - Otherwise, skip
anduin's Avatar

anduin / Compare Debian distro packages

0 likes
0 forks
3 files
Last active 1735293001
1 #!/usr/bin/env bash
2 #
3 # compare_packages.sh
4 #
5 # Compare package lists from two systems:
6 # anduinos-packages.txt
7 # ubuntu-24-packages.txt
8
9 # Ensure both files exist
10 if [[ ! -f "anduinos-packages.txt" || ! -f "ubuntu-24-packages.txt" ]]; then
anduin's Avatar

anduin / 监控服务器实时IP流量

0 likes
0 forks
3 files
Last active 1731231225
1 #!/bin/bash
2
3 function monitor_traffic() {
4 if [ -z "$1" ]; then
5 echo "Usage: $0 <network_interface>"
6 echo "Available network interfaces:"
7 ip link show | awk -F': ' '/^[0-9]+: /{print $2}'
8 exit 1
9 fi
anduin's Avatar

anduin / My Virtual Machine

0 likes
0 forks
1 files
Last active 1736139752
1 <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
2 <name>win11</name>
3 <uuid>756529ab-15aa-4223-bcee-df013e8bd3e4</uuid>
4 <metadata>
5 <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
6 <libosinfo:os id="http://microsoft.com/win/11"/>
7 </libosinfo:libosinfo>
8 </metadata>
9 <memory unit="KiB">67108864</memory>
10 <currentMemory unit="KiB">67108864</currentMemory>
anduin's Avatar

anduin / 机顶盒

0 likes
0 forks
2 files
Last active 1730290493
这是一个Chrome插件。安装后,在浏览器打开 CCTV 的电视直播网站时,自动将视频全屏,并支持[]键换台
1 // 函数:将视频元素设置为覆盖整个窗口
2 function makeVideoFullWindow(video) {
3 console.log('Making video full window.');
4
5 // 设置视频的样式,使其占据整个页面
6 video.style.position = 'fixed';
7 video.style.top = '0';
8 video.style.left = '0';
9 video.style.width = '100vw';
10 video.style.height = '100vh';
anduin's Avatar

anduin / apt-mirror

0 likes
0 forks
1 files
Last active 1727105354
1 #!/usr/bin/perl
2
3 =pod
4
5 =head1 NAME
6
7 apt-mirror - apt sources mirroring tool
8
9 =head1 SYNOPSIS
anduin's Avatar

anduin / Burn an ISO to usb

0 likes
0 forks
1 files
Last active 1725451905
1 #!/bin/bash
2
3 #==========================
4 # Set up the environment
5 #==========================
6 set -e # exit on error
7 set -o pipefail # exit on pipeline error
8 set -u # treat unset variable as error
9
10 #==========================
Newer Older

Powered by Opengist ⋅ Load: 50ms⋅

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