Skip to content

Instantly share code, notes, and snippets.

View FransBouma's full-sized avatar

Frans Bouma FransBouma

View GitHub Profile
@FransBouma
FransBouma / gist:eeb7f7ac5f86ac03ed27e54995d47fbb
Created August 22, 2018 11:20
EF Core / LLBLGen Pro insert batching tests on postgresql (sequenced field + normal field)
Batchsize: 0
Batch size: 0, runs: 10: EF Core: 77,44ms (3,74). LLBLGen Pro: 479,17ms (13,55)
Batchsize: 10
Batch size: 10, runs: 10: EF Core: 103,15ms (1,63). LLBLGen Pro: 93,56ms (3,54)
Batchsize: 20
Batch size: 20, runs: 10: EF Core: 91,07ms (0,87). LLBLGen Pro: 77,89ms (0,66)
Batchsize: 30
Batch size: 30, runs: 10: EF Core: 87,11ms (0,89). LLBLGen Pro: 73,91ms (0,88)
Batchsize: 40
Batch size: 40, runs: 10: EF Core: 86,49ms (5,31). LLBLGen Pro: 89,78ms (47,44)
@FransBouma
FransBouma / homefront2_release.CT
Last active April 29, 2018 20:18
Homefront:The Revolution Cheat table. Currently: FOV (PgUp/PgDn). CT also contains notes / addresses on player struct for XYZ position. For the person who wants to create a noclip cheat :)
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="21">
<CheatEntries>
<CheatEntry>
<ID>609</ID>
<Description>"camera coord 1"</Description>
<LastState Value="627.9749756" RealAddress="1625AC43C"/>
<VariableType>Float</VariableType>
<Address>1625AC43C</Address>
<Hotkeys>
@FransBouma
FransBouma / Howtouse.md
Created April 21, 2018 19:34
Ansel Everywhere cheat table for Mass Effect Andromeda.

How to use

  • start game
  • start cheat engine
  • load cheat table
  • load level
  • enable the 2 entries.

Be aware it doesn't work in the cutscene right after loading a level, because ansel then isn't fully initialized. So it might be you run into the situation where you enable ansel in a cutscene and the game hangs. However this is still much more stable than

@FransBouma
FransBouma / FarCry4.CT
Created February 11, 2018 16:29
FC4 cheat table
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
<CheatEntries>
<CheatEntry>
<ID>425</ID>
<Description>"SCREENSHOTTING"</Description>
<LastState Value="" Activated="0" RealAddress="00000000"/>
<Color>0000FF</Color>
<GroupHeader>1</GroupHeader>
<CheatEntries>
@FransBouma
FransBouma / hitman_abs.CT
Created December 21, 2017 08:25
Hitman Absolution CT (Jim2Point0)
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
<CheatEntries>
<CheatEntry>
<ID>10287</ID>
<Description>"Free Camera + FOV [F2]"</Description>
<Options moHideChildren="1"/>
<LastState Activated="0"/>
<Color>000000</Color>
<VariableType>Auto Assembler Script</VariableType>
@FransBouma
FransBouma / StringBuilderCache.cs
Created December 4, 2017 15:00
Adjusted StringBuilderCache, which caches 4 string builders at once
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*============================================================
**
** Class: StringBuilderCache
**
** Purpose: provide a cached reusable instance of stringbuilder
@FransBouma
FransBouma / TestClass.cs
Last active August 15, 2017 14:56
NUnit v3+ Trace output to active test redirect for .NET core and .NET full
[TestFixture]
public class MyTests()
{
[OneTimeSetUp]
public void Init()
{
#if NETCOREAPP2_0
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
#else
Trace.Listeners.Add(new ConsoleTraceListener());
@FransBouma
FransBouma / address.txt
Last active August 9, 2017 20:18
Hellblade: Senua's Sacrifice WIP
// Camera x/y/z/rotation writes: Disable to unlock free movement. Central copy constructor of UE camera manager.
// Used in-game and in photomode
// UE uses angles for rotation. In UE3 it uses packed 16 bit ints, in UE4 it uses floats, in degrees (0-360.0)
HellbladeGame-Win64-Shipping.exe+1940B77 - F2 0F11 87 80040000 - movsd [rdi+00000480],xmm0 // Write X & Y
HellbladeGame-Win64-Shipping.exe+1940B7F - F2 0F10 44 24 5C - movsd xmm0,[rsp+5C]
HellbladeGame-Win64-Shipping.exe+1940B85 - F2 0F11 87 8C040000 - movsd [rdi+0000048C],xmm0 // Write Rotation around X/ around Z
HellbladeGame-Win64-Shipping.exe+1940B8D - 0F10 44 24 68 - movups xmm0,[rsp+68]
HellbladeGame-Win64-Shipping.exe+1940B92 - 89 87 88040000 - mov [rdi+00000488],eax // Write Z (UP)
HellbladeGame-Win64-Shipping.exe+1940B98 - 8B 44 24 64 - mov eax,[rsp+64]
HellbladeGame-Win64-Shipping.exe+1940B9C - 89 87 94040000 - mov [rdi+00000494],eax // Write Rotation around Y (into the screen)
@FransBouma
FransBouma / Main.ini
Created June 29, 2017 20:11
Reshade 3 settings
KeyDeband=0,0,0,0
KeyGP65CJ042DOF=0,0,0,0
TechniqueSorting=Deband,DisplayDepth,RingDOF,MagicDOF,GP65CJ042DOF,MatsoDOF,MartyMcFlyDOF
KeyDisplayDepth=0,0,0,0
KeyRingDOF=0,0,0,0
KeyMagicDOF=0,0,0,0
KeyMartyMcFlyDOF=119,0,0,0
KeyMatsoDOF=0,0,0,0
Techniques=MartyMcFlyDOF
<?xml version="1.0" encoding="utf-8"?>
<!--LLBLGen Pro v5.2 project file. Do not manually edit this file. Incorrect references could lead to an unloadable project file.-->
<Project Version="5.2" TargetFrameworkName="LLBLGen Pro Runtime Framework" UseLegacyDefaults="false">
<Properties>
<Abbreviations />
<Property Name="AdditionalTaskPerformerFolder" Value="" />
<Property Name="AdditionalTasksFolder" Value="" />
<Property Name="AdditionalTemplatesFolder" Value="" />
<Property Name="AdditionalTypeConverterFolder" Value="" />
<Property Name="AddNewElementsAfterRefresh_v5" Value="false" />