Skip to content

Instantly share code, notes, and snippets.

View veeenu's full-sized avatar

Andrea Venuta veeenu

View GitHub Profile
@veeenu
veeenu / RBO.md
Created March 5, 2023 09:32
Dark Souls III Reverse Boss Order

Start

  • Assassin Sovereignless Soul
  • Camera 8 Mouse Sens 0
  • Switch Spells -> N
  • Attack (Left) -> B
  • Strong attack (Left) -> M
  • Pre-press B, press BNM at the same time

Iudex

// For 1.27.02
state("nioh2") {
int on_worldmap: 0x27E0F84;
int in_mission: 0x2B04060;
}
isLoading {
return (current.on_worldmap == 0) && (current.in_mission == 0);
}
<?php
$dati = [
[
'name' => 'Tizio',
'id' => 1,
'parent' => null
],
[
'name' => 'Caio',
'id' => 2,
@veeenu
veeenu / perf_timer.py
Created September 6, 2019 07:50
Python simple performance timer
from time import perf_counter
class PerfTimer:
def __init__(self):
self.entries = []
self.last = None
def section(self, name):
clk = self.stop()
self.last = (name, clk)
@veeenu
veeenu / vtable_lookup.cpp
Created August 19, 2019 18:19
DXGI vtable lookup
LPVOID swapchain_present_vtable_lookup() {
// Credits: https://www.unknowncheats.me/forum/d3d-tutorials-and-source/88369-universal-d3d11-hook.html
D3D_FEATURE_LEVEL featureLevel = D3D_FEATURE_LEVEL_11_0;
ID3D11Device *pDevice = nullptr;
ID3D11DeviceContext *pContext = nullptr;
IDXGISwapChain* pSwapChain = nullptr;
DXGI_SWAP_CHAIN_DESC swapChainDesc;
ZeroMemory(&swapChainDesc, sizeof(swapChainDesc));
swapChainDesc.BufferCount = 1;
@veeenu
veeenu / iv_shadow.ipynb
Created July 24, 2019 12:47
Lucky trading shadow Pokémon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@veeenu
veeenu / csv_reader_test.py
Last active October 24, 2018 10:04
Pandas `read_csv` C engine exception
import pandas as pd
pd.read_csv('ok.csv', header=[0, 1], index_col=0)
pd.read_csv('not_ok.csv', header=[0, 1], index_col=0)
import sys
import time
import tqdm
import cbpro
import pandas as pd
if __name__ == '__main__':
if len(sys.argv) < 3:
print(f'Usage: {sys.argv[0]} start_date end_date')
exit()
@veeenu
veeenu / risen.asl
Created January 21, 2018 22:49
Risen LiveSplit IGT plugin
state("Risen") {
float igt : "Game.dll", 0x00FA63A0, 0x48, 0x24
}
init {
vars.igt = 0.0f;
}
startup {
}
@veeenu
veeenu / gdax-watcher-console.py
Last active December 7, 2017 19:35
Watch GDAX BTC/EUR price and notify if above or below a threshold
import time
import requests
import win10toast
import threading
import datetime
from colorama import *
class GdaxWatcher:
def __init__(self, notifBelow, notifAbove):
self.toaster = win10toast.ToastNotifier()