Skip to content

Instantly share code, notes, and snippets.

View cloudwindy's full-sized avatar

cloudwindy

  • China
  • 08:52 (UTC +08:00)
View GitHub Profile
@cloudwindy
cloudwindy / wplace_purchase_service.js
Created September 5, 2025 17:33
A simple http server providing w-place item purchase functionality.
import express from 'express'
import fs from 'fs'
import path, { dirname } from 'path'
import { fileURLToPath } from 'url'
import { Impit } from 'impit'
const impit = new Impit({
browser: 'chrome',
ignoreTlsErrors: true,
})
@cloudwindy
cloudwindy / ehentai_sort.py
Created February 8, 2024 06:35
E-Hentai KToolbox Sort / E-Hentai Kemono下载结果排序
import json
import argparse
import os
import os.path as path
import shutil
parser = argparse.ArgumentParser()
parser.add_argument('gallery_path')
parser.add_argument('output_path')
args = parser.parse_args()
@cloudwindy
cloudwindy / hentaiverse_monsterbation_automation.js
Created February 7, 2024 22:44
Hentaiverse Monsterbation Automation / Hentaiverse 自动化点击脚本
// ==UserScript==
// @name Hentaiverse Monsterbation
// @namespace hvmonsterbate
// @version 1.4.1.1
// @description M-M-M-MONSTERBATE!!
// @match *://*.hentaiverse.org/*
// @exclude *hentaiverse.org/equip/*
// @grant none
// ==/UserScript==
@cloudwindy
cloudwindy / ehentai_get_seed.sh
Last active February 8, 2024 01:37
E-Hentai Seeding Script / E-Hentai 做种脚本
#!/bin/bash
set -e
set -o pipefail # without this line the script messed up everything
ssh_host="root@server"
# must have a trailing slash
ssh_host_seed_dir="/var/lib/qbittorrent/downloads/incomplete/"
if [[ -z "$1" ]]; then
echo "$0: missing url"
@cloudwindy
cloudwindy / wikipedia_ref_fix.py
Created October 17, 2020 08:59
Wikipedia Reference Fixer
from time import time
from textwrap import fill
from pywikibot import Site, Page, warning
from pywikibot.bot import SingleSiteBot, ExistingPageBot, NoRedirectPageBot
from pywikibot.editor import TextEditor
class ReferenceFixer(