Skip to content

Instantly share code, notes, and snippets.

@syrinka
syrinka / pgmm-codec.py
Last active August 30, 2022 13:34
Pixel Game Maker MV 引擎资源解密脚本
import os
import click
import struct
import json
from base64 import b64decode
from twofish import Twofish
iv = bytes.fromhex("A0 47 E9 3D 23 0A 4C 62 A7 44 B1 A4 EE 85 7F BA")
@syrinka
syrinka / eagle-link.ahk
Created January 28, 2023 07:17
Autohotkey script to link image in eagle
@syrinka
syrinka / batch-cc.py
Last active September 29, 2023 13:12
A crude gist to convert zh-hans to zh-hant in batch
import zhconv
import sys
import os
from pathlib import Path
src = Path(sys.argv[1]).absolute()
dst = Path(sys.argv[2]).absolute()
for cur, dirs, files in os.walk(src):
for file in files:
{
"$comment": "there are multiple resources describing pyproject.toml. The canonical reference is at https://packaging.python.org/en/latest/specifications/declaring-project-metadata/, which refers to multiple proposals such as PEP 517, PEP 518 and PEP 621",
"$id": "https://json.schemastore.org/pyproject.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"projectAuthor": {
"type": "object",
"additionalProperties": false,
"anyOf": [
@syrinka
syrinka / BalatroTweak.lua
Created April 10, 2024 12:23
Some value tweaks for Balatro
--- STEAMODDED HEADER
--- MOD_NAME: Balatro Tweak
--- MOD_ID: cbt
--- MOD_AUTHOR: [syrinka]
--- MOD_DESCRIPTION: Some tweaks
----------------------------------------------
------------MOD CODE -------------------------
local originalFuncRef = get_starting_params