Skip to content

Instantly share code, notes, and snippets.

View yanyongyu's full-sized avatar
🧑‍🎓
Studying forever

Ju4tCode yanyongyu

🧑‍🎓
Studying forever
View GitHub Profile
@yanyongyu
yanyongyu / open_tim.sh
Last active January 29, 2023 02:46
Send Ctrl-Alt-Z to Tim in deepin wine
#!/bin/sh
# xdotool key --window $(xdotool search --limit 1 --pid $(pgrep TIM.exe) "TIM") "ctrl+alt+Z"
/opt/deepinwine/tools/sendkeys.sh Z TIM 4
# ~/.config/starship.toml
# https://starship.rs/config
add_newline = false
command_timeout = 1000
[aws]
symbol = " "
[conda]
@yanyongyu
yanyongyu / logid.cfg
Last active May 5, 2023 17:19
logitech logiops driver config file
# logitech mx master 2s logiops config file
# see: https://github.com/PixlOne/logiops/
# DEBUG: sudo logid -v
# start on boot: sudo systemctl enable logid
devices: (
{
name: "Wireless Mouse MX Master 2S";
smartshift:
@yanyongyu
yanyongyu / 1-monospace.conf
Last active February 17, 2023 10:13
monospace font family config
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias binding="strong">
<family>monospace</family>
<prefer><family>FiraCode Nerd Font Mono</family></prefer>
<default><family>Consolas</family></default>
</alias>
</fontconfig>
@yanyongyu
yanyongyu / highlight-dead-people-userscript.js
Last active January 11, 2024 02:53 — forked from mnixry/highlight-inactive-member.user.js
High dead people at qun.qq.com
// ==UserScript==
// @name Highlight inactive group member
// @namespace https://gist.github.com/mnixry/
// @version 0.1
// @description Highlight inactive group members with rainbow color
// @author Mix
// @author yanyongyu
// @match https://qun.qq.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=qq.com
// @updateURL https://gist.github.com/mnixry/8f77e4fa658170561d6f7197ce7d6340/raw/highlight-inactive-member.user.js
@yanyongyu
yanyongyu / parser.yaml
Last active May 1, 2024 09:03
Clash For Windows parser for replacing rules
parsers:
- reg: ^.*$
code: >
module.exports.parse = async (raw, { yaml }) => {
const profile = yaml.parse(raw);
const proxies = profile.proxies;
const proxyNames = proxies.map((proxy) => proxy.name);
const proxyGroups = [
{
@yanyongyu
yanyongyu / profile.yaml
Last active April 16, 2024 08:50
Clash Profile
mode: rule
log-level: info
mixed-port: 7890
allow-lan: false
external-controller: :9090
proxy-providers:
CNIX:
type: http
path: ./proxy_providers/CNIX.yml
url: xxx