AimerNeige / gen_random_string.py
0 likes
0 forks
1 files
Last active
1 | def generate_random_string(n): |
2 | letters = string.ascii_letters + string.digits |
3 | return ''.join(random.choice(letters) for _ in range(n)) |
anduin / Unlist all versions of a nuget package
0 likes
0 forks
1 files
Last active
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 likes
0 forks
1 files
Last active
1 | anduin@builder:~$ cat ./daily_build_v2.sh |
2 | #!/bin/bash |
3 | |
4 | # daily_build_v2.sh (refactored without tmux) |
5 | # Script Purpose: |
6 | # 1) For each branch in the list: |
7 | # a) Switch to the branch, ensure local code is up-to-date (clean -fdx, reset --hard, pull) |
8 | # b) Check if there are new commits in the past 24 hours |
9 | # - If yes, a build is required |
10 | # - If no but the last build was more than a week ago, a forced build is required |
anduin / Compare Debian distro packages
0 likes
0 forks
3 files
Last active
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 |
AimerNeige / pullcheck.sh
0 likes
0 forks
1 files
Last active
1 | if [[ $(git fetch origin 2>&1) ]]; then |
2 | echo "WARNING! pull the newest code before build" |
3 | exit 1 |
4 | fi |
anduin / 监控服务器实时IP流量
0 likes
0 forks
3 files
Last active
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 likes
0 forks
1 files
Last active
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> |
AimerNeige / ubuntu-drivers.sh
0 likes
0 forks
1 files
Last active
1 | ubuntu-drivers devices |
2 | sudo ubuntu-drivers autoinstall |
AimerNeige / TTY Fonts
0 likes
0 forks
1 files
Last active
Change the font or the font size in the TTY (console)
1 | # https://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console |
2 | |
3 | sudo dpkg-reconfigure console-setup |
4 | |
5 | # UTF-8 |
6 | # Combined - Latin, ... |
7 | # Terminus |
8 | # Set Font Size |
Newer
Older