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 | |
| ##### 自定义常量 ###### | |
| # 脚本发布版本 | |
| script_version="v2024-05-08" | |
| # geekbench5发布版本 | |
| geekbench_version="5.5.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 | |
| # 下载并写入 ~/.geek_prompt.sh | |
| cat > ~/.geek_prompt.sh <<"EOF" | |
| #!/bin/bash | |
| # 定义颜色(增强对比度) | |
| RESET="\[\033[0m\]" | |
| FG_WHITE="\[\033[1;97m\]" # 亮白色(用户名@主机) | |
| FG_BLUE="\[\033[1;94m\]" # 亮蓝色(路径) |
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
| if [[ $(curl -sS https://chat.openai.com/ -I | grep "text/plain") != "" ]] | |
| then | |
| echo "IP被BAN" | |
| else | |
| iso2_code=$(curl -sS https://chat.openai.com/cdn-cgi/trace | grep "loc=" | awk -F= '{print $2}') | |
| country=$(curl -sS https://raw.githubusercontent.com/lukes/ISO-3166-Countries-with-Regional-Codes/master/all/all.csv | grep ",$iso2_code," | awk -F, '{print $1}') | |
| country=$(echo ${country/\"/}) | |
| if [[ $(curl -sS "https://openaiapi-site.azureedge.net/public-assets/d/7f4419c385/static/js/main.3133adcb.js" | grep "\"${country}\"") != "" ]] | |
| then | |
| echo "可正常使用" |
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 sys | |
| def httpget(url): | |
| if sys.version_info.major == 2: | |
| import urllib2 | |
| req = urllib2.Request(url) | |
| data = urllib2.urlopen(req).read() | |
| return data | |
| else: | |
| import urllib.request |
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
| 194.5.xx.235:443 | |
| 172.86.xx.233:443 | |
| 138.3.xx.162:443 | |
| 185.232.xx.114:443 | |
| 47.240.xx.217:7547 | |
| 66.42.xx.123:443 | |
| 66.42.xx.180:443 | |
| 47.240.xx.160:7547 | |
| 168.138.xx.154:443 | |
| 144.24.xx.202:443 |
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
| { | |
| "Ip": "42.193.225.116", | |
| "Ports": ["42.193.225.116:22", "42.193.225.116:8888"], | |
| "DefaultBeaconResponses": { | |
| "http://42.193.225.116:8888/": "302/219" | |
| }, | |
| "Jarm": "", | |
| "Certificate": "", | |
| "Beacons": null | |
| } |
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 | |
| # shellcheck disable=SC2268 | |
| BIN_PATH=${BIN_PATH:-/usr/local/share/mtg} | |
| TOML_PATH=${TOML_PATH:-/usr/local/etc/mtg} | |
| curl() { | |
| $(type -P curl) -L -q --retry 5 --retry-delay 10 --retry-max-time 60 "$@" | |
| } | |
| systemd_cat_config() { | |
| if systemd-analyze --help | grep -qw 'cat-config'; then | |
| systemd-analyze --no-pager cat-config "$@" |
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
| client | |
| dev tun | |
| proto tcp | |
| remote 1.1.1.1 1194 | |
| resolv-retry infinite | |
| nobind | |
| persist-key | |
| persist-tun | |
| remote-cert-tls server | |
| comp-lzo |
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
| port 1194 | |
| proto tcp | |
| dev tun | |
| ca /etc/openvpn/keys/ca.crt | |
| cert /etc/openvpn/keys/server.crt | |
| key /etc/openvpn/keys/server.key | |
| dh /etc/openvpn/keys/dh2048.pem | |
| server 10.8.0.0 255.255.255.0 | |
| ifconfig-pool-persist ipp.txt | |
| keepalive 10 120 |
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
| <!-- | |
| // ------------------------------------------------------------- | |
| // author Giga | |
| // project qeeqbox/social-analyzer | |
| // email gigaqeeq@gmail.com | |
| // description app.py (CLI) | |
| // licensee AGPL-3.0 | |
| // ------------------------------------------------------------- | |
| // contributors list qeeqbox/social-analyzer/graphs/contributors | |
| // ------------------------------------------------------------- |
NewerOlder