Skip to content

Instantly share code, notes, and snippets.

View twinsant's full-sized avatar
💭
Coding

Atman An twinsant

💭
Coding
View GitHub Profile
@twinsant
twinsant / SortAminerPubQuotes.js
Last active April 11, 2025 07:47
Aminer引用论文排序
// ==UserScript==
// @name Sort Qutes
// @namespace http://www.twinsant.com/
// @version 2025-04-10
// @description 将Aminer的引用论文排序
// @author twinsant
// @match https://www.aminer.cn/pub/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=aminer.cn
// @grant none
@twinsant
twinsant / client.py
Created April 1, 2025 13:12
MCP Client which supports loading MCP servers from windsurf liked config file.
import os
import json
import sys
import asyncio
from typing import Optional
from contextlib import AsyncExitStack
from colored import Fore, Style
from mcp import ClientSession, StdioServerParameters
@twinsant
twinsant / summary_wechat_stock_chatroom.md
Created February 21, 2025 02:17
股票群总结提示词

您是一位专业的中文群聊总结助手,专门负责分析和总结微信群聊记录。您的主要任务是从繁杂的群聊中提取关键信息,生成一份全面、简洁且易读的群聊报告。这份报告旨在帮助群成员快速了解当天的主要讨论内容,不错过重要信息。

请仔细阅读提供的微信群聊记录,并按照以下详细指南创建一份高质量的今日群聊总结报告:

  1. 报告标题: "群聊精华总结"

  2. 重要提醒(如果有):

  • 在报告最上方,使用"❗️重要提醒"标注任何置顶或 @所有人 这种需要所有成员注意的信息
  • 简明扼要地陈述提醒内容,确保醒目
@twinsant
twinsant / wechat_chatroom_prompt_template.md
Created February 19, 2025 05:07
微信群消息总结提示词模板

您是一位专业的中文群聊总结助手,专门负责分析和总结微信群聊记录。您的主要任务是从繁杂的群聊中提取关键信息,生成一份全面、简洁且易读的群聊报告。这份报告旨在帮助群成员快速了解当天的主要讨论内容,不错过重要信息。

请仔细阅读提供的微信群聊记录,并按照以下详细指南创建一份高质量的今日群聊总结报告:

  1. 报告标题: "群聊精华总结"

  2. 重要提醒(如果有):

  • 在报告最上方,使用"❗️重要提醒"标注任何置顶或 @所有人 这种需要所有成员注意的信息
  • 简明扼要地陈述提醒内容,确保醒目
@twinsant
twinsant / netstat.sh
Last active September 4, 2024 03:03
Mac netstat
# For macOS
lsof -iTCP -sTCP:LISTEN -nP
@twinsant
twinsant / al.sh
Last active November 12, 2023 10:27
Sum videos length in current dir
# alias vlen='f(){ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$@"};f'
find . -type f|grep mp4 | xargs -L 1 ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1|awk '{s+=$1} END {print s}'
@twinsant
twinsant / cocos.d2
Last active January 4, 2023 04:20
Cocos Creator
Node: {
shape: class
runAction()
}
ComponentJS: {
shape: class
onLoad()
onEnable()
@twinsant
twinsant / up
Last active March 8, 2023 02:31
Upwork view helper.
// ==UserScript==
// @name Upwork tool
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author twinsant
// @match https://www.upwork.com/nx/find-work/best-matches
// @icon https://www.google.com/s2/favicons?sz=64&domain=upwork.com
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jshashes/1.0.8/hashes.min.js
@twinsant
twinsant / tm.js
Last active November 7, 2022 10:28
Tampermonkey script for focus input.
// ==UserScript==
// @name Focuse input
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://eth-converter.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=eth-converter.com
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js
@twinsant
twinsant / bot.sh
Created September 30, 2022 03:37
Update nginx ssl
# Check argument
if [ -z $1 ]; then
echo Need a domain name.
exit 1
fi
# Move and unzip
downlaodfile=~/Downloads/$1_nginx.zip
zipfile=$1_nginx.zip
crtfile=$1_bundle.crt