使用onebot API。可以使用 https://github.com/LLOneBot/LuckyLilliaBot 方便导出。
qq-group-member-list输出为jsonl,每一行的类型定义为:
export interface Welcome {
group_id: number;
group_data: GroupData;
result: Result;
}| From 2d9d26b81bb1b3eec9c33b52bc9a2a8c7dd6fb8b Mon Sep 17 00:00:00 2001 | |
| From: Loukas Agorgianitis <loukas@agorgianitis.com> | |
| Date: Mon, 13 Jan 2025 21:43:56 +0200 | |
| Subject: [PATCH] render: make transformations in geometry space | |
| Previously, the rendering process made transformations in logical | |
| geometry space. When using fractional scaling, this process scaled | |
| the transformations to the logical geometry space and back using the | |
| fractional scale, which led to floating point rounding errors. This, | |
| produced non pixel perfect / slightly blurry images. |
| #![feature(file_buffered)] | |
| use clap::Parser; | |
| use serde::Serialize; | |
| use std::fs::File; | |
| use std::path::{Path, PathBuf}; | |
| #[derive(Parser)] | |
| struct Args { | |
| path: PathBuf, |
| use imap::{Connection, Session}; | |
| use std::fs::{self, File}; | |
| use std::io::Write; | |
| use std::net::TcpStream; | |
| const JUNK_FOLDER_NAME: &str = "&V4NXPpCuTvY-"; | |
| const ADS_FOLDER_NAME: &str = "&Xn9USpCuTvY-"; | |
| const SAVE_DIR: &str = "pulled"; | |
| fn download_emails(session: &mut Session<Connection>, folder: &str) -> anyhow::Result<()> { |
使用onebot API。可以使用 https://github.com/LLOneBot/LuckyLilliaBot 方便导出。
qq-group-member-list输出为jsonl,每一行的类型定义为:
export interface Welcome {
group_id: number;
group_data: GroupData;
result: Result;
}| #define _GNU_SOURCE | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <signal.h> | |
| #include <ucontext.h> | |
| void handle_fpe(int sig, siginfo_t *info, void *ucontext) { | |
| printf("Caught SIGFPE! Attempting to skip the broken instruction...\n"); | |
| // 强制转换为 ucontext_t 结构体指针 |
先设置sudo ydotool免密执行。
首先使用另一个设备连接上电脑的ssh。在电脑的tty下运行./start-random-display,后面等待的十秒内,走离电脑屏幕。待十秒后随机桌面启动后,在ssh连接的终端中运行./manage-game start,自动启动Steam并进入游戏(一分钟多一点)。然后可以回到电脑旁。
完成之后,在ssh终端中使用./manage-game exit退出,再./close-display退出桌面,准备进行下一轮。
| #!/usr/bin/env ruby | |
| # --- 配置区 --- | |
| SAMPLE_RATE = 44100 | |
| FREQUENCY = 800.0 | |
| DURATION = 15 | |
| # 你的 USB 设备关键字(用于 grep 匹配) | |
| DEVICE_KEY = "usb-C-Media_Electronics_Inc._USB_Audio_Device-00" | |
| # aplay 完整设备路径 | |
| DEVICE_PATH = "pulse:alsa_output.#{DEVICE_KEY}.analog-stereo" |