Skip to content

Instantly share code, notes, and snippets.

View fakuivan's full-sized avatar

fakuivan

  • Posadas, Misiones, Argentina
  • 05:53 (UTC -03:00)
View GitHub Profile
@fakuivan
fakuivan / common.py
Last active May 16, 2020 16:50
Algunas resoluciones para los trabajos prácticos propuestos por la cátedra de la materia "Señales y Sistemas"
#!/usr/bin/env python3.8
from sympy import Basic, Piecewise, Symbol, Eq, Mod, Heaviside, sympify, plot as splot
import numpy
from typing import Hashable, Tuple, Iterable, NamedTuple, Callable, Type
from matplotlib import pyplot as mplot
from sympy.physics.units.definitions import Hz
from sympy.physics.units.quantities import Quantity
from sympy.physics.units.prefixes import kilo
@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
@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 / 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'))
#!/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 / 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>
@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 / engineer.md
Last active March 10, 2025 21:50
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

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 / 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