Skip to content

Instantly share code, notes, and snippets.

View NotAdam's full-sized avatar
👌
nice

Adam NotAdam

👌
nice
  • Australia
View GitHub Profile
@NotAdam
NotAdam / iltestplugin.msil
Last active January 16, 2021 12:34
An example dalamud plugin made using MSIL
.module ILTestPlugin.dll
.corflags 1 // ILOnly
// deps
.assembly extern mscorlib
{
.ver 2:0:0:0
}
using System;
using System.Reflection;
using System.Reflection.Emit;
namespace ResourceReplace.Extensions
{
public static class FuckedExtensions
{
private delegate ref TFieldType RefGet< in TObject, TFieldType >( TObject obj );
@NotAdam
NotAdam / servicenow-dark.css
Created May 28, 2020 14:49
servicenow dark theme (heisenberg release)
.sn-frameset-header,
body,
table,
.navbar-default,
HTML[data-doctype="true"] BODY.non_standard_lists {
background: #0a0a0a;
}
HTML[data-doctype="true"] .veditor_body table.sc_editor,
.veditor_body .sc_editor .m2m_filter_container table,
typedef ubyte uint8_t;
typedef byte int8_t;
typedef ushort uint16_t;
typedef short int16_t;
typedef uint uint32_t;
typedef int int32_t;
typedef uint64 uint64_t;
typedef int64 int64_t;
struct ReplayHeader
#include <cereal/cereal.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/types/base_class.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/vector.hpp>
#include <string>
#include <vector>
#include <memory>
#include <iostream>
@NotAdam
NotAdam / anus.cs
Created December 25, 2019 09:07
parse yotpo review garbage
public class ReviewInfo
{
public ReviewInfo()
{
Questions = new Dictionary<string, string>();
}
public string Name { get; set; }
public string Date { get; set; }
public int Stars { get; set; }
@NotAdam
NotAdam / schema-diff.py
Created December 24, 2019 02:48
early version of ffxiv opcode fixerererer
import json
import sys
import requests
import CppHeaderParser
#### config/settings/garbage
fucked_distance = 0xffffffff
max_size_diff = 10
class Sheet
{
public:
virtual void Unknown01();
virtual void Unknown02();
virtual void Unknown03();
virtual void Unknown04();
virtual void Unknown05();
virtual void Unknown06();
virtual void Unknown07();
-- init global variable
g_dump = io.open(os.date("dump_%Y-%m-%d-%H-%M-%S.txt"), "a")
g_dump:write("ptr, name\n")
g_count = 0
-- relative virtual address(rva) to register_whatever function
-- this assume ffxiv sb benchmark
-- YOU MUST EDIT THIS TO RIGHT VALUE TO WORK
-- check http://imgur.com/a/nJCef for disasm
g_addr = {}
import idaapi
from idaapi import PluginForm
from PyQt5 import QtCore, QtGui
done_funcs = {}
data = []
def get_args(xref, needle):
cf = GetFunctionName(xref.frm)