Skip to content

Instantly share code, notes, and snippets.

View mzdluo123's full-sized avatar
🥰

RainChan mzdluo123

🥰
View GitHub Profile
/*
到数据查看界面选择好要查看的数据和时间
按下f12粘贴下面的代码然后回车
点击查询即可自动下载数据为csv格式
*/
(function() {
function ajaxEventTrigger(event) {
var ajaxEvent = new CustomEvent(event, { detail: this });
window.dispatchEvent(ajaxEvent);
}
@mzdluo123
mzdluo123 / main.py
Last active June 5, 2022 16:16
Danbooru mitmproxy
from mitmproxy import ctx
from mitmproxy.proxy.server_hooks import ServerConnectionHookData
'''
使用 mitmproxy -s main.py 启动代理
然后再mitm.it安装证书
'''
class Danbooru:
@mzdluo123
mzdluo123 / aws_ptp.sh
Last active October 6, 2024 06:07
aws install ptp and use hardware clock
# tested on Ubuntu-24.04
apt update
apt-get install dkms git gcc make linuxptp chrony -y
git clone https://github.com/amzn/amzn-drivers.git
mv amzn-drivers /usr/src/amzn-drivers-1.0.0
cat > /usr/src/amzn-drivers-1.0.0/dkms.conf <<EOF
PACKAGE_NAME="ena"
PACKAGE_VERSION="1.0.0"
CLEAN="make -C kernel/linux/ena clean"
MAKE="ENA_PHC_INCLUDE=1 make -C kernel/linux/ena/ BUILD_KERNEL=\${kernelver}"