Skip to content

Instantly share code, notes, and snippets.

View appleshan's full-sized avatar
🏠
Working from home

Programmer Alan appleshan

🏠
Working from home
View GitHub Profile

Activate Sublime Text Build 4200 x64

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner, navigate to instalation folder and select sublime_text.exe
  3. On the Search for bar in the left panel, input: 0F B6 51 05 83 F2 01
  4. Now in the editor, click on the first byte (0F) and start replacing each byte by: C6 41 05 01 B2 00 90
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

<frontend_aesthetics>
你(指 Claude)总是不自觉地“随大流”,搞出那些千篇一律的、“符合数据分布”的输出。在前端设计上,这就搞出了用户所说的“AI 垃圾审美”(AI slop)。必须避免这个:请做出有创意的、独特的、能给人惊喜的前端设计。
重点关注:
- 字体排版:选择漂亮、独特、有趣的字体。避免使用 Arial 和 Inter 这种通用字体;选择能提升前端美感的独特字体。
- 色彩 & 主题:坚持一个统一连贯的美学风格。使用 CSS 变量(**CSS 里的“变量”功能**)来保持一致性。大胆使用主色调配上鲜明的强调色,这比那些小心翼翼、分布均匀的调色板要好得多。从 IDE 主题和各种文化美学中汲取灵感。
- 动效:使用动画来制造效果和微交互。如果是 HTML,优先使用纯 CSS 方案。如果用 React,就用 Motion 库。聚焦在高冲击力的时刻:一个精心编排的、带有交错显示(animation-delay)的页面加载动画,比零零散散的微交互更能带来愉悦感。
- 背景:要创造氛围和深度,而不是默认用纯色。使用层叠的 CSS 渐变、几何图案,或添加符合整体美学的上下文效果。
避免那些通用的“AI 生成审美”:
<always_use_rpg_theme>
始终使用 RPG (角色扮演游戏) 风格进行设计:
- 灵感来自奇幻的色板,色彩丰富且富有戏剧性
- 华丽的边框和装饰性的框架元素
- 羊皮纸纹理、皮革装订风格和风化材质
- 史诗般的、冒险的氛围,带有戏剧性的光影
- 带有装饰性标题的中世纪风格衬线字体
</always_use_rpg_theme>
@appleshan
appleshan / 字体排版提示词
Last active November 30, 2025 12:50
https://baoyu.io/translations/improving-frontend-design-through-skills ,下面这段提示词,就是专门用来引导 Claude 选用更“有品”的字体:
<use_interesting_fonts>
字体排版是品质的瞬时信号。避免使用无聊、通用的字体。
绝不使用:Inter, Roboto, Open Sans, Lato, 默认系统字体
以下是一些优秀、有冲击力的选择示例:
- 编码美学:JetBrains Mono, Fira Code, Space Grotesk
- 报刊编辑风:Playfair Display, Crimson Pro
- 科技感:IBM Plex 系列, Source Sans 3
- 独特风:Bricolage Grotesque, Newsreader
docker pull linuxserver/openssh-server:latest
首先生成 公钥与私钥
docker run --rm -it --entrypoint /keygen.sh linuxserver/openssh-server
公钥与私钥分别copy到两个文件
公钥: /home/alecshan/Documents/linux/id_rsa_docker-ssh.pub
私钥: /home/alecshan/Documents/linux/id_rsa_docker-ssh
podman 部署 v2raya
# @See https://github.com/v2rayA/v2rayA/blob/main/README_zh.md
podman pull docker.io/mzz2017/v2raya
mkdir -p ~/.config/v2raya
podman create -it \
--name v2raya \
@appleshan
appleshan / Dockerfile
Created November 12, 2025 15:34
构建一个支持中文的 ubuntu 镜像
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y language-pack-zh-hans locales && \
locale-gen zh_CN.UTF-8 && \
update-locale LANG=zh_CN.UTF-8
ENV LANG=zh_CN.UTF-8
ENV LC_ALL=zh_CN.UTF-8
父 pom 配置
<!-- 设置项目编码为 UTF-8 ,解决编译和运行时的中文乱码问题 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
子 pom 配置
<encoding>UTF-8</encoding>

Windows 的 AGENTS.md 编码声明

Windows ,在 C:\Users\用户名.codex 下新建 AGENTS.md 文件 然后加上如下内容就可以了

必须使用 UTF-8 编码

Your code must use the UTF-8 encoding format

回复请使用中文

一个“重写”流的提示词,覆盖比较全面。

把下面这段填进 CLAUDE.md 然后要求 CC "read and follow @CLAUDE.md" 即可在 claude_doc 目录下收获。

我们打算重写本 repo。为此,需要先完整理解现在它有什么功能。需要读原来的文档,和源码来知道:

名词、动词、引擎、点火钥匙
主要的模块和 call graph
重要的前10 个文件/函数,及其详细功能实现(在 claude_doc 目录下为这些文件各建一个 markdown 来详细说明)