Skip to content

Instantly share code, notes, and snippets.

View yunkuangao's full-sized avatar
😄
sun day

yun yunkuangao

😄
sun day
View GitHub Profile
@mnixry
mnixry / qq_message_xml.md
Last active April 4, 2024 05:50 — forked from koukuko/qq_message_xml.md
QQ的XML消息格式整理

QQ的XML消息格式整理

QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。

发送方式

通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx][@xxx]这些命令就不可使用了。整个消息只有XML。

基本结构

@dellisd
dellisd / Resource.kt
Last active December 28, 2023 11:33
Kotlin Multiplatform test resources
// Common
const val RESOURCE_PATH = "./src/commonTest/resources"
expect class Resource(name: String) {
val name: String
fun exists(): Boolean
fun readText(): String
}
@kekru
kekru / traefik-redirect-path.md
Last active July 14, 2024 00:37
Traefik redirect / (root) to sub path with Docker labels

Traefik: redirect base or root path to a subpath

This is tested with Traefik 1.7

This is how to redirect the root or base path to a sub path in Traefik using Docker labels:
Goals

  • https://example.com -> https://example.com/abc/xyz/
  • https://example.com/ -> https://example.com/abc/xyz/
  • https://example.com/something -> no redirect