标题: pow签到python版
作者: #llspys
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800625
时间: 2026-03-23 11:49:52
摘要:
作者: #llspys
板块: #开发调优
编号:
1800625帖子: https://linux.do/t/topic/1800625
时间: 2026-03-23 11:49:52
摘要:
如题
import base64
import hashlib
import json
import time
import requests
CHALLENGE_URL = "https://xxxxxx/api/sign/challenge"
SUBMIT_URL = "https://xxxxxx/api/sign/submit"
DIFFICULTY = "easy"
PREFIX = "00000"
COOKIE = "xxxxxx"
HEADERS = {
"accept": "application/json",
"content-type": "application/json",
"user-agent": (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/577.88 (KHTML, like Gecko) "
"Chrome/145.0.0.0 Safari/57788 Edg/146.0.0.0"
),
}
def b64url_decode_json(s: str) -> dict:
s += "=" * (-len(s) % 4)
return json.loads(base64.urlsafe_b64decode(s.encode()).decode())
def find_challenge_id(obj):
if isinstance(obj, dict):
if isinstance(obj.get("challenge_id"), str):
return obj["challenge_id"]
for v in obj.values():
r = find_challenge_id(v)
if r:
return r
elif isinstance(obj, list):
for item in obj:
r = find_challenge_id(item)
if r:
return r
return None
def solve_pow(challenge: str, prefix: str):
start = time.perf_counter()
nonce = 0
while True:
digest = hashlib.sha256(f"{challenge}:{nonce}".encode()).hexdigest()
if digest.startswith(prefix):
elapsed_ms = max(1, int((time.perf_counter() - start) * 1000))
hash_rate_hps = max(1, int((nonce + 1) / max(elapsed_ms / 1000, 0.001)))
return nonce, digest, elapsed_ms, hash_rate_hps
nonce += 1
def main():
session = requests.Session()
session.headers.update(HEADERS)
session.headers["cookie"] = COOKIE
challenge_resp = session.post(
CHALLENGE_URL,
json={"difficulty_key": DIFFICULTY},
timeout=30,
)
challenge_resp.raise_for_status()
challenge_data = challenge_resp.json()
challenge_id = find_challenge_id(challenge_data)
if not challenge_id:
raise RuntimeError(f"没找到 challenge_id,返回内容:{challenge_data}")
decoded = b64url_decode_json(challenge_id)
challenge = decoded["payload"]["challenge"]
nonce, digest, elapsed_ms, hash_rate_hps = solve_pow(challenge, PREFIX)
submit_payload = {
"difficulty_key": DIFFICULTY,
"challenge_id": challenge_id,
"nonce": nonce,
"digest": digest,
"elapsed_ms": elapsed_ms,
"hash_rate_hps": hash_rate_hps,
}
print("submit payload:")
print(json.dumps(submit_payload, ensure_ascii=False, indent=2))
submit_resp = session.post(
SUBMIT_URL,
json=submit_payload,
timeout=30,
)
print("status:", submit_resp.status_code)
print("response:", submit_resp.text)
if __name__ == "__main__":
main()
标题: 汽水音乐有低价vip的渠道和活动吗?
作者: #ChinaDolphin
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1800637
时间: 2026-03-23 11:51:46
摘要:
作者: #ChinaDolphin
板块: #搞七捻三
编号:
1800637帖子: https://linux.do/t/topic/1800637
时间: 2026-03-23 11:51:46
摘要:
现在经常使用汽水音乐 天天看广告免费听很烦呀 有没有低价的渠道或者活动 佬友们渠道多
标题: 求 看电视剧的网站?
作者: #Immerse
板块: #资源荟萃
编号:
帖子: https://linux.do/t/topic/1800642
时间: 2026-03-23 11:52:43
摘要:
作者: #Immerse
板块: #资源荟萃
编号:
1800642帖子: https://linux.do/t/topic/1800642
时间: 2026-03-23 11:52:43
摘要:
求 看电视剧的网站?
标题: 准备飞升三级了,L站究竟有何魔力?比刷短视频红薯还来劲!
作者: #喝汤劳烦别加葱
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1800651
时间: 2026-03-23 11:54:10
摘要:
作者: #喝汤劳烦别加葱
板块: #搞七捻三
编号:
1800651帖子: https://linux.do/t/topic/1800651
时间: 2026-03-23 11:54:10
摘要:
争取今天下班之前,摸鱼刷完(bushi) 认真学习
感谢各位佬的热心分享,辛苦管理团队的勤劳维护,祝L站越办越好!!!
真诚 、友善 、团结 、专业 ,共建你我引以为荣之社区!!!
标题: 感觉minimax-m2.7真low呀
作者: #Midsummer
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800655
时间: 2026-03-23 11:54:45
摘要:
作者: #Midsummer
板块: #开发调优
编号:
1800655帖子: https://linux.do/t/topic/1800655
时间: 2026-03-23 11:54:45
摘要:
如题,本人在做一个一个小项目,毕业设计,代码里2万左右吧,其中有两个几千行的service后端文件,让它帮我拆分一下,搞了半天搞不下去了直接罢工回滚。不断喂报错提示,结果不干了,考了。claude官方的用不起,孩子没招了呀;佬友们有什么好的建议吗
标题: 微信开放clawbot插件,成功接入Codex !
作者: #unlinearity
板块: #前沿快讯
编号:
帖子: https://linux.do/t/topic/1800666
时间: 2026-03-23 11:56:57
摘要:
作者: #unlinearity
板块: #前沿快讯
编号:
1800666帖子: https://linux.do/t/topic/1800666
时间: 2026-03-23 11:56:57
摘要:
绝对是历史性的一刻,3月22日 腾讯官方开放了权限,允许接入openclaw(将微信更新到最新版本就可以在插件中查看)。
但是实际上不仅仅是openclaw,借助并修改官方的源码,完全可以直接接入claude code 、codex相关编程工具。
让ai阅读官方的源码,一分钟内就可以写出一个小机器人,读取本地的claude 配置,来进行对话(这边可以很容易看到:我是用GLM的转接用的claude code ,所以模型显示GLM )
很多人可能第一眼就说没用,说句实话:我个人认为 openclaw 没什么意义,接入 openclaw 也没什么意义,真正的意义是:我是重度使用codex和claude code的 。接入微信意味着:无需配置域名和公网iP,只要电脑开着就可以远程控制电脑;或者打开codex干活时,我可以看视频、玩游戏,工作完成了 微信自动提醒 再接着干。
实际上集成Claude Code 的项目已经出现了,但是需要channels 权限,目前还未完全开放(需要官方登录才能使用,转接api不支持)。我目前一直在调试,当真正实现无缝的集成Codex 和Claude Code 时,会尝试开源相关代码。
也许现在很多claw工具,可以接入飞书等软件,但是接入微信真的性质完全不同,之后围绕微信相关的开发和面向普通用户的服务会爆发,毫不夸张的讲:新时代要开启了。
标题: 被墙的vps搭建alist无法上传文件到国内网盘怎么办
作者: #澪玥
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800669
时间: 2026-03-23 11:57:36
摘要:
作者: #澪玥
板块: #开发调优
编号:
1800669帖子: https://linux.do/t/topic/1800669
时间: 2026-03-23 11:57:36
摘要:
下面是claude诊断:
确认了,VPS 无法连通移动云的对象存储节点(超时,HTTP 000)。
总结:
列目录/获取文件信息 → 走 yun.139.com API → 可以
上传/下载文件数据 → 走 cmecloud.cn 对象存储 → 不通
标题: 大家平时怎么用 AI 工具编程?
作者: #喻琨
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800678
时间: 2026-03-23 12:01:21
摘要:
作者: #喻琨
板块: #开发调优
编号:
1800678帖子: https://linux.do/t/topic/1800678
时间: 2026-03-23 12:01:21
摘要:
各位佬友好,我想请教一个问题:大家平时都是怎么用 AI 工具来辅助编码、调试、重构和写文档/注释的?
我自己主要是用 Claude Code + Codex,在 Cursor 里写代码、让它补全/生成函数、做代码解释和问题定位、生成单元测试等。但感觉还可以更体系化一些。
欢迎大家分享你们的工作流、常用提示词/插件组合,或者哪些场景AI更好用、哪些场景更容易踩坑。
标题: cherry studio的智能体模型配置竟然不支持自定义?!
作者: #可期呀
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800680
时间: 2026-03-23 12:02:04
摘要:
作者: #可期呀
板块: #开发调优
编号:
1800680帖子: https://linux.do/t/topic/1800680
时间: 2026-03-23 12:02:04
摘要:
最新版本的cherry studio的智能体模型配置竟然不支持自定义?!
佬们?有什么解决办法吗?
标题: 送200个新鲜出炉的 gpt free 账号
作者: #ipan
板块: #福利羊毛
编号:
帖子: https://linux.do/t/topic/1800682
时间: 2026-03-23 12:02:09
摘要:
作者: #ipan
板块: #福利羊毛
编号:
1800682帖子: https://linux.do/t/topic/1800682
时间: 2026-03-23 12:02:09
摘要:
cpa_tokens_20260323_112631.zip (554.0 KB)
送200个gpt普号,CPA直接导入即可用。
标题: 苦酒入喉心作痛
作者: #eric
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1800685
时间: 2026-03-23 12:02:41
摘要:
作者: #eric
板块: #搞七捻三
编号:
1800685帖子: https://linux.do/t/topic/1800685
时间: 2026-03-23 12:02:41
摘要:
油价涨,金价跌。
开油车和买黄金的我崩了呀。
工资也不涨,甚至可能因为AI导致失业。
吨吨吨吨吨。
标题: 2026年,终于吃上微信官方机器人了,泪目
作者: #ius
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800688
时间: 2026-03-23 12:03:08
摘要:
作者: #ius
板块: #开发调优
编号:
1800688帖子: https://linux.do/t/topic/1800688
时间: 2026-03-23 12:03:08
摘要:
昨天微信开通claw插件,走单聊渠道。上午发的插件,下午就被逆出来完整协议了。(有ai就是快)
现在可以通过各种各样的方式,使用微信进行通信
于是直接让codex在服务器搓了一个简单的bot程序,使用逆向协议进行对话。
感觉用不了多久,AstrBot应该也会上这个协议,直接一键打通全平台机器人
继续让codex适配其他消息类型,这样mcp也可以接入微信提醒了
标题: claude code 快速切换配置启动
作者: #pypm
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1800711
时间: 2026-03-23 12:07:35
摘要:
作者: #pypm
板块: #开发调优
编号:
1800711帖子: https://linux.do/t/topic/1800711
时间: 2026-03-23 12:07:35
摘要:
经常创建多个settings.xxx.json文件,但是打开时又不太方便,要输路径。
想着遍历出.claude目录下所有的settings.xxx.json,然后选择。
步骤:
新建mc.ps1。 (mc → my claude)
内容如下:
# mc.ps1 - 通过选择 settings.xxx.json 启动 Claude
$claudeConfigDir = "$HOME\.claude"
$defaultSettings = Join-Path $claudeConfigDir "settings.json"
# 收集 settings.xxx.json (例如: settings.gpt.json, settings.gemini.json)
$profileFiles = Get-ChildItem -Path $claudeConfigDir -Filter "settings.*.json" -File |
Where-Object { $_.Name -ne "settings.json" } |
Sort-Object Name
if (!$profileFiles -or $profileFiles.Count -eq 0) {
Write-Host "未找到 settings.xxx.json, 直接使用默认配置启动 Claude。" -ForegroundColor Yellow
if (Test-Path $defaultSettings) {
Write-Host "配置文件: $defaultSettings" -ForegroundColor Green
claude --settings "$defaultSettings" @args
} else {
Write-Host "未找到 $defaultSettings, 直接启动 claude (使用其内部默认)..." -ForegroundColor Red
claude @args
}
exit
}
# 组装 profile 列表: Name = gpt / gemini, Path = 完整路径
$profiles = @()
foreach ($file in $profileFiles) {
# settings.gpt.json -> gpt
$namePart = $file.BaseName.Substring("settings.".Length)
$profiles += [PSCustomObject]@{
Name = $namePart
Path = $file.FullName
}
}
# 展示菜单
Write-Host "请选择要使用的 Claude 配置文件:"
for ($i = 0; $i -lt $profiles.Count; $i++) {
$p = $profiles[$i]
$isDefault = ""
if ($i -eq 0) { $isDefault = " (默认)" }
Write-Host ("[{0}] {1} -> {2}{3}" -f ($i + 1), $p.Name, $p.Path, $isDefault)
}
Write-Host ""
# 读取用户输入
$choice = Read-Host -Prompt "输入编号 (直接回车使用默认)"
# 选择 profile
$selectedProfile = $null
if ([string]::IsNullOrWhiteSpace($choice)) {
$selectedProfile = $profiles[0]
} else {
$choiceIndex = 0
if ([int]::TryParse($choice, [ref]$choiceIndex) -and
$choiceIndex -ge 1 -and
$choiceIndex -le $profiles.Count) {
$selectedProfile = $profiles[$choiceIndex - 1]
}
}
if ($null -eq $selectedProfile) {
Write-Host "输入无效,退出。" -ForegroundColor Red
exit
}
Write-Host ("使用配置文件 '{0}' -> {1}" -f $selectedProfile.Name, $selectedProfile.Path) -ForegroundColor Green
Write-Host "启动 Claude..." -ForegroundColor Green
claude --settings "$($selectedProfile.Path)" @args
确保当前目录在环境变量中
下次启动使用"mc"命令启动
大致效果:
> mc
请选择要使用的 Claude 配置文件:
[1] gemini -> C:\Users\xxx\.claude\settings.gemini.json (默认)
[2] gpt -> C:\Users\xxx\.claude\settings.gpt.json
输入编号 (直接回车使用默认): 1
使用配置文件 'gemini' -> C:\Users\xxx\.claude\settings.gemini.json
启动 Claude...