Skip to content

Instantly share code, notes, and snippets.

View lltx's full-sized avatar
🍎
保持专注

leng leng lltx

🍎
保持专注
View GitHub Profile
@lltx
lltx / apifox-security-advisory.md
Created March 26, 2026 02:34
Apifox 供应链攻击安全事件处理建议(2026年3月)

Apifox 供应链攻击安全事件处理建议

事件时间:2026年3月4日 - 2026年3月22日 发布日期:2026年3月25日 严重等级:高危

事件概述

Apifox 公网 SaaS 版桌面客户端动态加载的外部 JavaScript 文件遭到恶意篡改(供应链攻击)。攻击者通过 C2 恶意域名 apifox.it.com(托管于 Cloudflare)持续活跃 18 天,恶意脚本可能读取用户本地高敏感文件并上报至攻击者服务器。

@lltx
lltx / terminal-setup.md
Created March 23, 2026 01:07
🚀 现代化终端配置指南 - Ghostty + Zoxide + Yazi + Oh-My-Zsh

🚀 现代化终端配置指南

Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置

📦 工具列表

  • Ghostty - 现代化 GPU 加速终端模拟器
  • Zoxide - 智能目录跳转工具(cd 的智能替代)
  • Yazi - 快速终端文件管理器
  • Oh-My-Zsh - Zsh 配置框架
<template>
<div class="layout-breadcrumb-seting">
<el-drawer
:title="$t('layout.configTitle')"
v-model="getThemeConfig.isDrawer"
direction="rtl"
destroy-on-close
size="260px"
@close="onDrawerClose"
>
@lltx
lltx / shadcn-vue-query-auth-implementation.md
Created August 21, 2025 07:12
gist from mcp-server-gist

商业版信息查询组件实现说明

概述

参考 form4.md 中的 InfoQuery 组件,使用 shadcn-vue 组件库实现了商业版信息查询表单,保持了与原组件完全一致的字段和接口。

主要特性

🔧 核心功能

  • ✅ 私服账号输入(必填)
  • ✅ 验证码输入(必填)和获取验证码功能
@lltx
lltx / .cursorrules
Last active August 7, 2025 06:12 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@lltx
lltx / try-catch.ts
Created February 24, 2025 05:44 — forked from t3dotgg/try-catch.ts
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};