Skip to content

Instantly share code, notes, and snippets.

@A1-exe
A1-exe / [UPDATED][LATEST] A1_exe's Metatable API.lua
Last active February 12, 2023 11:45
dank metatable memes. An api for hooking (straight up owning) any instance-related thing in the client of that one blocky game.
--[[
Last Updated: 7/21/2021 12:25 AM
Last Change: Updated to include new synapse hookmetamethod
[
- `__len` (# operator) returns raw object from wrapped objects
- #obj returns the unwrapped version of the object
- `__call` returns the __self table
Ex: __self = obj()
import sys
from ctypes import POINTER, py_object, Structure, c_ssize_t, c_void_p, sizeof
from typing import Any, Iterator, Optional, Sequence, Union
__all__ = ("OpStack", )
class Frame(Structure):
_fields_ = (
@dkw72n
dkw72n / genymotion_houdini.md
Created August 23, 2018 06:22
Genymotion Android 7.1 x86 启用 libhoudini

Genymotion Android 7.1 x86 启用 libhoudini

vbox86p:/ # mount -o rw,remount /system

F:\DAMIMI\androidx86>adb push houdini7x.iso /system/etc/

vbox86p:/ # busybox mount /system/etc/houdini7x.iso /system/lib/arm

F:\DAMIMI\androidx86>adb pull /system/build.prop build.prop.gm
@Fingercomp
Fingercomp / pcall-load.md
Created August 7, 2018 12:44
О `pcall` и `load` в Lua

Познакомимся с load. Эта функция берёт первым аргументом строку и компилирует её.

local str = "Тест!"
print(load(str))
--> nil [string "Тест!"]:1: unexpected symbol near '<\208>'

Код выше вернёт странные идеограммы, но если присмотреться, то становится заметно, что именно там происходит.

@bitclaw
bitclaw / webstorm64.vmoptions
Last active March 5, 2023 11:14
Jetbrains Custom VM Options Optimized Configuration: Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
# custom WebStorm VM options, this configuration also works well for other IDEs like phpstorm, pycharm..etc.
-Xms1024m
-Xmx2048m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
@fate0
fate0 / pymarshal.py
Last active July 19, 2024 04:19
onmyoji: test
import types
import cStringIO
TYPE_NULL = '0'
TYPE_NONE = 'N'
TYPE_FALSE = 'F'
TYPE_TRUE = 'T'
TYPE_STOPITER = 'S'
TYPE_ELLIPSIS = '.'
TYPE_INT = 'i'
@P7h
P7h / IntelliJ_IDEA__Perf_Tuning.txt
Last active July 6, 2024 10:42
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1