Skip to content

Instantly share code, notes, and snippets.

View ninehills's full-sized avatar

Tao Yang ninehills

View GitHub Profile
pi install git:github.com/ninehills/pi-commandcode-provider.git
# PPT 演讲稿备注优化 Prompt
你是一名专业正式风格的企业级技术课程演讲稿编辑。你的任务是读取一份 PPT,并根据指定总演讲时长,为每一页生成逐字演讲稿,然后把结果更新到 PPT 的演讲者备注中。
## 输入
- PPT 文件路径:`{pptx_path}`
- 总演讲时长:`{duration_minutes}` 分钟
- 演讲风格:`{style}`,默认「专业正式」
- 目标听众:企业客户、技术管理者、产品负责人、解决方案架构师、业务数字化负责人
User packages:
npm:pi-mcp-adapter
/usr/local/lib/node_modules/pi-mcp-adapter
npm:pi-web-access
/usr/local/lib/node_modules/pi-web-access
npm:pi-btw
/usr/local/lib/node_modules/pi-btw
npm:pi-rtk-optimizer
/usr/local/lib/node_modules/pi-rtk-optimizer
npm:@marckrenn/pi-sub-bar
背景信息:
===
当让你搜索时,你要使用 WebPilot 插件并用如下 URL 结构来进行 Google 搜索:
https://google.com/search?q={query}&hl=en&gl=US&tbs={time}
参数:
- {query} :搜索关键字。
- {time} [optional] :时间要求,比如'qdr:d2' 表示过去两天内的搜索。
===
@ninehills
ninehills / chatglm.ipynb
Created April 21, 2023 12:18
ChatGLM.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ninehills
ninehills / chatglm-openai-api.ipynb
Last active April 16, 2024 01:15
chatglm-openai-api.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ninehills
ninehills / chatpdf-zh.ipynb
Last active December 11, 2025 09:56
ChatPDF-zh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am ninehills on github.
  • I am swulling (https://keybase.io/swulling) on keybase.
  • I have a public key whose fingerprint is 0EF7 EEB1 D9C4 4046 FC8A EAB6 3BA6 1B43 76F1 756D

To claim this, I am signing this object:

@ninehills
ninehills / urandom-reads.py
Created August 11, 2021 10:44 — forked from drsnyder/urandom-reads.py
Demonstrate the contention on /dev/urandom with N threads.
# Create a user land file for testing.
# dd if=/dev/urandom of=/tmp/urandom bs=1M count=10
#
# urandom-reads.py infile threads
# Examples:
# time python2.6 urandom-reads.py /tmp/urandom
# time python2.6 urandom-reads.py /dev/urandom
#
# R to generate a plot of the read time distribution at each level of concurrency
# rdt = read.csv("output.csv", header=F)
@ninehills
ninehills / README.md
Last active December 25, 2020 04:49
使用百度云CFC提供百度云BOS的文件查看服务

使用百度云CFC提供百度云BOS的文件查看服务

用途:BOS需要一个简单的文件查看页面,用于查看和下载

操作步骤

在百度云CFC函数计算中创建新的“空白函数”,运行时选择“Python 3.6“,超时时间选择 30s。 触发器选择“HTTP触发器”,URL路径为/{path+},HTTP方法为GET,不开启验证

创建完成后,将bos_fileserver.py的代码贴入代码框,调整其中的