清羽Gist

Explore

  • 所有 Gists
  • Topics
  • Users
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 한국어 Polski Português Русский Türkçe Українська 简体中文 繁體中文

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

description:sync gists with given description

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

all:systemctl search all fields

登錄
p

Topics

python

倒序排序 創建 順序排序 創建 倒序排序 更新 順序排序 更新
LiuShen

LiuShen / Action实现刷新EO缓存

最後活躍 6 months ago action auto cache edgeone eo github python tencent

通过Python,在Github Action中实现EO站点缓存刷新

0 0 2
refresh-eo.py 2 檔案
1 import os
2 import json
3 from tencentcloud.common import credential
4 from tencentcloud.teo.v20220901 import teo_client, models
5 from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
6
7 try:
8 cred = credential.Credential(
9 os.getenv("TENCENTCLOUD_SECRET_ID"),
10 os.getenv("TENCENTCLOUD_SECRET_KEY")
LiuShen

LiuShen / 统计CDN访问日志

最後活躍 6 months ago CDN log python

通过Python实现访问CDN日志筛选

0 0 1
main.py 1 檔案
1 import os
2 import re
3 import csv
4 from collections import defaultdict
5
6 def analyze_logs(log_directory, target_path):
7 """
8 分析日志文件,统计每个IP的总请求数和特定路径的请求数
9
10 :param log_directory: 日志文件夹路径
LiuShen

LiuShen / 生成标准化owo.json

最後活躍 6 months ago artalk json owo python twikoo

从基本文件格式,生成标准化JSON,用于表情包

0 0 3
USAGE.md 3 檔案

整理好表情包为如下格式:

. 📂 owo
└── 📂 bilibili/
│  ├── 📄 bilibili-doge.png
│  ├── 📄 bilibili-大佬.png
│  ├── 📄 …………
└── 📂 blobcat/
│  ├── 📄 blobcat0_0.png
清羽Gist © 2026 QingyuGist
陕ICP备2024028531号-2 陕公网安备61011602000637号