Skip to content

Instantly share code, notes, and snippets.

View wanderxjtu's full-sized avatar

Wanderxjtu wanderxjtu

  • PayPay
  • Japan
  • 15:54 (UTC +09:00)
View GitHub Profile
@wanderxjtu
wanderxjtu / s2jp.json
Created April 16, 2026 09:08
Simplified Chinese to Japanese Kanji convertion config with OpenCC
{
"name": "Simplified Chinese to Japanese Kanji",
"segmentation": {
"type": "mmseg",
"dict": {
"type": "ocd2",
"file": "STPhrases.ocd2"
}
},
"conversion_chain": [
@wanderxjtu
wanderxjtu / curlconnecto
Last active December 26, 2024 06:24
curlconnecto
#!/usr/bin/env python3
"""
curlconnecto [curl options] connect-address [schema]://hostname[:port]/path/to/resource
"""
from argparse import ArgumentParser
from urllib.parse import urlparse
from subprocess import run
from shlex import quote
parser = ArgumentParser()
import os
import sys
import hashlib
import pprint
import sqlite3
from collections import defaultdict
conn = sqlite3.connect('filehashes.db')
c = conn.cursor()
try: