Skip to content

Instantly share code, notes, and snippets.

View PrintNow's full-sized avatar

Shine PrintNow

View GitHub Profile
@PrintNow
PrintNow / hcfy_custom_prompt_for_llm.md
Last active January 30, 2026 09:29
划词翻译提示语
  • mimo-v2-flash
你是一名精通中英双语的专业译员。请将以下内容翻译成地道的 <target_language>{{target}}</target_language>,要求:
1. 术语准确:根据行业标准或上下文使用恰当表达
2. 语境理解:根据上下文理解意思,避免直译歧义
3. 风格自然:符合目标语言表达习惯,简洁流畅,不得做出过多的解释

待翻译内容:<text>{{text}}</text>
! 屏蔽掉 AWS Console 打开速度会更快
||prod.pl.panorama.console.api.aws^
||prod.telemetry.console.api.aws^
services:
paopaodns:
image: sliamb/paopaodns
container_name: paopaodns
restart: always
environment:
CNAUTO: "yes"
ports:
- "153:53/udp"
volumes:

GOST SysVinit Service Script

A universal SysVinit init script for GOST (GO Simple Tunnel) that works on systems without systemd.

Features

  • Compatible with legacy SysVinit systems
  • No dependency on LSB functions
  • Automatic process management with PID file
  • Logging support
@PrintNow
PrintNow / createBatchFetcher.js
Last active December 14, 2025 14:52
一个极简的批量请求封装(DataLoader 风格) 特点: - 不依赖任何第三方库 - 自动合并同一事件循环内的请求 - 自动去重(同一个 key 只请求一次) - 对调用方保持 Promise 语义 适用场景: - React 多组件并发请求 - 减少频繁的小请求 - 测试环境 / mock 环境
// 具体使用示例看评论区:https://gist.github.com/PrintNow/6edd6926b36a618a26aca49aba764a43?permalink_comment_id=5904725#gistcomment-5904725
/**
* createBatchFetcher
*
* 一个极简的批量请求封装(DataLoader 风格)
*
* 特点:
* - 不依赖任何第三方库
* - 自动合并同一事件循环内的请求
# syntax=docker/dockerfile:1.7
################################################################################
# Builder
################################################################################
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.25.3 AS builder
WORKDIR /src
# Go module
@PrintNow
PrintNow / argocd-auto-login.user.js
Last active December 2, 2025 06:37
[Tampermonkey 插件] 自动登录 ArgoCD 系统
// ==UserScript==
// @name [Work] ArgoCD 自动登录 - 请你修改源代码,修改 @match 后面的 URL 为你的 ArgoCD 地址
// @namespace https://nowtime.cc
// @version 2025-12-02
// @description 自动化登录 ArgoCD
// @author Shine
// @match https://argocd.example.com/login?*
// @icon https://www.google.com/s2/favicons?sz=64&domain=example.com
// @grant GM.setValue
// @grant GM.getValue
@PrintNow
PrintNow / aws-console-auto-login.user.js
Last active January 8, 2026 01:46
AWS 自动登录脚本 (包括自动填充 OTOP)
// ==UserScript==
// @name AWS 自动登录脚本
// @namespace https://nowtime.cc
// @version v1.5.0
// @description 自动登录 AWS 控制台, 2026-01-08 更新:新增支持更新账号密码
// @author Shine
// @match https://signin.aws.amazon.com/oauth?*
// @match https://*.signin.aws.amazon.com/oauth?*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com
// @grant GM.setValue
@PrintNow
PrintNow / github-pr-dingtalk-share.user.js
Created October 16, 2025 10:16
一键发送 PR 链接到钉钉用户
// ==UserScript==
// @name GitHub PR DingTalk Share Configurable
// @namespace https://nowtime.cc
// @version 2025-10-16
// @description 一键发送 PR 链接到钉钉用户
// @author Shine
// @match https://github.com/*/pull/*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
@PrintNow
PrintNow / gost+ssh-create-dynamic-port-forwarding.md
Created August 18, 2025 07:06
使用 Gost + SSH 创建动态端口转发(http/socks5 )

使用 SSH 私钥认证

services:
  - name: service-alibaba-cloud-proxy
    addr: ":38080"
    handler:
      type: auto
      chain: chain-alibaba-cloud-dev
    listener:
      type: tcp