Skip to content

Instantly share code, notes, and snippets.

View bombless's full-sized avatar

York Xiang bombless

  • Guangzhou, China
View GitHub Profile
@bombless
bombless / model-cli.sh
Last active March 10, 2026 02:21
测试openclaw配置的模型
#!/usr/bin/env bash
# model-cli.sh - OpenClaw模型命令行工具
# 用法:
# ./model-cli.sh list # 列出所有可用接口
# ./model-cli.sh set <alias> # 设置当前使用的接口
# ./model-cli.sh ask "问题" # 向当前模型提问
set -euo pipefail
CONFIG_FILE="/home/openclaw/.openclaw/openclaw.json"
@bombless
bombless / q.sh
Last active March 10, 2026 02:22
qemu测试efi
qemu-system-x86_64 -bios DEBUGX64_OVMF.fd -drive format=raw,file=fat:rw:./esp
// 文件名: drm_demo.c
// 编译: gcc drm_demo.c -o drm_demo -ldrm -lxf86drm
// 运行: 需要在纯控制台(tty)下,并以root权限执行 (sudo ./drm_demo)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
@bombless
bombless / install-bluetooth-speaker.sh
Last active March 10, 2026 02:23
archlinux连接蓝牙音箱
sudo pacman -Syu bluez bluez-utils pipewire pipewire-audio pipewire-pulse wireplumber pipewire-alsa
x/9i 0x4c3916c

这里是EFI_MAIN入口

x/9i 0x4c3a8b9
System
------------
Pixi version: 0.59.0
Platform: linux-64
Virtual packages: __unix=0=0
: __linux=6.17.7=0
: __glibc=2.42=0
: __cuda=13.0=0
: __archspec=1=skylake
Cache dir: /home/bombless/.cache/rattler/cache
2101146142
146142
@bombless
bombless / Cargo.toml
Created October 12, 2025 14:35
egui_plot 0.34 zooming problem
[package]
name = "custom_plot_manipulation"
version = "0.1.0"
edition = "2024"
[dependencies]
eframe = "0.33"
egui_plot = "0.34"
%% 广告播放设备管理系统
%% 文件: ad_device_system.erl
-module(ad_device_system).
-behaviour(gen_server).
%% API exports
-export([start_link/0, stop/0, get_device_status/0, get_device_info/1]).
%% gen_server callbacks