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 python3 | |
| """ | |
| dupfinder — 查找并清理重复文件 | |
| 基于 SHA-256 哈希检测重复文件,支持交互式或自动清理。 | |
| 重复文件按哈希分组,默认保留每组第一个文件(可配置保留策略)。 | |
| 用法: | |
| # 仅扫描,列出重复文件 | |
| python dupfinder.py /path/to/dir |
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 python3 | |
| """ | |
| FreshRSS Dead Link Scanner | |
| =========================== | |
| Scans a FreshRSS SQLite database for dead article URLs. | |
| A URL is considered "dead" when: | |
| - HTTP 4xx client errors (404 Not Found, 410 Gone, etc.) | |
| - HTTP 5xx server errors (500 Internal Server Error, etc.) | |
| - HTTP 3xx redirect that lands on a known error page (e.g. /404/index.html) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>DeepSeek 历史对话查看器 · 离线版</title> | |
| <!-- 使用 Font Awesome 图标 & 基础样式 --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | |
| <!-- Markdown 渲染 & 安全过滤 --> | |
| <script src="https://cdn.jsdelivr.net/npm/marked@4.3.0/lib/marked.umd.min.js"></script> |
========== REQUEST (2026-04-02 15:30:38) ==========
URL: https://api.deepseek.com/chat/completions
Method: POST
--- Headers ---
{
"Connection": "keep-alive",
"Accept": "application/json",
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
| /** | |
| * Luhn校验算法校验银行卡号;Luhm校验规则:16位银行卡号(19位通用):1、将未带校验位的 15(或18)位卡号从右依次编号 1 到 15(18),位于奇数位号上的数字乘以 2;2、将奇位乘积的个十位全部相加,再加上所有偶数位上的数字。 | |
| * @param {string} bankno 银行卡号 | |
| * @returns 是否为正确的银行卡号 | |
| */ | |
| function verifyBankCardNumber(bankno) { | |
| var lastNum = bankno.substr(bankno.length - 1, 1); //取出最后一位(与luhm进行比较) | |
| var first15Num = bankno.substr(0, bankno.length - 1); //前15或18位 | |
| var newArr = new Array(); | |
| for (var i = first15Num.length - 1; i > -1; i--) { |
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 requests | |
| import time | |
| import json | |
| # 高德API密钥(请替换为您自己的密钥) | |
| AMAP_KEY = "YOUR_API_KEY_HERE" | |
| def search_poi_by_keyword(city, keyword): | |
| """使用关键字搜索POI""" | |
| base_url = "https://restapi.amap.com/v3/place/text" |
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
| ! 通用 CDN 域名 | |
| ||bsccdn.net^ | |
| ||gjfzpt.cn^ | |
| ||jomodns.cn^ | |
| ||kuiniuca.com^ | |
| ||pkoplink.com^ | |
| ||saxysec.com^ | |
| ||szbdyd.com^ | |
| ||uhabo.com^ | |
| ||xycdn.com^ |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>PushState Title</title> | |
| </head> | |
| <body> | |
| <h1>PushState Test</h1> | |
| <button onclick="history.pushState(null, '', 'bar.html')">Push State</button> | |
| </body> | |
| </html> |
NewerOlder