Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
# You can use proxies if you have network trouble in accessing GitHub, e.g.
irm get.scoop.sh -Proxy 'http://' | iex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json", | |
| // ============================================================================ | |
| // 🎯 终极优化配置 - 基于 NVIDIA 实际可用模型 | |
| // ============================================================================ | |
| // 策略: | |
| // 1. Sisyphus 用 Opus 4.5(官方强烈推荐,质量至关重要) | |
| // 2. 高频任务用 Gemini Flash(体验优先) | |
| // 3. 其他任务充分利用 NVIDIA 40 RPM 免费额度 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 灵活的Ollama模型下载脚本 | |
| param( | |
| [Parameter(Mandatory = $false, Position = 0)] | |
| [string]$ModelName | |
| ) | |
| # 检查是否提供了模型名称参数 | |
| if (-not $ModelName) { | |
| Write-Host "请提供要下载的模型名称,例如:`n .\download_ollama.ps1 deepseek-r1:7b" | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # define color | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| NC='\033[0m' # No Color | |
| function enable_proxy() { | |
| git config --global http.proxy "$1" | |
| git config --global https.proxy "$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # retry command with max retries and sleep time | |
| # Notes: No Spaces between commas | |
| # usage: $(call retry_command, command[,max_retries[,sleep_time]]) | |
| # example1: $(call retry_command, command -v jx,3,1s) | |
| # example2: $(call retry_command, command -v jx) | |
| # example3: $(call retry_command, command -v jx,3) | |
| define retry_command | |
| @max_retries=$(or $(2),10); \ | |
| sleep_time=$(or $(3),5s); \ | |
| retries=0; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: help | |
| .DEFAULT_GOAL := help | |
| # Show help | |
| help: | |
| @echo "" | |
| @echo "Usage:" | |
| @echo " make [target]" | |
| @echo "" | |
| @echo "Targets:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent any | |
| stages { | |
| stage('Conventional Analysis') { | |
| steps { | |
| script { | |
| echo "GERRIT_CHANGE_SUBJECT: ${GERRIT_CHANGE_SUBJECT}" | |
| def changeSubj = "$GERRIT_CHANGE_SUBJECT".trim() | |
| def match = (changeSubj =~ /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z]+\))?:\s.+$/) | |
| if (!match) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: Compose specification | |
| services: | |
| proxy: | |
| image: nginx | |
| container_name: nginx | |
| restart: always | |
| ports: | |
| - "8080:80" | |
| healthcheck: | |
| # 1. if curl or wget is not available, maybe try this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [base] | |
| name=CentOS-vault-6.10 - Base - mirrors.aliyun.com | |
| failovermethod=priority | |
| baseurl=http://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/ | |
| http://mirrors.aliyuncs.com/centos-vault/6.10/os/$basearch/ | |
| http://mirrors.cloud.aliyuncs.com/centos-vault/6.10/os/$basearch/ | |
| gpgcheck=1 | |
| gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 | |
| #released updates |
NewerOlder