这个是油猴脚本。安装了暴力猴插件之后,点击上面这个文件的 Raw 按钮,会提示安装。
- pdf.js 可以提取所有的 TextItem 包括文本和包围盒
- 根据包围盒可以大致判断一下是否换行了
- 如果一行中包含了公式,那么一行会有很多个 TextItem,这些行会称之为 complex 的行
- 多个连续的 complex 行变成了 complex 块
- 如果有 claude 3 haiku 的账号会对 complex 块做一次基于图片的 OCR 来清洗嘈杂的带公式的文本
// ==UserScript== | |
// @name No Watermark CC98 | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Remove CC98 watermark | |
// @author who cares? | |
// @license WTFPL | |
// @run-at document-start | |
// @match https://www.cc98.org/* | |
// @icon https://www.cc98.org/static/98icon.ico |
from scapy.all import * | |
from socket import * | |
interface = "enp0s31f6" | |
def mysend(pay,interface = interface): | |
sendp(pay, iface = interface) | |
def packet_callback(packet): |
#!/bin/bash | |
rev="12" | |
_log(){ | |
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log | |
} | |
_log_para(){ | |
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log |
调查目的:了解当前各基于TLS的协议方案中ClientHello的指纹独特性。理论背景见 https://arxiv.org/abs/1607.01639 。
指纹数据库:
(利益相关:我是这个的作者)
#!/bin/bash | |
# Convert json data to a dotted notation for line-based manipulation and visualization | |
# | |
# Adapted from dialog here: https://news.ycombinator.com/item?id=20245913 | |
# jq code by @jolmg | |
# | |
flat() { | |
jq -r ' |
Setting up emummc in a nutshell (mostly for linux)
cat BOOT0 BOOT1 rawnand.bin.00 rawnand.bin.01 rawnand.bin.02 rawnand.bin.03 rawnand.bin.04 rawnand.bin.05 rawnand.bin.06 rawnand.bin.07 rawnand.bin.08 rawnand.bin.09 rawnand.bin.10 rawnand.bin.11 rawnand.bin.12 rawnand.bin.13 rawnand.bin.14 > emummc.bin
). Resulting file should be 31276924928 bytes unless you modded your console with a larger (or a smaller) emmc (if you don't know what this is about, then you haven't modded yours).#!/bin/sh | |
# multi SSID with VLAN script, for ASUS AC86U with merlin | |
# | |
# setup before hand: | |
# set "router" to "AP Mode" | |
# this will put all ports and wireless in br0 | |
# create 2 guest network | |
# enable Administration => System => Enable JFFS custom scripts and configs | |
# put this script in /jffs/scripts/, name should be "services-start" |