Skip to content

Instantly share code, notes, and snippets.

@lxfly2000
lxfly2000 / earthquake-watching-applications-collection.md
Last active April 17, 2025 06:43
地震监测软件收集【本页面所有内容均已停止更新】
@lxfly2000
lxfly2000 / earthquakes-cn-api.md
Last active March 29, 2025 17:02
中国地震台网及速报相关的API【本页面所有内容均已停止更新】

中国地震台网及速报相关的API

中国地震台网网站

全球地震记录
https://news.ceic.ac.cn/speedsearch.html

中国地震台网小程序

::获取Token
curl https://yjfw.cenc.ac.cn/api/earthquake/user/v1/register_user -X POST -H "Signature:数据" -H "Content-Type:application/json; charset=UTF-8" -d "用户数据"
::预警数据
curl https://yjfw.cenc.ac.cn/api/earthquake/event/v1/list -X POST -H "Authorization:Bearer Token数据" -H "Content-Type:application/json; charset=UTF-8" -d "用户数据"

一些免费高质量的日语字体

以下各网站中的字体只列举一部分,部分字重较多的只列最细、中等、最粗的3个字重。注意这里展示的字体全部都是可以免费商用的,也就是说无须担心版权问题可自由使用。近年由于字体引发的版权问题越来越多,如果你在网上随便下载了某款字体,请一定要仔细检查它的版权说明、使用限制等,避免引起不必要的麻烦。

需要下载Adobe Creative Cloud,由于Adobe不在中国提供字体服务,你需要注册外区账号使用。

Corporate Logo ver2

image

Corporate Logo ver2 Bold

@lxfly2000
lxfly2000 / spmap_tistory.py
Created September 12, 2023 05:31
下载这个网页中的地图,注意先把渲染好的网页保存到本地再使用(https://zhy55415.tistory.com/15973215?category=568791)
# python 3.11
import os
import sys
import re
from urllib import request
# spider <savedir> [html files]
if len(sys.argv)<2:
print("Usage: spider <savedir> htmlfile1 [htmlfile2...]")
@lxfly2000
lxfly2000 / 音视频去除静音部分.bat
Last active September 18, 2023 06:57
需要先安装 auto-editor (https://github.com/WyattBlue/auto-editor ),然后把脚本放到SendTo文件夹
@echo off
if "%~1"=="" (
echo 未指定文件。
goto :eof
)
py -m auto_editor %1
@lxfly2000
lxfly2000 / qqem.py
Last active September 20, 2023 03:54
批量获取QQ表情预览图
# python 3.11
import os
import sys
from urllib import request
import urllib.error
# qqem <startid> <endid> [savepath]
if len(sys.argv)<2:
print("Usage: qqem <startid> [endid] [savepath]")
@lxfly2000
lxfly2000 / restore_bili_video.py
Last active October 12, 2023 12:38
恢复B站UWP下载的加密视频(可将该脚本放在sendto文件夹下)
# Python 3.9
import sys
def restore_bili_video(video_path):
print("Restoring... "+video_path)
ext=video_path[video_path.rfind("."):]
fin=open(video_path,"rb")
if fin.read(1)!=b"\xff":
print("This file is not encrypted by bilibili.")
@lxfly2000
lxfly2000 / fix_you_srt_tl.py
Last active October 23, 2023 13:11
修复YouTube下载的字幕时间轴重叠问题
# Python 3.11
import sys
#00:00:00,000
def srt_time_to_ms(str):
return ((int(str[0:2])*60+int(str[3:5]))*60+int(str[6:8]))*1000+int(str[9:12])
def ms_to_srt_time(ms):
milli=ms%1000
@lxfly2000
lxfly2000 / wer.reg
Created November 13, 2023 10:48
Win10中错误报告默认是关闭的,此项用于开启
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting]
"DontShowUI"=dword:00000000