Skip to content

Instantly share code, notes, and snippets.

View yangon99's full-sized avatar
🏃
runaway

Yangon yangon99

🏃
runaway
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Arial"="NotoSansCJK-Medium.ttc"
"Arial Black"="NotoSansCJK-Medium.ttc"
"Arial Unicode MS"="NotoSansCJK-Medium.ttc"
"Lucida Sans Unicode"="NotoSansCJK-Medium.ttc"
"Microsoft Sans Serif"="NotoSansCJK-Medium.ttc"
"Microsoft YaHei"="SIMSUN.TTC,SimSunMINGLIU.TTC,PMingLiuMSGOTHIC.TTC,MS UI GothicBATANG.TTC,Batang"
"SimSun"="NotoSansCJK-Medium.ttc"
"Tahoma"="SIMSUN.TTC,SimSunMINGLIU.TTC,PMingLiuMSGOTHIC.TTC,MS UI GothicBATANG.TTC,Batang"
#!/usr/bin/bash
# Refer: http://www.baozy.com/archives/12084.html
msg_file=$HOME/Music/sp/msg.wav
icon_file=/usr/share/icons/hicolor/16x16/apps/com.qq.im.deepin.svg
inotifywait -mq $msg_file --format %e -e OPEN |while read event
do
notify-send "There's new message from QQ" \
@yangon99
yangon99 / clash-premium-bin
Last active December 29, 2020 15:49
auto update clash-premium-bin PKGBUILD
#!/usr/bin/bash
config_root="$HOME/.local/etc/AUR_update/"
config_path="$config_root/${0##*/}"
if [ ! -d $config_root ]; then mkdir "$config_root" -p; fi
repo_root="$HOME/repo"
repo_path="$HOME/repo/${0##*/}"
function check_update() {
#!/bin/sh
# You have to configure "tun", "interface-name" and "dns" for clash to use this script
# ref: https://github.com/Dreamacro/clash/wiki/configuration
# https://github.com/Dreamacro/clash/wiki/premium-core-features#tun-device
if [ `id -u` -ne 0 ]; then
echo 'Must run as root!'
exit 1
fi