anduin / LaMDA chat history
0 mi piace
0 forks
1 files
Ultima volta attivo
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 / Rename files and folders
0 mi piace
0 forks
1 files
Ultima volta attivo
1 | #!/usr/bin/env bash |
2 | |
3 | #----------------------------------------------------- |
4 | # 先收集所有“需要重命名”的目录,再统一重命名 |
5 | #----------------------------------------------------- |
6 | rename_dirs_deepest_first() { |
7 | echo "==> Searching for directories containing 'NiBot' ..." |
8 | |
9 | # 收集所有包含“NiBot”的目录,排除 .git |
10 | # -path '*/.git*' -prune -o :跳过 .git |
anduin / Unlist all versions of a nuget package
0 mi piace
0 forks
1 files
Ultima volta attivo
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 / Daily build anduinos
0 mi piace
0 forks
1 files
Ultima volta attivo
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 / Compare Debian distro packages
0 mi piace
0 forks
3 files
Ultima volta attivo
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 / 监控服务器实时IP流量
0 mi piace
0 forks
3 files
Ultima volta attivo
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 / My Virtual Machine
0 mi piace
0 forks
1 files
Ultima volta attivo
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 / apt-mirror
0 mi piace
0 forks
1 files
Ultima volta attivo
1 | #!/usr/bin/perl |
2 | |
3 | =pod |
4 | |
5 | =head1 NAME |
6 | |
7 | apt-mirror - apt sources mirroring tool |
8 | |
9 | =head1 SYNOPSIS |
Più nuovi
Più vecchi