Skip to content

Commit

Permalink
cursor-vip update
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 17, 2024
1 parent 397f4cd commit cff98a3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@


### Usage
Install cursor-vip:
Install cursor-vip (download directly from GitHub):
```bash
bash <(curl https://github.com/kingparks/cursor-vip/releases/download/latest/i.sh) githubReadme
```
Install cursor-vip (through ghp.ci proxy):
```bash
bash <(curl https://ghp.ci/https://github.com/kingparks/cursor-vip/releases/download/latest/install.sh) githubReadme
```

Launch cursor-vip:
Launch cursor-vip ():
```bash
cursor-vip
```
Expand All @@ -22,7 +26,7 @@ Strong proxy mode For the first time after starting, you need to install the tru

Enjoy cursor-vip:
* Open the CURSOR code editor, click the settings icon in the upper right corner, and you can see that you are already a VIP account.
* //TODO The chat question function is currently not working well, to be fixed; you can use code prompts and code comments to make up for this defect.
* Enjoy code prompts and chat functions.

### Star History
![Star History Chart](https://api.star-history.com/svg?repos=kingparks/cursor-vip&type=Date)
10 changes: 7 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@


### 使用
安装 cursor-vip:
安装 cursor-vip (直接从github下载):
```bash
bash <(curl https://github.com/kingparks/cursor-vip/releases/download/latest/i.sh) githubReadme
```
安装 cursor-vip (通过ghp.ci代理):
```bash
bash <(curl https://ghp.ci/https://github.com/kingparks/cursor-vip/releases/download/latest/install.sh) githubReadme
```
Expand All @@ -15,14 +19,14 @@ bash <(curl https://ghp.ci/https://github.com/kingparks/cursor-vip/releases/down
```bash
cursor-vip
```
强劲代理模式首次启动后需安装信任证书,证书会在首次启动命令后自动生成,路径为 `~/.cursor-vip/cursor-vip-ca-cert.pem`
如果选择强劲代理模式首次启动后需安装信任证书,证书会在首次启动命令后自动生成,路径为 `~/.cursor-vip/cursor-vip-ca-cert.pem`
* MacOS: 在终端执行 `open ~/.cursor-vip`,双击 cursor-vip-ca-cert.pem 文件,选择`登录`,弹出“钥匙串访问”窗口,选择证书,搜索 cursor-vip,双击 cursor-vip,展开信任,选择使用此证书时“始终信任”,关闭弹窗,输入密码确认,证书安装完成。
* Windows: 在windows搜索输入 `管理用户证书`,选择`管理用户证书`功能,展开`受信任的根证书颁发机构`,选中`证书`,右键`所有任务`,选择`导入`,下一步,输入`%homepath%\.cursor-vip\cursor-vip-ca-cert.pem`文件,一直下一步,完成; 重新打开浏览器。
* Linux: //TODO linux 目前只支持极简模式

享受 cursor-vip:
* 打开 CURSOR 代码编辑器,点击右上角设置图标,可看到已是VIP账号。
* //TODO 聊天提问功能目前不好用,待修复;可以先通过代码提示,用代码注释提问的方式弥补这个缺陷
* 尽情享受代码提示和聊天功能

### Star History
![Star History Chart](https://api.star-history.com/svg?repos=kingparks/cursor-vip&type=Date)
Expand Down
7 changes: 7 additions & 0 deletions tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func getMacMD5() string {
// 排除虚拟网卡
hardwareAddr := inter.HardwareAddr.String()
if hardwareAddr == "" {
//fmt.Println(fmt.Sprintf("log: have not hardwareAddr :%+v",inter))
continue
}
macErrorStr += inter.Name + ":" + hardwareAddr + "\n"
Expand All @@ -199,22 +200,28 @@ func getMacMD5() string {
}
}
if isVirtual {
//fmt.Println(fmt.Sprintf("log: isVirtual :%+v",inter))
continue
}
// 大于en6的排除
if strings.HasPrefix(inter.Name, "en") {
numStr := inter.Name[2:]
num, _ := strconv.Atoi(numStr)
if num > 6 {
//fmt.Println(fmt.Sprintf("log: is num>6 :%+v",inter))
continue
}
}
if strings.HasPrefix(inter.Name, "en") || strings.HasPrefix(inter.Name, "Ethernet") || strings.HasPrefix(inter.Name, "以太网") || strings.HasPrefix(inter.Name, "WLAN") {
//fmt.Println(fmt.Sprintf("log: add :%+v",inter))
macAddress = append(macAddress, hardwareAddr)
} else {
//fmt.Println(fmt.Sprintf("log: not add :%+v",inter))
}
}
if len(macAddress) == 0 {
fmt.Printf(red, "no mac address found,Please contact customer service")
_, _ = fmt.Scanln()
return macErrorStr
}
sort.Strings(macAddress)
Expand Down

0 comments on commit cff98a3

Please sign in to comment.