Skip to content

Instantly share code, notes, and snippets.

View fakuivan's full-sized avatar

fakuivan

  • Posadas, Misiones, Argentina
  • 04:10 (UTC -03:00)
View GitHub Profile
@fakuivan
fakuivan / command_extract_rip_relative_address.lua
Created January 11, 2019 03:35
Cheat engine lua script that creates an auto assembler command used to extract and make absolute a RIP-relative address in an instruction
-------------------------
-- Reads a RIP-relative address from an instruction
-- All parameters should be integers
function extractRIPRelativeAddress(address, offset, offset_size)
address = getAddressSafe(address)
if address == nil then return nil end
local instruction_size = getInstructionSize(address)
if instruction_size == nil then return nil end
readOffset = ({
[1] = function(address_) return readBytes(address_, 1, false) end,
@fakuivan
fakuivan / dishonored2_cvars.txt
Last active October 7, 2023 22:39
All cvars for Dishonored 2 as of version ``1.77.9.0``, in the format: <cvar struct address> | <cvar name> = <cvar default value> | <cvar int value address> -> <current int value>\n<cvar description>
Dishonored2.exe+3BFC7F0 | aas_subdivisionSize = 64 | Dishonored2.exe+3BFC818 -> 64
the size of subdivisions to use for debug drawing
Dishonored2.exe+340CC20 | achievements_Verbose = 0 | Dishonored2.exe+340CC48 -> 0
debug spam for achievements
Dishonored2.exe+3BFA570 | ai_debugCam = 0 | Dishonored2.exe+3BFA598 -> 0
enable debug camera
Dishonored2.exe+3BFA470 | ai_debugScript = -1 | Dishonored2.exe+3BFA498 -> 4294967295
diff --git a/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h b/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h
index bc8e206..b44950a 100644
--- a/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h
+++ b/Cameras/Dishonored2/InjectableGenericCameraSystem/GameConstants.h
@@ -30,8 +30,8 @@
namespace IGCS::GameSpecific
{
// Mandatory constants to define for a game
- #define GAME_NAME "Dishonored 2, v1.77+"
- #define CAMERA_VERSION "1.0.0"
@fakuivan
fakuivan / engineer.md
Last active September 29, 2019 20:35
HP Prime CAS "programs" I made to solve multivariable calculus, statistics and physics 2 exercises

engineer.exe

These are scripts I use to serialize some of the practice exercises we get on multivariable calculus, statistics and physics 2 class, they are not meant to be easy to understand or a tutorial on how to write CAS programs on the HP Prime graphing calculator but rather a set of solutions I was able to come up with, for some a valuable resource nonetheless.

Calculus 2

Multivariable Taylor series

@fakuivan
fakuivan / atletas.py
Last active August 24, 2020 13:22
Ejemplos info
#!/usr/bin/env python3
# Un Entrenador, quiere almacenar los tiempos de una carrera de 100 metros de 5 atletas.
# Cada Atleta realiza 5 pruebas de las cuales se registran los tiempos.
# Se propone crear un diccionario que como claves tengan los nombres de los atletas y cargar
# como valores del diccionario una lista con los tiempos de cada uno.
# Se deberá presentar el siguiente menú.
@fakuivan
fakuivan / dishonored2_internal-swap-licenses.ct
Last active August 1, 2019 20:09
Swaps licenses for the dev version of dishonored 2
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="27">
<CheatEntries>
<CheatEntry>
<ID>53</ID>
<Description>"Havok license bypasses"</Description>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
#!/usr/bin/env bash
# Returns an eval-safe representation of the bash function that when evaluated prints its name,
# useful when redefining functions
function_copy_rnd () {
local rand_prefix="$(head /dev/urandom | tr -dc A-Za-z | head -c 8)_"
local name="$1"
local decl;
decl="$(declare -f "$name")" || return $?
echo "${rand_prefix}${decl}; echo $(printf "%q" "${rand_prefix}${name}")"
@fakuivan
fakuivan / example.py
Last active October 11, 2019 00:51
Simple CSV parser function and example plotter program compatible with _some_ RIGOL oscilloscopes
#!/usr/bin/env python3
from oscilloscope import parse_csv_export, ParsedCSV
import argparse
from io import TextIOWrapper
import matplotlib.pyplot as plt
def main():
parser = argparse.ArgumentParser(description="Example plotter")
parser.add_argument("infile", type=argparse.FileType('r'))
@fakuivan
fakuivan / apply_zt_rules.sh
Created February 11, 2020 06:40
jq based bash script used to configure zerotier's rule engine via the controller API
#!/usr/bin/env bash
run_on_ztncui () {
(source ~/containers/ztncui.sh && ztncui-compose exec -T ztncui bash -c "$1"); return $?
}
NETWORKS="$(run_on_ztncui 'curl -s -X GET --header "X-ZT1-Auth: $ZT_TOKEN" "$ZT_ADDR"/controller/network')"
for rules_file in ./rules/*.ztrules; do
nwid="$(python3 -c "import pathlib, sys; print(pathlib.Path(sys.argv[1]).stem)" "$rules_file")" &&
@fakuivan
fakuivan / create_sidepanel_folder.bat
Created March 7, 2020 15:57
Creates a side panel entry for windows explorer
@echo off
:: GUIDs were randomly generated using the command ``python3 -c "import uuid; print(str(uuid.uuid4()).upper())"``
set guid=C3AA96DB-679A-4D75-B53F-F9EBDFEBE6C3
set name=Seafile
set folder=%%userprofile%%\Seafile
set icon=%%programfiles(x86)%%\Seafile\bin\seafile-applet.exe,-2
:: set guid=92EB2F95-3564-4430-8022-4CAF93AB8D96
:: set name=Sync
:: set folder=%%userprofile%%\Sync