分享一下中转站使用 claude-code-action@v1 方法,实测可以用 .github/claude.yml name: Claude Code on: issue_comment: types: [created] pull_request_review_comment: types: [created] issues: types: [opened, assigned] pull_request: types: [opened, synchronize] permissions: contents: read pull-requests: write issues: write id-token: write actions: read jobs: claude: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 1 - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: "" claude_code_oauth_token: ${{ secrets.ANTHROPIC_API_KEY }} claude_args: "--model glm-5.1" additional_permissions: | actions: read env: ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }} 参考链接 官方文档 Claude Code GitHub Actions 使用教程 - 知乎 分享一下中转站claude code使用GitHub actions的关键配置 - 开发调优 - LINUX DO 1 个帖子 - 1 位参与者 阅读完整话题
AI 优先 cli input, md/yml output 本地优先 操作本地浏览器,操作都在本地完成 特性: 支持主流网站,将网站转换为可重用的本地命令, 支持操作本地浏览器 支持安装私有化的脚本 示例 openwalk exec bing/search "Claude Code" 5 openwalk exec reddit/hot LocalLLaMA openwalk exec v2ex/hot openwalk exec openwalkhub/tools openwalk exec browser-open https://news.ycombinator.com -s=demo --headed 源码
如题,由于之前自己的postgresql docker镜像异常后重置了,数据都丢失了,耽误了不少事,所以希望有个一劳永逸的docker-compose配置来减少后续麻烦。 要求是尽量减少依赖,尽量在一个docker里,找ai问了下,ai给了两个如下的示例方案感觉都不算特别简洁,特来求助各位佬。 # docker-compose.yml services: postgres: image: postgres:15 environment: POSTGRES_PASSWORD: secret volumes: - pgdata:/var/lib/postgresql/data - ./backups:/backups # 定时备份服务 backup: image: ofelia:latest depends_on: - postgres volumes: - /var/run/docker.sock:/var/run/docker.sock - ./backups:/backups command: > job-exec --name backup --schedule "0 2 * * *" --docker postgres -- pg_dump -U postgres postgres | gzip > /backups/backup_$(date +%Y%m%d_%H%M%S).sql.gz # docker-compose.yml services: postgres: image: postgres:15 environment: POSTGRES_PASSWORD: secret volumes: - pgdata:/var/lib/postgresql/data # 定时备份容器 pgbackup: image: postgres:15 volumes: - pgdata:/var/lib/postgresql/data - ./backups:/backups command: > sh -c 'echo "0 2 * * * pg_dump -h postgres -U postgres postgres | gzip > /backups/backup_$(date +%%Y%%m%%d_%%H%%M%%S).sql.gz" >> /etc/cron.d/backup && cron && tail -f /dev/null' depends_on: - postgres restart: unless-stopped 6 个帖子 - 4 位参与者 阅读完整话题