All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login
's Avatar

LiuShen

Joined 2 years ago

Recently created
Least recently created
Recently updated
Least recently updated
All gists 41 Liked 3
LiuShen's Avatar

LiuShen / Butterfly-音乐胶囊实现

0 likes
1 forks
5 files
Last active 1 month ago
Hexo-Theme-Butterfly实现右下角音乐胶囊
aplayer butterfly hexo metingjs pug stylus

🎵 音乐胶囊模块使用说明

本仓库提供了一个可集成到 Hexo 主题 liushen 的音乐胶囊播放器模块。模块包含四个主要部分:

  • 主题配置文件
  • 布局模板文件
  • 样式文件
  • 前端脚本

本文档将详细介绍它们的放置位置、引用方式和变量配置。

LiuShen's Avatar

LiuShen / 动态404页面源码

0 likes
0 forks
1 files
Last active 1 month ago
使用纯css,实现动画效果404页面源码
404 html page
1 <!DOCTYPE html>
2 <html lang="zh-CN">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>404 - 诗意之境</title>
7 <style>
8 * {
9 margin: 0;
10 padding: 0;
LiuShen's Avatar

LiuShen / Action实现刷新EO缓存

0 likes
0 forks
2 files
Last active 1 month ago
通过Python,在Github Action中实现EO站点缓存刷新
action auto cache edgeone eo github python tencent
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's Avatar

LiuShen / 统计CDN访问日志

0 likes
0 forks
1 files
Last active 1 month ago
通过Python实现访问CDN日志筛选
CDN log python
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's Avatar

LiuShen / 新版Butterfly关于页面

0 likes
0 forks
5 files
Last active 1 month ago
清羽飞扬新版关于页面魔改文件备份
about butterfly new-version page
1 #about-container
2 section.top-section
3 .top-content
4 .float-texts
5 each text, index in site.data.about.top_info.float_text.slice(0, 4)
6 .float-text(class=`float-text-${index + 1}`) #{text}
7 .avatar-container
8 img.no-lightbox.avatar(src=url_for(site.data.about.top_info.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt="")
9 .float-texts
10 each text, index in site.data.about.top_info.float_text.slice(4, 8)
LiuShen's Avatar

LiuShen / ech0说说展示到前端网站

0 likes
0 forks
2 files
Last active 1 month ago
将ech0说说展示到前端网站页面
ech0 hexo javascript shuoshuo
1 const goComment = (e) => {
2 const n = document.querySelector(".el-textarea__inner");
3 n.value = `> ${e}\n\n`;
4 n.focus();
5 btf.snackbarShow("已为您引用该说说,不删除空格效果更佳");
6 };
7
8 // 如果是twikoo评论区,请自行替换goComment函数,注意,如果评论区开了懒加载可能导致无法找到元素。
LiuShen's Avatar

LiuShen / 生成标准化owo.json

0 likes
0 forks
3 files
Last active 1 month ago
从基本文件格式,生成标准化JSON,用于表情包
artalk json owo python twikoo

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

. 📂 owo
└── 📂 bilibili/
│  ├── 📄 bilibili-doge.png
│  ├── 📄 bilibili-大佬.png
│  ├── 📄 …………
└── 📂 blobcat/
│  ├── 📄 blobcat0_0.png
LiuShen's Avatar

LiuShen / Atom美化代码

0 likes
0 forks
1 files
Last active 1 month ago
Atom通过XSL代码进行HTML化并进行美化
atom feed hexo pretty xml xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="3.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:atom="http://www.w3.org/2005/Atom">
5 <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
6
7 <xsl:template match="/">
8 <xsl:variable name="title">
9 <xsl:value-of select="/atom:feed/atom:title"/>
10 </xsl:variable>
LiuShen's Avatar

LiuShen / Mihomo Party 覆写整理脚本

0 likes
0 forks
1 files
Last active 1 month ago
Mihomo Party 覆写整理脚本,整合资源,实现更完整的分组,多订阅共享
clash mohomo-party rewrite
1 // Define the `main` function
2
3 const proxyName = "代理模式";
4
5 function main (params) {
6 if (!params.proxies) return params;
7 overwriteRules (params);
8 overwriteProxyGroups (params);
9 overwriteDns (params);
10 return params;
LiuShen's Avatar

LiuShen / Webhook实现仓库自动备份

0 likes
0 forks
1 files
Last active 1 month ago
宝塔面板,使用Webhook,自动同步更新后的仓库,拉取静态源码部署博客
cmd github shell sync webhook
1 #!/bin/bash
2 echo ""
3 #输出当前时间
4 date --date='0 days ago' "+%Y-%m-%d %H:%M:%S"
5 echo "Start"
6 #判断宝塔WebHook参数是否存在
7 if [ ! -n "$1" ];
8 then
9 echo "param参数错误"
10 echo "End"
Newer Older

Powered by Opengist ⋅ Load: 177ms⋅

English
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文
⋅ 个人主页 ⋅ 站长博客