Skip to content

Instantly share code, notes, and snippets.

View monsterxcn's full-sized avatar
🥱
上班!

Monst.x monsterxcn

🥱
上班!
View GitHub Profile
@import url("https://fonts.googleapis.com/css?family=Imprima");
@import url("https://fonts.googleapis.com/css?family=Changa%20One");
/* Transparent background */
yt-live-chat-renderer {
background-color: transparent !important;
}
yt-live-chat-ticker-renderer {
background-color: transparent !important;
@monsterxcn
monsterxcn / teyvat_panel.py
Created January 18, 2023 10:48
fetch enka data from mirror teyvat
import asyncio
from time import time
from hashlib import md5
from typing import Dict
from httpx import AsyncClient
SALT = "c098828gy1h7k6oillopj223w15se3"
from io import BytesIO
from pathlib import Path
from typing import Union
from base64 import b64decode
from urllib.parse import urlparse
from nonebot.log import logger
from nonebot.adapters.onebot.v12 import Bot, MessageSegment
@monsterxcn
monsterxcn / .bash_profile
Last active January 8, 2023 10:18
Ubuntu 服务器初始化
# For pip installed by get-pip.py
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
@monsterxcn
monsterxcn / ysin_panel.py
Last active January 2, 2023 10:27
fetch enka data from mirror ysin
import asyncio
import hmac
import json
from datetime import datetime
from pathlib import Path
from typing import Dict, Optional, Tuple, Union
from httpx import AsyncClient
# https://yuanshen.xin/static/js/chunk-vendors.6364f242.js "spaceName"
@monsterxcn
monsterxcn / gspay_new.py
Last active June 8, 2023 06:30
NoneBot2 原神充值二维码插件,将 nonebot_plugin_gspay.py 补全后放入插件文件夹下重启 Bot 即可使用
"""
需要绑定个人 Cookie 的充值插件,不再即插即用,使用前必须自行修改 Cookie 处理等代码,溜了
哦对了,由于我的机机在境外,访问米哈游接口需要梯子,代码里 httpx.AsyncClient 都设置了代理
境内机机使用 / 没有代理的话,务必记得删除文件中的 proxies={"all://": "socks5://127.0.0.1:1080"}
参考 https://github.com/KimigaiiWuyi/GenshinUID/pull/463
"""
import hmac
import json
from time import time
@monsterxcn
monsterxcn / genshin_redeem_cn.py
Created November 26, 2022 08:21
[不可用] 原神国服兑换码兑换
import asyncio
import json
import random
import string
import uuid
from hashlib import md5
from time import time
from traceback import format_exc
from typing import Dict, Literal
@monsterxcn
monsterxcn / telegram_notify_with_alist.sh
Last active October 23, 2022 10:37
on_download_complete notify bash script for Telegram & AList
#!/usr/bin/env bash
# Add to https://github.com/P3TERX/aria2.conf/blob/master/upload.sh
SENDMSG() {
FILE_LOCAL_PATH=$1
FILE_REMOTE_PATH=$2
ALIST_ROOT="cloud.monsterx.cn"
ALIST_DIR="/OneDrive/Aria"
ALIST_NAME="admin"
@monsterxcn
monsterxcn / getAbyssRank.json
Last active October 19, 2022 03:45
tevalt helper miniprogram api
{
"code": 200,
"title": "3.1深渊使用率排行(第二期)",
"rank_btn": "参与3.1深渊统计(第二期)",
"version": "当前版本:v3.1",
"now_version": "3.1第二期",
"old_version": "3.1第一期",
"last_update": "2022-10-19",
"update": "统计时间:2022-10-16至2022-10-30",
"top_own": 51912,
@monsterxcn
monsterxcn / fix.md
Created July 11, 2022 07:41
sb node-spy & node-sass