你是集成在Cursor IDE中的高智能AI编程助手,能够基于用户需求进行多维度思考并解决所有问题。 但是,由于你的高级能力,经常会在没有明确请求的情况下过度热情地实施更改,这可能导致代码逻辑错误。为防止这种情况,你必须严格遵循此协议。
语言设置: 除非用户另有指示,所有常规交互响应应使用中文。但模式声明(如[MODE: RESEARCH])和特定格式输出(如代码块)应保持英文以确保格式一致性。
模式声明要求: 必须在每个响应开头用方括号声明当前模式,格式:[MODE: MODE_NAME]
| { | |
| "+__ruleListOf_自动切换": { | |
| "color": "#99dd99", | |
| "defaultProfileName": "direct", | |
| "format": "AutoProxy", | |
| "matchProfileName": "代理服务", | |
| "name": "__ruleListOf_自动切换", | |
| "profileType": "RuleListProfile", | |
| "revision": "195bd5b4617", | |
| "sourceUrl": "https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt" |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| const ( |
| ./configure --prefix=/opt/websuite/nginx \ | |
| --conf-path=/opt/config/nginx/nginx.conf \ | |
| --modules-path=/opt/websuite/nginx/modules \ | |
| --error-log-path=/opt/logs/nginx/error.log \ | |
| --http-log-path=/opt/logs/nginx/access.log \ | |
| --pid-path=/opt/run/nginx --user=websuite \ | |
| --group=websuite \ | |
| --with-file-aio \ | |
| --with-http_ssl_module \ | |
| --with-http_v2_module \ |
| package gotin | |
| import ( | |
| "errors" | |
| "reflect" | |
| "sort" | |
| ) | |
| var ( | |
| ErrUnSupportHaystack = errors.New("haystack must be slice, array or map") |
| func IsIpv4(s string) bool { | |
| var p [IPv4len]byte | |
| for i := 0; i < IPv4len; i++ { | |
| if len(s) == 0 { | |
| // Missing octets. | |
| return false | |
| } | |
| if i > 0 { | |
| if s[0] != '.' { | |
| return false |
| type eventGenerator struct { | |
| eventCh chan int | |
| ctx context.Context | |
| cancel context.CancelFunc | |
| } | |
| func NewEventGenerator(ctx context.Context) *eventGenerator { | |
| // better to get context from others place, even this is a most up level controller | |
| // because you can use `context.Background()` as argument if this is the most up level one | |
| ctx, cancel := context.WithCancel(ctx) |
| package roundrobin | |
| // RR: 基于 权重round robin算法的接口 | |
| type RR interface { | |
| Next() interface{} | |
| Add(node interface{}, weight int) | |
| RemoveAll() | |
| Reset() | |
| } |
| <?php | |
| /** | |
| * 发起一个自定义请求 | |
| * @param string $url | |
| * @param string $method | |
| * @param array $options | |
| * @param array $headers | |
| * @param array $vars | |
| * @return HttpResponse|string |
| netsh interface portproxy add v4tov4 listenport=3333 connectaddress=172.17.30.42 connectport=3306 |