Skip to content

Instantly share code, notes, and snippets.

View ExtReMLapin's full-sized avatar
🗺️
Hic sunt dracones

ExtReMLapin

🗺️
Hic sunt dracones
  • Alphabet boys
  • Stacking up at your door
View GitHub Profile
local namedEmojisTable = {["man in business suit levitating"] = "🕴",["alien"] = "👾",["rosette"] = "🏵",["circus tent"] = "🎪",["performing arts"] = "🎭",["artist palette"] = "🎨",["slot machine"] = "🎰",["rowboat"] = "🚣",["bath"] = "🛀",["direct hit"] = "🎯",["military medal"] = "🎖",["reminder ribbon"] = "🎗",["admission tickets"] = "🎟",["ticket"] = "🎫",["soccer ball"] = "⚽",["baseball"] = "⚾",["basketball and hoop"] = "🏀",["american football"] = "🏈",["rugby football"] = "🏉",["tennis racquet and ball"] = "🎾",["billiards"] = "🎱",["bowling"] = "🎳",["flag in hole"] = "⛳",["golfer"] = "🏌",["ice skate"] = "⛸",["fishing pole and fish"] = "🎣",["ski and ski boot"] = "🎿",["skier"] = "⛷",["snowboarder"] = "🏂",["surfer"] = "🏄",["horse racing"] = "🏇",["swimmer"] = "🏊",["weight lifter"] = "🏋",["bicyclist"] = "🚴",["mountain bicyclist"] = "🚵",["sports medal"] = "🏅",["trophy"] = "🏆",["cricket bat and ball"] = "🏏",["volleyball"] = "🏐",["field hockey stick and ball"] = "🏑",["ice hockey stick and puck"] = "🏒",["table tennis paddle and
@ExtReMLapin
ExtReMLapin / mordhau_facebone_lister.lua
Created September 14, 2020 11:50
tool used to find names of the mordhau faces bones
local gameinipath = "C:/Users/pierr/AppData/Local/Mordhau/Saved/Config/WindowsClient/Game.ini"
local BONE_LIP_INNER = 1
local BONE_LIP_INNER_EXT = 2
local BONE_MAXILIA = 3
local BONE_WHOLE_EYEBROW_1 = 4
local BONE_UNKNOWN_05 = 5
local BONE_WHOLE_EYEBROW_2 = 6
local BONE_EYE_1 = 7
local BONE_UNKNOWN_08 = 8
@ExtReMLapin
ExtReMLapin / qtpngextract.lua
Created September 19, 2020 20:11
extract png from Qt exes (or any other one)
local pnghead = "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00"
local pngend = "\x49\x45\x4e\x44\xae\x42\x60\x82"
local file = io.open("exe.exe", "rb")
local filedata = file:read("*all")
file:close()
local specialInstruction = {
["."] = "w(data[i])",
[","] = "data[i]=r()",
["["] = "while data[i]~=0 do ",
["]"] = "end "
}
local artithmeticsIns = {
["+"] = "data[i] = data[i]+",
["-"] = "data[i] = data[i]-",
assert(#arg == 2)
local source
local dest
local f1 = assert(io.open(arg[1], "rb"), "cannot open " .. arg[1])
source = f1:read("*all")
f1:close()
local f2 = assert(io.open(arg[2], "rb"), "cannot open " .. arg[2])
dest = f2:read("*all")
f2:close()
assert(#source == #dest)
--%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{{{1
--
-- File Name: bignum.lua
-- Package Name: BigNum
--
-- Project: Big Numbers library for Lua
-- Mantainers: fmp - Frederico Macedo Pessoa
-- msm - Marco Serpa Molinaro
--
-- History:
http://liveupdate.msi.com/autobios/DataBase/Config/DefList.rec
http://liveupdate.msi.com/autobios/DataBase/Config/LU_LMU.xml
http://liveupdate.msi.com/autobios/DataBase/Config/BIOSListSP.rec
http://liveupdate.msi.com/autobios/DataBase/Config/VerList.rec
http://liveupdate.msi.com/autobios/DataBase/Config/VBList_N.rec
http://liveupdate.msi.com/autobios/DataBase/BIOSList.xml
http://liveupdate.msi.com/autobios/DataBase/LU5/VBList.xml
http://liveupdate.msi.com/autobios/DataBase/Config/LU_LOU.xml
local speed = 3
local speedVertical = 1
local MoveAmountHorizontal = 102 / speed
local MoveAmountVertical = 25 / speedVertical
local ft = true
local delay = 50
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if (event == "MOUSE_BUTTON_RELEASED") then
#wrap your .js code inside a function and run this, it's ghetto, it's slow, I couldn't care less
import re
import subprocess
failed = 0
success = 0
input = "_via.js"
with open(input, "r") as f: