Skip to content

Instantly share code, notes, and snippets.

View xinbenlv's full-sized avatar

xinbenlv xinbenlv

View GitHub Profile
---
name: review_pr
type: task
version: 1.0.1
agent: CodeActAgent
author: D3Serve Dev Team (by OpenHands)
triggers:
- review pr
- review pull request
- pr review
Step 1: Generate Raw Reports
Go through all PRs and branches of the repos of namefi-astra,
namefi-api, namefi-app, namefi-home, namefi-md, namefi-gpt,
plus repos under github.com/d3servelabs organization that has git commits
in its default branch in the last 4 weeks, summarize a daily updates
(since 6am yesterday til 6am today, US Pacific time) of every contributor
in bullet points in the following format, group by contributor:
Summary
@xinbenlv
xinbenlv / git.mdc
Last active April 9, 2025 04:01
Cursor rule for git and graphite
---
description: When using Git (e.g. `git commit`) and Graphite (`gt`cli e.g. `gt create`)
globs:
alwaysApply: false
---
## When user asks for `git commit`
- Always run `git --no-pager diff` and go through the *current* code change and summarize the updates into git commit message and then execute the git commit. Commit message should include a brief oneliner summary and then a multi-line bullet points of details. The oneliner summary should follow "conventional commits" format. Check last 100 git commit history to find existing "scope" of convention comments, try to reuse known scope if possible, unless you feel it's better to suggest a new scope, then do use that new scope.
## When asked for `gt create`
@xinbenlv
xinbenlv / NewReplayProtection.sol
Created October 5, 2023 18:17
Demonstrate Old and New Output from eip712-codegen
pragma solidity ^0.8.13;
// SPDX-License-Identifier: MIT
struct SignedReplayProtection {
ReplayProtection message;
bytes signature;
address signer;
}
@xinbenlv
xinbenlv / eth-history.md
Created September 26, 2023 03:16
ETH history
title description lang sidebarDepth
History and Forks of Ethereum
A history of the Ethereum blockchain including major milestones, releases, and forks.
en
1

The history of Ethereum {#the-history-of-ethereum}

A timeline of all the major milestones, forks, and updates to the Ethereum blockchain.

@xinbenlv
xinbenlv / zgzgrabit.json
Last active November 19, 2022 00:08
zgzgrabit.json
{
"name": "ZGZG Rabit Collection",
"description": "ZGZG Rabit Collection",
"image": "https://i.ibb.co/R0t786D/ZGZG-NFT-Female-10.jpg"
}
@xinbenlv
xinbenlv / tokencube.json
Last active October 10, 2022 22:47
tokencube.json
{
"name": "The TokenCube",
"description": "The explorative tokens for TokenCube.",
"image": "https://i.ibb.co/KVCKPFk/tokencubenft.png"
}
@xinbenlv
xinbenlv / ztoken-ibb.json
Created September 30, 2022 06:25
ztoken-ibb.json
{
"name": "ZTokens Genesis Ibb",
"description": "The Genesis of ZTokens with Ibb image.",
"image": "https://i.ibb.co/x70BjG6/art2-small.png"
}
{
"name": "Teamfood NFT",
"description": "A teamfood NFT4G",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Googleplex_HQ_%28cropped%29.jpg/2560px-Googleplex_HQ_%28cropped%29.jpg"
}
@xinbenlv
xinbenlv / README.txt
Created September 16, 2021 02:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=false&runs=200&gist=
A project for ERC1202 and sample code.