Skip to content

Instantly share code, notes, and snippets.

View yzlnew's full-sized avatar
🐤
Generating

Ye Zhiling yzlnew

🐤
Generating
View GitHub Profile
@yzlnew
yzlnew / sing-box-template.json
Created March 5, 2024 03:48
Sing Box Template
{
"dns": {
"servers": [
{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"address_resolver": "dns_resolver",
"strategy": "ipv4_only",
"detour": "select"
},
@yzlnew
yzlnew / flomo2obsidian.py
Created October 25, 2022 17:45
Convert Flomo notes to Obsidian Memos. 转换 Flomo 至 Obsidian Memos.
from bs4 import BeautifulSoup
from datetime import datetime
import pathlib
import re
def format_tag(memo):
return re.sub(r"([^\ ])#", r"\1 #", memo)
def flomo2obmemos(input_path, output_path=pathlib.Path("out")):
@yzlnew
yzlnew / squirrel.custom.yaml
Last active February 21, 2025 08:15
鼠须管主题配置文件
patch:
show_notifications_when: appropriate # 状态通知,适当,也可设为全开(always)全关(never)
style/color_scheme: github
style/horizontal: true
style/font_face: "HanaMinA"
preset_color_schemes:
github:
name: "Github"
author: "yzlnew"
horizontal: true # 水平排列
@yzlnew
yzlnew / weasel.custom.yaml
Last active October 3, 2019 08:12
Rime theme
patch:
style/color_scheme: github
style/horizontal: true
style/font_face: "Sarasa Mono SC"
preset_color_schemes:
github:
name: "Github"
author: "yzlnew"
horizontal: true # 水平排列
inline_preedit: true # 单行显示,false双行显示
md ~\.vim\autoload
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
(New-Object Net.WebClient).DownloadFile(
$uri,
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath(
"~\.vim\autoload\plug.vim"
)
)
@yzlnew
yzlnew / biggerGif.sh
Created September 6, 2018 05:43
[增大微信 GIF 表情] 部分图片添加成表情尺寸比较小,需要增大
# 变大两倍,并且转换成 gif 方便直接添加
magick convert small.jpg -resize 200% bigger.gif
# 目录下批处理
find *.jpg | xargs -I {} magick convert -resize 400% {} {}.gif
@yzlnew
yzlnew / latexsnippets.md
Last active November 21, 2017 17:47
LaTeX Snippets