Skip to content

Instantly share code, notes, and snippets.

@Mine77
Mine77 / gist:a4a516d5e3a6c97bac295a3276469753
Created October 31, 2025 12:19
nuwa-x402-mcp-demo.json
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "x402 MCP Demo",
"description": "The Model fee is flat. Waiting for v2's upto schema. 4o-mini is cheap enough but please go easy on it. I have no VC to back me for LLM fee.",
"image": "https://teal-known-goldfish-479.mypinata.cloud/ipfs/bafybeigmzd5vjmezjp6hc6wqoue7m54qhn6ccujsdaoxp2axjm63xamrn4",
"endpoints": [
{
"name": "llm",
"endpoint": "https://gateway.example.com/llm",
"modelId": "openai/gpt-4o-mini-2024-07-18",
@Mine77
Mine77 / agent-x402-mcp.json
Created October 30, 2025 12:09
agent-x402-mcp
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "x402 MCP Demo",
"description": "The Model fee is flat. Waiting for v2's upto schema. 4o-mini is cheap enough but please go easy on it. I have no VC to back me for LLM fee.",
"image": "https://example.com/placeholder.png",
"endpoints": [
{
"name": "llm",
"endpoint": "https://gateway.example.com/llm",
"modelId": "openai/gpt-4o-mini-2024-07-18",
@Mine77
Mine77 / nuwa-agent.json
Last active October 30, 2025 11:59
nuwa-agent.json for erc8004 test
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "x402 MCP Demo",
"description": "The Model fee is flat. Waiting for v2's upto schema. 4o-mini is cheap enough but please go easy on it. I have no VC to back me for LLM fee.",
"image": "https://example.com/placeholder.png",
"endpoints": [
{
"name": "llm",
"endpoint": "https://gateway.example.com/llm",
"modelId": "openai/gpt-4o-mini-2024-07-18",
@Mine77
Mine77 / shadowrocket.conf
Created October 24, 2022 17:16
shadowrocket.conf
[General]
# ShadowRocket 现已支持 DoH / DoT
# 您可以根据需求自行决定选用 DNS 服务器的种类和组合方式,例如:混用服务器来实现最佳解析速度;单独 DoH 使用来达到最佳安全性和最低污染度。
dns-server = https://doh.pub/dns-query, https://dns.alidns.com/dns-query
bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.168.0.0/16, 192.88.99.0/24, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32
skip-proxy = localhost, *.local, injections.adguard.org, local.adguard.org, captive.apple.com, guzzoni.apple.com, 0.0.0.0/8, 10.0.0.0/8, 17.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.168.0.0/16, 192.88.99.0/24, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32
bypass-system = true
ipv6 = true
[Rule]
@Mine77
Mine77 / Algorand2014howework.md
Last active October 24, 2020 07:01
Algorand 1024 Workshop Homework

Algorand 1024 Workshop Homework

Issue an ASA token on Algorand testnet.

For tutorial, please see: https://developer.algorand.org/

Reply this gist with your asset ID and your mainnet wallet address.

First 20 winner will each get a 50 ALGO rewards. ✌️

Algorand Korea University Workshop Homework

Issue an ASA token on Algorand testnet.

For tutorial, please see: https://developer.algorand.org/

Reply this gist with your asset ID and your mainnet wallet address, the first 10 people will get a reward of 100 ALGO.

@Mine77
Mine77 / lottery.py
Last active November 6, 2019 08:54
Lottery Program for Nervos CKB Mining Competition (6/15 - 6/28)
from hashlib import sha256
# the seed here is only an example.
# The seed for the lottery (of Nervos CKB Minning Competition between 6/15 and 6/28) will be the block hash of the block of height N.
# Here is the sha256 hash of the sentence that contains the information of N:0x24f7501665d4f59b7f65c0853f8dd2a68fe528d345ffe63721f391eec711c190
# Update: The message is "N = 77". According to the competition result, the block hash of height 77 is 0x73ba270324ee87ed8990acbc316380c584dea21a1b8b87f4e8c363595e08225f
seed = "0x73ba270324ee87ed8990acbc316380c584dea21a1b8b87f4e8c363595e08225f"
# This is the number of the participants in total.
# The number here should be replaced with the actual number after the competition conclude.
@Mine77
Mine77 / CKB.paw.json
Last active December 6, 2019 08:14
All CKB RPC API in a paw file for Rest API softwares such as Insomnia.
{
"info": {
"name": "CKB.paw",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
"version": "v0.0.0"
},
"item": [
{
"name": "Chain",
"item": [
@Mine77
Mine77 / ckb-ruby-example.rb
Created May 6, 2019 08:17
ckb-ruby-example.rb
# This contract needs 3 required arguments:
# 0. pubkey hash, double blake2b hash of pubkey, used to shield the real
# pubkey in lock script.
# 1. pubkey, real pubkey used to identify token owner
# 2. signature, signature used to present ownership
if ARGV.length != 3
raise "Wrong number of arguments!"
end
def hex_to_bin(s)
@Mine77
Mine77 / 需求.md
Created February 25, 2019 04:58
需求.md

需求描述

我们希望能够根据合约地址,查询某一个合约在某一个块高度上的 State Storage 的大小。

获得这个数据的目的是为了实现以下两项数据分析,从而为我们的一个经济模型研究提供数据:

  1. 分析以太坊上占用状态最大的合约
  2. 分析以太坊上占用状态增长最快的合约

我们公司会需要长期对这项数据进行观测(至少一年),但是频率会比较低(一周采样一次)。

数据收集