Skip to content

Instantly share code, notes, and snippets.

View PrintNow's full-sized avatar

Shine PrintNow

View GitHub Profile
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>图片查看器插件</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
#此处主要屏蔽小米云扫描组件 -> https://github.com/LoopDns/Fuck-you-MIUI/blob/main/MIhosts#L1
0.0.0.0 log.avlyun.sec.intl.miui.com
0.0.0.0 update.avlyun.sec.miui.com
0.0.0.0 ixav-cse.avlyun.com
0.0.0.0 logupdate.avlyun.sec.miui.com
0.0.0.0 miui-fxcse.avlyun.com
0.0.0.0 sdkconf.avlyun.com
0.0.0.0 sdkconf.avlyun.com
0.0.0.0 miav-cse.avlyun.com
0.0.0.0 miav-cse.avlyun.com
@PrintNow
PrintNow / fix-hcfy-11.6.0_shopify.dev.user.js
Created April 18, 2025 04:14
秀姑「划词翻译」对 Shopify.dev 网站样式破坏
// ==UserScript==
// @name 修复 Shopify x 划词翻译插件冲突
// @namespace http://nowtime.cc.net/
// @version 2025-04-18
// @description try to take over the world!
// @author Shine
// @match https://shopify.dev/docs/api/admin-graphql/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=shopify.dev
// @grant none
// ==/UserScript==
@PrintNow
PrintNow / shopify-admin-api-graphql-get-subscription-info.gql
Last active April 17, 2025 08:39
使用 Shopify Admin API (GraphQL) 获取订阅信息
{
webPixel {
id
settings
}
currentAppInstallation {
id
activeSubscriptions {
id
status
#!/bin/sh
# 更新 APK 包索引
apk update
# 安装 OpenSSH 服务
apk add openssh
# 生成 SSH 主机密钥
ssh-keygen -A
@PrintNow
PrintNow / blog-post-comment-reply-contnt-template.html
Last active April 7, 2025 13:45
博客内容评论邮件回复模板
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>您的评论已收到回复</title>
</head>
<body style="margin: 0; padding: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #333333; background-color: #f7f7f7;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
<tr>
@PrintNow
PrintNow / ai-rules-clash.txt
Last active March 18, 2025 08:06
AI 分流规则(clash)
# ChatGPT
DOMAIN-SUFFIX,openai.com
DOMAIN-SUFFIX,chatgpt.com
DOMAIN-SUFFIX,oaistatic.com
# Grok
DOMAIN-SUFFIX,x.ai
DOMAIN-SUFFIX,grok.com
# Claude

DNS 配置相关

Note

优先推荐使用这种配置,放弃 fallback 过时的方式

dns:
  enable: true
  use-system-hosts: true
@PrintNow
PrintNow / go-parse-json5.go
Last active February 28, 2025 11:29
使用 Go 读取 json5 文件
package main
import (
"fmt"
"github.com/titanous/json5"
"os"
"strings"
)
//TIP <p>To run your code, right-click the code and select <b>Run</b>.</p> <p>Alternatively, click
@PrintNow
PrintNow / jetbrains-ai-assistant-commit-prompt.md
Last active February 25, 2025 02:33
JetBrains AI Assistant 生成提交消息提示语(Prompt)

2025-02-25

基于此进行改造:https://andrewian.dev/blog/ai-git-commits

Generate a git commit message following this structure:
1. First line: conventional commit format (type: concise description) (remember to use semantic types like feat, fix, docs, style, refactor, perf, test, chore, etc.)
2. Optional bullet points if more context helps:
   - Keep the second line blank
   - Keep them short and direct
   - Focus on what changed