Skip to content

Instantly share code, notes, and snippets.

View Yarnus's full-sized avatar
😌
focusing on my full-time job

Ian Yarnus

😌
focusing on my full-time job
  • 03:59 (UTC +08:00)
View GitHub Profile
@Yarnus
Yarnus / Mine.plugin
Created April 14, 2026 11:33
Mine.plugin
#!name=番茄小说+红果短剧 去广告
#!desc=番茄小说、红果短剧去广告规则(Loon)
#!author=OpenAI
#!version=1.0
[Rule]
DOMAIN,p6-ad-sign.byteimg.com,REJECT
DOMAIN,p9-ad-sign.byteimg.com,REJECT
DOMAIN-SUFFIX,byteimg.com,DIRECT
DOMAIN,i.snssdk.com,REJECT
@Yarnus
Yarnus / .p10k.zsh
Created September 5, 2022 09:18
personal p10k config
# Generated by Powerlevel10k configuration wizard on 2022-09-05 at 15:18 CST.
# Based on romkatv/powerlevel10k/config/p10k-pure.zsh, checksum 13301.
# Wizard options: nerdfont-complete + powerline, small icons, pure, snazzy, rprompt,
# 1 line, compact, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure).
#
# Differences from Pure:
#
@Yarnus
Yarnus / wezterm.lua
Last active December 4, 2024 05:54
personal wezterm config.
local wezterm = require 'wezterm'
wezterm.on(
'format-tab-title',
function(tab, tabs, panes, config, hover, max_width)
local str = tab.active_pane.title
local index = tab.tab_index + 1
str = string.gsub(str, '(.*[/\\])(.*)', '%2')
@Yarnus
Yarnus / appium_get_toast.py
Created April 16, 2018 15:09
appium捕获 toast
# setup 的字典中 必需 Uiautomator2 才能获取到 toast
desired_caps['automationName'] = 'Uiautomator2'
def get_toast(self, message, timeout=30, poll_frequency=0.5):
'''To confirm if toast exist finally return True or False
:Args:
- message - 页面上看到的toast消息文本内容
- timeout - 最大超时时间,默认30s
- poll_frequency - 间隔查询时间,默认0.5s查询一次
:Usage: