Skip to content

Instantly share code, notes, and snippets.

View PrintNow's full-sized avatar

Shine PrintNow

View GitHub Profile
ARG PHP_VERSION=8.5.6
ARG ALPINE_VERSION=3.23
FROM php:${PHP_VERSION}-alpine${ALPINE_VERSION}
ARG PHP_VERSION
ARG ALPINE_VERSION
ARG SWOOLE_VERSION=6.2.1
ARG TIMEZONE
ARG BUILD_DATE=2026-05-19
@PrintNow
PrintNow / buildspec.schema.json
Created May 18, 2026 02:42
JSON Schema (draft-04) for AWS CodeBuild buildspec.yaml — full syntax coverage with shell-injection hints for commands. / AWS CodeBuild buildspec.yaml 的 JSON Schema (draft-04),完整覆盖官方语法,commands 字段带 shell 语法注入提示。
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "AWS CodeBuild buildspec",
"description": "Schema for AWS CodeBuild buildspec.yaml. Reference: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html",
"type": "object",
"required": ["version"],
"additionalProperties": false,
"properties": {
"version": {
"description": "Buildspec version. Recommended: 0.2.",

1. First select id="tabpanels" element

PixPin_2026-03-25_15-58-20

2. Then run this code in Console

const $flagsExperiments = $0.querySelectorAll(`flags-experiment`)

const data = []
$flagsExperiments.forEach(($el) => {
  const $flagsExperiment = $el.shadowRoot
@PrintNow
PrintNow / CMCC-tariffZonePers.md
Last active February 12, 2026 01:57
中国移动资费公布专区数据解密调试方法
PixPin_2026-02-12_09-49-41

关键解密逻辑部分:

        _0x39ede6['interceptors']['response']['use'](function(_0x51e98a) {
            var _0x15d26c = _0x51e98a['config'];
            if (_0x15d26c['noLoading'] || (0x0,
            _0x2de9be['Dk'])(),
            0xc8 === _0x51e98a['status'] || 0x130 === _0x51e98a['status']) {
                var _0x4a1e1a = _0x51e98a['data'];
@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