首页
留言板
友链
关于
Search
1
常用安装脚本知识 [24年10月27日更新]
67 阅读
2
网页制作常用代码 不断增加 [2025年3月31更新]
61 阅读
3
Win10怎么默认开启数字小键盘
54 阅读
4
Linux系统下常用命令【不断补充】
45 阅读
5
欢迎使用 Typecho
41 阅读
默认
日常
学习
技术
登录
Search
标签搜索
安装
cloudflare
CF
白嫖
壁纸
图片
脚本
docker
Linux
代码
域名
Caddy
哪吒
节点
桌面壁纸
手机壁纸
NAT
LXC
优选
HTML
ws01
累计撰写
87
篇文章
累计收到
40
条评论
首页
栏目
默认
日常
学习
技术
页面
留言板
友链
关于
搜索到
63
篇与
的结果
2025-04-15
自动收集网上的聚合节点订阅
自动收集网上的聚合节点订阅 新建一个txt文档,复制以下代码进去,修改文件名为:index.phpToken验证 iloveyou 可以修改为你自己的打开网页:https://域名/test.php?token=iloveyou<?php // Token验证https://域名/test.php?token=iloveyou if (!isset($_GET['token']) || $_GET['token'] !== 'iloveyou') {//因为作者是超绝恋爱脑 header("Content-Type: text/plain"); echo "你的TOKEN不对!"; exit; } set_time_limit(0); // 禁用脚本执行时间限制 // 缓存配置 $cache_file = __DIR__ . '/cache.txt'; $cache_time = 14400; // 4小时缓存 // 返回缓存内容(如果有效) if (file_exists($cache_file) && (time() - filemtime($cache_file) < $cache_time)) { header("Content-Type: text/plain"); echo file_get_contents($cache_file); exit; } // 完整URL列表 $urls = [ "https://raw.githubusercontent.com/aiboboxx/v2rayfree/main/v2", "https://raw.githubusercontent.com/shirkerboy/scp/main/sub", "https://jiang.netlify.app/", "https://fforever.github.io/v2rayfree/", "https://xlz767v2ray.pages.dev/sub/b9b8cf4c-29a3-4288-9c6c-8811dc37beec#BPB-Normal", "https://bpbv2ray.xlz767.ip-ddns.com/sub/b9b8cf4c-29a3-4288-9c6c-8811dc37beec#BPB-Normal", "https://www.xlz767.ip-ddns.com/proxy.php?url=https://edgetunnelworker.xlz.workers.dev/f47ac10b-58cc-4372-a567-0e02b2c3d479", "https://raw.githubusercontent.com/ripaojiedian/freenode/main/sub", "https://github.com/Huibq/TrojanLinks/raw/refs/heads/master/links/ss", "https://github.com/Huibq/TrojanLinks/raw/refs/heads/master/links/vmess", "https://github.com/Huibq/TrojanLinks/raw/refs/heads/master/links/trojan", "https://github.com/Huibq/TrojanLinks/raw/refs/heads/master/links/vless", "https://raw.githubusercontent.com/firefoxmmx2/v2rayshare_subcription/main/subscription/vray_sub.txt", "https://github.com/Roywaller/clash_subscription/raw/refs/heads/main/clash_subscription.txt", "https://q3dlaxpoaq.github.io/APIs/cg1.txt", "https://q3dlaxpoaq.github.io/APIs/cg3.txt", "https://q3dlaxpoaq.github.io/APIs/cg4.txt", "https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/Eternity", "https://raw.githubusercontent.com/mahdibland/ShadowsocksAggregator/master/EternityAir", "https://raw.githubusercontent.com/snakem982/proxypool/main/source/v2ray.txt", "https://raw.githubusercontent.com/snakem982/proxypool/main/source/v2ray-2.txt" ]; // 存储唯一节点 $uniqueNodes = []; // CURL全局配置 $curl_options = [ CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 5, CURLOPT_CONNECTTIMEOUT => 3, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_MAXREDIRS => 3, CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' ]; // 分批次处理(每批5个URL) $batchSize = 5; foreach (array_chunk($urls, $batchSize) as $urlChunk) { $mh = curl_multi_init(); $handles = []; // 初始化批处理请求 foreach ($urlChunk as $url) { $ch = curl_init($url); curl_setopt_array($ch, $curl_options); curl_multi_add_handle($mh, $ch); $handles[] = $ch; } // 执行并行请求 $active = null; do { $status = curl_multi_exec($mh, $active); if ($active && curl_multi_select($mh) === -1) { usleep(100); } } while ($active && $status == CURLM_OK); // 处理响应 foreach ($handles as $ch) { $content = curl_multi_getcontent($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($httpCode == 200 && !empty($content)) { $content = preg_replace('/\s+/', '', trim($content)); if (preg_match('/^[a-zA-Z0-9+\/]+={0,2}$/', $content)) { $decoded = base64_decode($content, true); if ($decoded !== false) { // 分割节点并去重 $nodes = array_filter(explode("\n", $decoded), function($line) { return !empty(trim($line)); }); foreach ($nodes as $node) { $cleanNode = trim($node); $uniqueNodes[$cleanNode] = true; // 利用键名去重 } } } } // 清理句柄 curl_multi_remove_handle($mh, $ch); curl_close($ch); } curl_multi_close($mh); } // 生成最终内容 $finalContent = implode("\n", array_keys($uniqueNodes)); $finalBase64 = !empty($finalContent) ? base64_encode($finalContent) : base64_encode(''); // 原子化写入缓存 $tempCache = tempnam(__DIR__, 'cache_temp'); if ($tempCache && file_put_contents($tempCache, $finalBase64)) { rename($tempCache, $cache_file); } // 输出结果 header("Content-Type: text/plain"); echo $finalBase64; ?>
2025年04月15日
11 阅读
0 评论
0 点赞
2025-04-04
一段代码简单在谷歌colab内搭建vpn,完全免费科学上网工具,全网高速免费机场节点抓取
本文转载自科技共享 一段代码简单在谷歌colab内搭建vpn,完全免费科学上网工具,全网高速免费机场节点抓取支持v2ray/clash/singox能够自动爬取全网分享的订阅地址及代理节点,也能够自动注册/续期、订阅转换、节点存活检查等作者项目地址 【点击直达】 谷歌账号注册教程 【点击直达】 1、谷歌colab 【点击直达】 2、在新建的笔记本中,运行以下命令以克隆项目仓库:!git clone https://github.com/wzdnzd/aggregator.git3、安装依赖项:进入克隆的项目目录:%cd aggregator安装项目所需的 Python 依赖项:!pip install -r requirements.txt4、运行项目:在 Colab 中,使用以下命令运行 process.py 脚本:!python -u subscribe/collect.py -s5、查看节点文件【以clash.yaml为例,可改为v2或其它,下载时也类似修改】:clash.yaml!cat /content/aggregator/data/clash.yamlv2节点!cat /content/aggregator/data/v2ray.txt其它!cat /content/aggregator/data/singbox.json6、下载节点文件from google.colab import files files.download('/content/aggregator/data/clash.yaml')
2025年04月04日
11 阅读
0 评论
0 点赞
2025-02-16
总结白嫖】DeepSeek R1 671B满血版-网页版+API版
总结白嫖】DeepSeek R1 671B满血版-网页版+API版网页版本官方 https://chat.deepseek.com/支持api 深度思考 联网搜索国家超算互联网中心 https://chat.scnet.cn/#/home深度思考 联网搜索腾讯元宝 https://yuanbao.tencent.com/chat深度思考 联网搜索知乎直答 https://zhida.zhihu.com/深度思考 自动知乎搜索360纳米ai https://bot.n.cn/深度思考 联网搜索秘塔ai https://metaso.cn/深度思考 自动联网搜索天工ai https://www.tiangong.cn/深度思考 自动联网搜索当贝ai https://ai.dangbei.com/chat深度思考 联网搜索问小白 https://www.wenxiaobai.com/chat深度思考 联网搜索跃问 https://yuewen.cn/chats/new深度思考 联网搜索华为小艺ai网页版 https://xiaoyi.huawei.com/chat深度思考 自动联网搜索API版本硅基流动api免费额度,限速阿里云百炼 https://bailian.console.aliyun.com/#/model-market/detail/deepseek-r1免费额度:100万(限时半年)腾讯云 https://cloud.tencent.com/document/product/1772/115963限时免费字节火山引擎 https://www.volcengine.com/免费额度:50万, 限时5折百度千帆 https://console.bce.baidu.com/qianfan/ais/console/onlineTest/LLM/DeepSeek-R1限时免费华为云 https://activity.huaweicloud.com/maas-ds.html免费200万Tokens天翼云 https://www.ctyun.cn/act/xirang/deepseek免费2500万Tokens,限时两周还有国外的比如:英伟达/亚马逊/微软 等等大厂
2025年02月16日
40 阅读
1 评论
0 点赞
2025-02-11
Cursor Pro Trial 续用工具
Cursor Pro Trial 续用工具方法一(推荐):完全卸载重装本文转自:ai来事下载 Geek.exe 卸载工具(免费)完全卸载 Cursor 应用程序重新安装 Cursor 应用程序(官网自行下载)启动 Cursor 并使用新账户登录新账户注册问题:如果注册不上可以尝试不同IP。建议在删除前备份cursor原配置等相关文件mac平台也可以参考上述方法,使用相关软件完全卸载,然后重新安装如果不想使用上述方法,可以考虑:请不要闲鱼上购买,可能都是github上的项目,比如这个cursor-auto-free (需要动手能力)或者 cursor-help
2025年02月11日
35 阅读
0 评论
0 点赞
2025-01-28
自建不蒜子
自建不蒜子 一个基于 Golang + Redis 简单、轻量的网页计数器, 项目 统计站点的 UV, PV统计子页面的 UV, PV使用 Docker 一键部署隐私保障 仅存储 HASH兼容 Pjax 技术的网页支持从原版不蒜子迁移数据一、安装 持多种运行方式: 源码编译运行, Docker 运行源码编译运行git clone https://gitee.com/soxft/busuanzi.git && cd busuanzigo build -o busuanzi main.go根据提示修改 config.yml编辑dist/busuanzi.js或编译dist/busuanzi.ts, 替换链接为自己部署的。通过命令 ./busuanzi 启动程序2. 使用 Docker 运行 (Recommend)【推荐此法安装】 在一个空文件夹中创建名为 docker-compose.yaml 的文件, 内容如下或见 docker-compose.yamlversion: "3.8" services: redis: image: "redis:alpine" volumes: - ./data/redis:/data bsz: image: "xcsoft/busuanzi:latest" ports: - "8080:8080" # 修改映射到宿主机的端口 host:container links: - redis depends_on: - redis environment: WEB_LOG: true # 是否开启日志 WEB_DEBUG: false # 是否开启debug模式 WEB_CORS: "*" # 跨域访问 BSZ_EXPIRE: 0 # 统计数据过期时间 单位秒, 请输入整数 (无任何访问, 超过这个时间后, 统计数据将被清空, 0为不过期) BSZ_SECRET: "bsz" # 签名密钥 // 请设置为任意长度的随机值 API_SERVER: http://127.0.0.1:8080 # 填写你的 API 地址 REDIS_ADDRESS: redis:6379 # redis 地址 BSZ_PATHSTYLE: true BSZ_ENCRYPT: MD516环境变量设置环境变量 参数说明环境变量参数说明API_SERVER busuanzi.jsAPI地址WEB_LOG 是否开启日志默认 trueREDIS_ADDRESS Redis 地址默认为 redis:6379REDIS_PASSWORD Redis默认空BSZ_SECRET 签名密钥使用任意长度的字符串填充执行 docker compose up -d 服务将会运行在 8080 端口, 也可以自行修改 docker-compose.yml 指定端口您也可以修改 ~/data/bsz/config.yaml 自定义配置, 后重启容器。通用环境变量Tips: 所有 config 内的设置, 均可使用 环境变量 覆盖Ex. BSZ_SECRET = 123 将覆盖 config.yaml 中的 Bsz.Secret二进制文件运行# 部分静态资源并未打包在 二进制文件内, 因此需要 clone 整个项目到本地 $ git clone https://gitee.com/soxft/busuanzi && cd busuanzi # 在 Release 中选择适合自己系统版本的二进制文件 (在 v2.8.0 后, 所有二进制文件由 Github Action 自动构建) 此处以常见服务器 (Linux & amd64) 作为演示 $ wget https://github.com/soxft/busuanzi/releases/download/v2.8.8/busuanzi-linux-amd64-v2.8.8 -o busuanzi $ chmod +x busuanzi # 运行 busuanzi $ ./busuanzi{dotted startColor="#ff6c6c" endColor="#1989fa"/}二、快捷使用 1、本站不蒜子<script defer src="https://bsz.211119.xyz/js"></script> 本文总阅读量 <span id="busuanzi_page_pv"></span> 次 本文总访客量 <span id="busuanzi_page_uv"></span> 人 本站总访问量 <span id="busuanzi_site_pv"></span> 次 本站总访客数 <span id="busuanzi_site_uv"></span> 人2、杜老师不蒜子<script defer src="https://busuanzi.9420.ltd/js"></script> 本文总阅读量 <span id="busuanzi_page_pv"></span> 次 本文总访客量 <span id="busuanzi_page_uv"></span> 人 本站总访问量 <span id="busuanzi_site_pv"></span> 次 本站总访客数 <span id="busuanzi_site_uv"></span> 人相对于原版的不蒜子, 您可能需要修改标签 ID.当然您也可以参阅下方 可选参数 -> Ex -> 3, 通过直接修改 data-prefix 实现兼容.可选参数属性默认值释义data-apihttp://127.0.0.1:8080/api不蒜子的API地址pjax表格是否监听 pjax 变化data-prefixbusuanzi标签前缀Ex在一些启用了 pjax 技术的网站中, 可以在 js 标签中加入 pjax 属性, 来实现当网站切换页面时自动更新页面计数的效果:可以使用 data-api 属性, 指定后端API的接口:可以使用 data-style 属性, 指定数据的显示样式short显示为短形式, 如 1024 将显示为 1kcomma以逗号分隔数据, 如 1024 将显示为 1,024default默认模式, 显示完整的数据不同于原版, 为了更加精简, 我们去除了 HTML ID 中的 value 字符, 但您仍然可以通过指定 data-prefix 属性来进行兼容:
2025年01月28日
40 阅读
1 评论
0 点赞
1
2
3
...
13