This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import re, time, os, io, sys, binascii | |
import hashlib | |
from PIL import Image | |
pathSysJSON = "www\\data\\System.json" | |
pathSysJSON1 = "data\\System.json" | |
pathRpgProject = "www\\Game.rpgproject" | |
RE_ENC_KEY_CUE = re.compile(r'encryptionKey"\s*:\s*"([^"]+)"') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pyinstaller --onefile filetranslate.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem cmd | |
rem git doesn't require any actual repository or its worktree to be in any particular place. | |
git clone -c core.symlinks=true https://github.com/User/application | |
mklink /d main\resources\ c:\src\main\resources\ | |
mklink file.xml c:\src\main\resources\file.xml | |
git submodule init | |
echo gitdir: C:\to\shared\libraryXYZ\.git > libraryXYZ\.git | |
rem for example to see where all a project's submodules' parts are kept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rebase -i --root | |
REM pick to edit :wq | |
git commit -S --amend --no-edit && git rebase --continue | |
REM git log --show-signature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'zlib' | |
# Some data structures that are common to both VX and VX Ace. | |
class Rect | |
def initialize(x, y, width, height) | |
@x = x | |
@y = y | |
@width = width | |
@height = height |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# Alternative version that doesn't use serialization/deserialization libraries | |
# it modifies files directly instead. | |
import argparse, sys, os, glob, re, struct, csv, hashlib, math, zlib | |
from multiprocessing import Pool | |
DUMP_ALL_STRINGS = False | |
OUT_DIR = 'out' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "KaresekaHook.h" | |
#include "MyHook.h" | |
#include "StreamHolderXP3.h" | |
#include "IStreamExXP3.h" | |
#include "tp_stub.h" | |
#include <string> | |
#include <vector> | |
using std::wstring; | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import sys | |
import struct | |
import zlib | |
from io import open, BytesIO, SEEK_CUR, SEEK_END # noqa | |
PY2 = sys.version_info[0] == 2 | |
# Kaitai Struct runtime streaming API version, defined as per PEP-0396 | |
# standard. Used for two purposes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell -executionPolicy bypass -file "tyranocut.ps1" -Unpack -GameExeName %1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# unzip-enc.py | |
import os, sys, argparse, locale, zipfile, codecs | |
from charamel import Detector | |
def setup_console(sys_enc="utf-8"): | |
try: | |
if sys.version_info >= (3, 4): |
OlderNewer