Skip to content

Instantly share code, notes, and snippets.

@luoboQAQ
luoboQAQ / iyzu.user.js
Last active July 12, 2024 01:03
扬大门户校园网显示优化
// ==UserScript==
// @name 扬大门户校园网显示优化
// @namespace https://github.com/luoboQAQ
// @version 0.2.1
// @description 将分钟转换为小时
// @author luoboQAQ
// @match https://i.yzu.edu.cn/Student
// @icon https://i.yzu.edu.cn/favicon.ico
// @grant none
// ==/UserScript==
@luoboQAQ
luoboQAQ / cpp.json
Created July 4, 2023 00:51
snippets
{
"CPP-default":{
"prefix":"d1",
"body": [
"#include <iostream>\n",
"int main()",
"{",
"\t$0\n",
"\tsystem(\"pause\");",
"\treturn 0;",
@luoboQAQ
luoboQAQ / judge_cidr.py
Created June 11, 2023 03:11
判断国内IPV6地址属于那个CIDR
import ipaddress
import os
import requests
def find_cidr(ip, cidr_list):
for cidr in cidr_list:
if ipaddress.ip_address(ip) in ipaddress.ip_network(cidr):
return cidr
return None
@luoboQAQ
luoboQAQ / config.yaml
Created April 20, 2023 07:02
mosdns配置文件及更新脚本
# Powered by luoboQAQ
log:
level: info
# file: ./log.txt
plugins:
# 缓存插件
- tag: cache
type: cache
args:
@luoboQAQ
luoboQAQ / getGcoreIP.py
Created March 17, 2023 09:16
G-core测速相关脚本
import requests
import sys
def formatIp(ip):
return ip.replace('/32', '').replace('/128', '').replace('\'', '')
IS_GET_IPV4 = True
IS_GET_IPV6 = True
FILE_PATH = 'gcore_mix.txt'
r = requests.get('https://api.gcdn.co/cdn/public-ip-list')
@luoboQAQ
luoboQAQ / Header Editor
Last active July 25, 2024 13:11
Header Editor规则
{
"request": [
{
"enable": false,
"name": "Sourceforge下载 >> 镜像站点",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/sourceforge\\.net\\/projects\\/(((\\w)\\w).*)\\/files\\/(.*)\\/download",
"exclude": "",
"isFunction": false,
@luoboQAQ
luoboQAQ / v2ray-blacklist
Last active December 26, 2022 05:30
V2ray Config
[
{
"inboundTag": [],
"outboundTag": "block",
"domain": [
"geosite:category-ads-all"
],
"enabled": true
},
{
@luoboQAQ
luoboQAQ / bgm-blacklist.user.css
Last active January 16, 2024 12:33
bgm.tv黑白名单样式
/* ==UserStyle==
@name BGM黑白名单
@namespace https://github.com/luoboQAQ
@version 24.1.16
@description 用于Bangumi网站的人物高亮显示
@author luoboQAQ
@var color blackUser "黑名单staff颜色" red
@var color attentionUser "关注staff颜色" green
@var color attentionVoice "关注声优颜色" blue
==/UserStyle== */