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
| { | |
| "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json", | |
| "google_auth": false, | |
| "tmux": { | |
| "enabled": true, | |
| "layout": "main-vertical", | |
| "main_pane_size": 60, | |
| "main_pane_min_width": 120, | |
| "agent_pane_min_width": 40 | |
| }, |
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
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "mcp": { | |
| "chrome-devtools": { | |
| "type": "local", | |
| "command": ["npx", "-y", "chrome-devtools-mcp@latest"] | |
| } | |
| }, | |
| "provider": { | |
| "anthropic": { |
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
| import type { Plugin } from '@opencode-ai/plugin'; | |
| /** | |
| * Custom fetch wrapper that removes max_output_tokens and max_completion_tokens | |
| * from the request body before sending to the API. | |
| * | |
| * @param input - The request URL or Request object | |
| * @param init - Optional request init options | |
| * @returns The fetch response | |
| */ |
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
| REMOTE=https://gitee.com/mirrors/oh-my-zsh.git sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)" "" --unattended | |
| sed -i s/robbyrussell/ys/ ~/.zshrc | |
| chsh -s $(which zsh) | |
| kubectl completion zsh > "/root/.oh-my-zsh/plugins/git/_kubectl" | |
| helm completion zsh > "/root/.oh-my-zsh/plugins/git/_helm" | |
| IP=$(ip -j -p a | jq '.[].addr_info | .[] | select(.label == "ens192") | .local' | cut -d '"' -f2) |
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
| #!/usr/bin/env bash | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| export PATH | |
| ## License: GPL | |
| ## Blog: https://www.idcoffer.com | |
| ## Default root password: IdcOffer.com | |
| export tmpVER='' | |
| export tmpDIST='' |
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
| #!/usr/bin/env bash | |
| apt update | |
| # nfs for longhorn | |
| apt-get install nfs-common open-iscsi -y | |
| # bbr | |
| echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf | |
| echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf | |
| # optimize network | |
| sysctl -p |
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
| { | |
| "tasks": [ | |
| { | |
| "type": "cppbuild", | |
| "label": "C/C++: gcc.exe 生成活动文件", | |
| "command": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\gcc.exe", | |
| "args": [ | |
| "-g", | |
| "${file}", | |
| "-o", |
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
| setw -g mode-keys vi | |
| # Send prefix | |
| set-option -g prefix C-e | |
| unbind-key C-e | |
| bind-key C-e send-prefix | |
| # Use Alt-arrow keys to switch panes | |
| bind -n M-Left select-pane -L | |
| bind -n M-Right select-pane -R | |
| bind -n M-Up select-pane -U |
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
| const BASE_DOMAIN = "" | |
| addEventListener('fetch', function (event) { | |
| const { request } = event | |
| const response = handleRequest(request).catch(handleError) | |
| event.respondWith(response) | |
| }) | |
| /** | |
| * Receives a HTTP request and replies with a response. |
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
| // ENV Node | |
| import axios, { | |
| AxiosInstance, | |
| AxiosRequestConfig, | |
| AxiosResponse, | |
| } from "axios"; | |
| declare module "axios" { | |
| interface AxiosInstance { | |
| (config: AxiosRequestConfig): AxiosPromise; |
NewerOlder