Skip to content

Instantly share code, notes, and snippets.

View xqm32's full-sized avatar
🎯
Focusing

Qiming Xu xqm32

🎯
Focusing
  • Hefei University of Technology
  • Hefei, China
  • 20:41 (UTC +08:00)
View GitHub Profile
@zyr17
zyr17 / deck_str_to_cards_4_2.py
Last active February 12, 2024 08:55
Convert GITCG deck code to chinese card names.
# encoding: utf-8
import random
import time
import json
import base64
import requests
# Map will not update frequently, if you need latest mapping, please refer to LPSim/backend:src/lpsim/utils/deck_code_data.json.
map = [ "甘雨", "迪奥娜", "凯亚", "重云", "神里绫华", "优菈", "申鹤", "七七", "芭芭拉", "行秋", "莫娜", "达达利亚", "珊瑚宫心海", "神里绫人", "坎蒂丝", "妮露", "迪卢克", "香菱", "班尼特", "安柏", "宵宫", "可莉", "胡桃", "烟绯", "迪希雅", "菲谢尔", "雷泽", "刻晴", "赛诺", "北斗", "九条裟罗", "雷电将军", "八重神子", "丽莎", "多莉", "砂糖", "琴", "温迪", "魈", "枫原万叶", "流浪者", "凝光", "诺艾尔", "钟离", "阿贝多", "荒泷一斗", "柯莱", "提纳里", "纳西妲", "瑶瑶", "白术", "愚人众·冰萤术士", "纯水精灵·洛蒂娅", "愚人众·藏镜仕女", "愚人众·火之债务处理人", "深渊咏者·渊火", "无相之雷", "魔偶剑鬼", "丘丘岩盔王", "翠翎恐蕈", "唯此一心", "猫爪冰摇", "冷血之剑", "吐纳真定", "寒天宣命祝词", "战欲涌现", "忘玄", "起死回骸", "光辉的季节", "重帘留香", "沉没的预言", "深渊之灾·凝水盛放", "匣中玉栉", "镜华风姿", "衍溢的汐潮", "星天的花雨", "流火焦灼", "交叉火力", "冒险憧憬", "一触即发", "长野原龙势流星群", "砰砰礼物", "血之灶火", "最终解释权", "崇诚之真", "噬星魔鸦", "觉醒", "抵天雷罚", "落羽的裁择", "霹雳连霄", "我界", "万千的愿望", "神篱之御荫", "脉冲的魔女", "酌盈剂虚", "混元熵增论", "蒲公英的国土", "绪风之拥", "降魔·护法夜叉", "风物之诗咏", "梦迹一风", "储之千日,用之一刻", "支援就交给我
@xqm32
xqm32 / clash-config.yaml
Last active April 13, 2024 08:31
clash config with proxy-providers and rule-providers
##### 使用说明 #####
# 1. 请填写 proxy-providers - subscribe - url 为订阅链接
# 2. 下载 https://github.com/Loyalsoldier/clash-rules/archive/refs/heads/release.zip 并解压至 ./profiles/ruleset 文件夹下
# 3. 若需要自动更新 ruleset, 请编辑 rule-providers-config - type 为 http
##### 参考链接 #####
# 1. clash 样例配置文件
# https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file
# 2. clash 规则集
# https://github.com/Loyalsoldier/clash-rules

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

@ascendbruce
ascendbruce / README.md
Last active May 8, 2024 17:50
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

@addyosmani
addyosmani / README.md
Last active April 2, 2024 20:18 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version