Skip to content

Instantly share code, notes, and snippets.

View amorphobia's full-sized avatar
🐤
弱鸡

Xuesong amorphobia

🐤
弱鸡
View GitHub Profile
@amorphobia
amorphobia / README.md
Created September 19, 2026 09:17
Rabbit and librime-ahk support rime plugin DLL loader

两个 patch 说明

这次改动分为两个独立 patch:

  • rabbit.patch:修改 Rabbit 主仓库。
  • librime-ahk.patch:修改 Lib/librime-ahk 子模块。

两者需要同时应用,但代码职责彼此分离。

一、librime-ahk.patch

@amorphobia
amorphobia / codex-short.ps1
Last active August 31, 2026 04:00
Start codex with proxy
# Direct run might be denied
$pkg = Get-AppxPackage -Name OpenAI.Codex
& "$($pkg.InstallLocation)\app\ChatGPT.exe" --proxy-server=http://localhost:7890
@amorphobia
amorphobia / 800px.sixel
Last active May 7, 2026 06:14
amorphobia avatar
P0;0;0q"1;1;800;800#0;2;98;43;34#1;2;100;44;33#2;2;100;48;37#3;2;99;55;43#4;2;1;17;77#5;2;25;49;96#6;2;100;70;56#7;2;100;93;84#8;2;100;100;100#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-#2!100~#3!200~#2!100~#0!200~#3!200~-!100o!200N#2!100N#3!200?!100N!100~$#2!100N!100o#0!200o!200~!100o-#3!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!100~-!100~#2!100~#0!500~#3!
$env:RESTIC_REPOSITORY = "E:\Documents\Backup\restic-immich"
$env:RESTIC_PASSWORD = "XXXXXXXXXXXXXXXX"
$BaseDir = "F:"
$UploadLocation = "$BaseDir\library"
Write-Host "Begin database dumping..."
[System.IO.File]::WriteAllLines("F:\library\database-backup\immich-database.sql", (docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres))
@amorphobia
amorphobia / dolphin.css
Last active February 7, 2025 05:03
test.css
/*!
* Dolphin for Gazelle v1.0
* Copyright 2020 ZexWoo 年份更新过了
* Thanks to Redacted
*/
* {
margin: 0;
padding: 0;
}
@amorphobia
amorphobia / clock.cmd
Last active December 22, 2024 08:33
Desktop clock by PowerShell + .Net Framework + WPF
<# :
@echo off
start /b powershell /windowstyle hidden /nologo /noprofile /command ^
"&{[ScriptBlock]::Create((cat """%~f0""") -join [Char[]]10).Invoke(@(&{$args}%*))}"
exit /b
#>
param(
[Parameter(Mandatory=$false)]
[string]$CultureName,
@amorphobia
amorphobia / photo.reg
Created November 2, 2024 09:22
Fallback to old image viewer on Windows 10/11 (在 Windows 10/11 上回退到旧版照片查看器)
Windows Registry Editor Version 5.00
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.jpg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.jpeg]
@="PhotoViewer.FileAssoc.Tiff"
; Change Extension's File Type
[HKEY_CURRENT_USER\Software\Classes\.gif]
@="PhotoViewer.FileAssoc.Tiff"
@amorphobia
amorphobia / smyh.base.schema.yaml
Last active January 18, 2024 05:15
smyh.base.schema.yaml
# Rime schema settings
# encoding: utf-8
schema:
schema_id: smyh.base
name: 吉旦餅·基礎碼表
description: |
可以打字。
engine:
@amorphobia
amorphobia / 键道安装.html
Created November 7, 2023 07:51
键道安装快捷指令
<!DOCTYPE html><html><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="format-detection" content="telephone=no,date=no">
<title>键道安装</title>
<style>
body {
font-family: system-ui;
font-size: 0.95em;
margin-top: 1rem;
margin-bottom: calc(1rem + env(safe-area-inset-bottom));
@amorphobia
amorphobia / gedao.schema.yaml
Created November 5, 2023 09:24
格道双拼-仓
# Rime schema
# encoding: utf-8
schema:
schema_id: gedao
name: 格道双拼
version: "1.0.0"
author:
- fkxxyz (四叶草拼音词库)
- 吅吅大牛 (格道17键双拼布局)