Skip to content

Instantly share code, notes, and snippets.

View Wybxc's full-sized avatar
🏠
Working from home

Jiayi Zhuang Wybxc

🏠
Working from home
View GitHub Profile
@Wybxc
Wybxc / 機器人.wy
Last active July 14, 2021 00:11
用文言调用 YiriMirai
注曰『此技但可行於 python 耳。』
今有一言。曰「lambda module: __import__(module)」。名之曰「師夷」。
或云『師夷之「甲」得「乙」也』
蓋謂『施「師夷」於「甲」。名之曰「乙」』
今有一言。曰「lambda obj: (lambda attr: getattr(obj, attr))」。名之曰「觀其法」。
或云『觀「甲」之法「乙」得「丙」也』
@koukuko
koukuko / qq_message_xml.md
Last active August 15, 2024 06:02
发送XML消息的格式

QQ的XML消息格式整理

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

发送方式

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

基本结构

xml主要由msg,item,source这3部分组成

<?xml version='1.0' encoding='utf-8' standalone='yes'?>
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active December 15, 2025 17:44
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.