Skip to content

Instantly share code, notes, and snippets.

@leric
leric / skill.md
Last active May 26, 2026 07:26
Post-Change Design Reflection Skill

Post-Change Design Reflection Skill

Use this skill after completing a code change, bug fix, feature update, migration, or refactoring.

Do not change the normal coding workflow. Do not introduce new theory or terminology. Do not judge the code by abstract design principles first. Do not perform additional refactoring unless explicitly asked.

Instead, reflect on the actual work process while the context is still fresh.

@leric
leric / agent loop
Created March 20, 2025 00:43 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@leric
leric / openapi.yaml
Created January 27, 2021 02:24
apihub api spec
openapi: 3.0.2
info:
title: FastAPI
version: 0.1.0
paths:
/oauth2/token:
post:
tags:
- OAuth2
summary: Login For Access Token
@leric
leric / rainbow.go
Created January 27, 2021 02:22
rainbow table for phone number
package main
import (
"bufio"
"bytes"
"crypto/md5"
"crypto/rand"
"encoding/binary"
"encoding/hex"
"flag"
@leric
leric / dump.php
Created September 15, 2011 08:50
Database migrate tool using Doctrine2 DBAL
<?php
/**
* Dump database schema to schema config files
*
*/
$env = 'test';
if (empty($_SERVER['argv'][1])) {
echo "Usage: php dump.php (production|test|dev) \n";
exit();