Skip to content

Instantly share code, notes, and snippets.

View discountry's full-sized avatar
📕
Learning

Disney discountry

📕
Learning
View GitHub Profile
#!/bin/bash
# 确保脚本以 root 权限运行
if [ "$EUID" -ne 0 ]; then
echo "请使用 sudo 权限运行此脚本。命令: sudo bash $0"
exit 1
fi
SWAP_FILE="/swapfile"
SWAP_SIZE="2G"
{
"mcpServers": {
"codex": {
"command": "codex",
"args": ["mcp-server"],
"type": "stdio"
}
}
}
name get-kline-prediction
description Fetch and summarize K-line prediction reports from http://localhost:3000. Use when the user asks for a token price prediction, forecast, K-line prediction, price outlook, market forecast, or mentions 'prediction report', 'forecast report', 'kline prediction', 'price prediction', or wants to know the predicted price movement for a specific token. Covers fetching the latest AI+algorithmic forecast, summarizing outlook, drivers, risks, theory notes, and predicted candlestick data.

Get K-line Prediction Report

Fetch the latest AI-powered K-line prediction report for a token from http://localhost:3000 and present a clean, structured summary.

API Endpoint

Shame on you Figma.... Here is a workaround without having to install a fork

Register the client:

curl -X POST https://api.figma.com/v1/oauth/mcp/register \
  -H "Content-Type: application/json" \
  -d '{
    "client_name": "Claude Code (figma)",
 "redirect_uris": ["http://127.0.0.1:19876/mcp/oauth/callback"],
#!/bin/bash
# ================= 1. 用户自定义配置 (请修改此处) =================
# [必填] 推特用户名 (不需要加 @,例如 elonmusk)
TWITTER_USER="discountifu"
# [必填] 币安广场 API Key
BINANCE_API_KEY="123123123"
#!/usr/bin/env bash
set -e
echo "==> Updating apt..."
sudo apt update
echo "==> Installing Chinese fonts (Noto CJK + WenQuanYi)..."
sudo apt install -y \
fontconfig \
fonts-noto-cjk \
{
"spinnerVerbs": {
"mode": "replace",
"verbs": [
"Shuffling Cards",
"Polishing Mana Crystals",
"Filling Up Loading Bar",
"Sweeping Up Minion Dust",
"Installing New Timer Fuse",
"Gathering Spectators",
"browser": {
"enabled": true,
"controlUrl": "http://127.0.0.1:18791",
"executablePath": "/usr/bin/google-chrome-stable",
"headless": true,
"noSandbox": true,
"defaultProfile": "clawd",
"profiles": {
"clawd": {
"cdpPort": 18800,
paths **/*.{ts,tsx}

React Dev Principles

  1. Purity & Architecture
  • Render must be pure/deterministic: same inputs → same JSX.
  • Must be StrictMode-safe: no side effects in render (no mutations/API calls).
  • Keep render logic separate from event handlers.