Skip to content

Instantly share code, notes, and snippets.

View discountry's full-sized avatar
📕
Learning

Disney discountry

📕
Learning
View GitHub Profile

aiship 使用说明(macOS)

暂存全部改动 → 用 AI 生成提交信息 → 提交 → 推送。AI 不可用时自动用兜底信息,保证总能提交。

依赖

  • git、python3:装一次 Xcode 命令行工具即可:xcode-select --install
  • AI CLI(可选):脚本自动探测 claudecodex;两者都没有时用兜底信息,或用 AISHIP_MSG_CMD 指定任意命令。
  • timeout(可选):macOS 默认没有,AI 步骤就不设时限(不影响功能)。要启用:brew install coreutils,再把 "$(brew --prefix)/opt/coreutils/libexec/gnubin" 加进 PATH。
#!/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,