Date: 2025-12-07
Host: macOS 15.5 (arm64)
Repo: MoonshotAI/kimi-cli (local working copy)
Current HEAD: b2af75a (refactor: enable Pyright strict type checking for kimi_cli/ui/shell (#427))
| #!/usr/bin/env python3 | |
| """ | |
| 多赛道排行榜 CLI(基于 rich 优雅显示),支持查看每个题目的解出情况。 | |
| 赛道接口: | |
| - 云网互联赛道: /api/ct/web/bwm_race/master/rank/cloudnetwork_detail/ | |
| - CTF 赛道: /api/ct/web/bwm_race/master/rank/jeo/ | |
| - 车联网/低空/物联等赛道: /api/ct/web/bwm_race/master/rank/iov_detail/ | |
| - 人工智能赛道: /api/ct/web/bwm_race/master/rank/ai_detail/ | |
| - 韧性安全赛道: /api/ct/web/bwm_race/master/rank/resilience_detail/ |
| # Kitty 最小边框配置 | |
| # hide_window_decorations 控制窗口装饰 | |
| # titlebar-only: 只隐藏标题栏文字,保留控制按钮和可拖动区域 | |
| # yes: 完全隐藏所有装饰(无法拖动) | |
| # no: 显示完整标题栏 | |
| hide_window_decorations titlebar-only | |
| # 在macOS上标题栏设置 | |
| # titlebar-only 模式下仍可拖动窗口 | |
| macos_hide_titlebar no |
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.
| #!/bin/bash | |
| # 检查产品是否匹配 | |
| fastboot getvar product 2>&1 | grep -E "^product: *gauguin" || { echo "Mismatch image and device"; exit 1; } | |
| # 刷写镜像 | |
| fastboot flash super "$(dirname "$0")/images/super.img" || { echo "Flash super error"; exit 1; } | |
| fastboot flash cust "$(dirname "$0")/images/cust.img" || { echo "Flash cust error"; exit 1; } | |
| # 擦除和刷写其他镜像 |
| #/bin/bash | |
| declare -a remote_dirs=("sdcard/inshot/" | |
| "sdcard/DCIM/" | |
| "sdcard/Pictures/" | |
| "sdcard/Download" | |
| "sdcard/Movies/") | |
| bak=bak_$(date +"%Y%m%d-%H%M%S") | |
| for dir in "${remote_dirs[@]}" |
| REMOTE=origin | |
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| BATCH_SIZE=10 | |
| # check if the branch exists on the remote | |
| # if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
| # # if so, only push the commits that are not on the remote already | |
| # range=$REMOTE/$BRANCH..HEAD | |
| # else | |
| # # else push all the commits |