Skip to content

Instantly share code, notes, and snippets.

View PrintNow's full-sized avatar

Shine PrintNow

View GitHub Profile
! 屏蔽掉 AWS Console 打开速度会更快
||prod.pl.panorama.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
// ==UserScript==
// @name TrackingMore Admin Plus
// @namespace https://example.com/
// @version 1.1
// @description Inject custom grid CSS for .sp-table-body on admin.trackingmore.com
// @match https://admin.trackingmore.com/shipments/numbers*
// @match https://admin.trackingmore.com/*
// @run-at document-idle
// @grant GM_addStyle
// ==/UserScript==
@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 December 10, 2025 02:42
AWS 自动登录脚本 (包括自动填充 OTOP)
// ==UserScript==
// @name AWS 自动登录脚本
// @namespace https://nowtime.cc
// @version v1.4.0
// @description 自动登录 AWS 控制台, 2025-12-10 更新
// @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