Skip to content

Instantly share code, notes, and snippets.

View stevemk14ebr's full-sized avatar
:octocat:
Reversing Life

Stephen Eckels stevemk14ebr

:octocat:
Reversing Life
View GitHub Profile
@stevemk14ebr
stevemk14ebr / emojis.json
Last active December 18, 2017 05:12 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw
https://www.unknowncheats.me/forum/c-and-c-/307336-compile-time-pattern.html
#include <type_traits>
#include <algorithm>
#include <cstdint>
constexpr std::uint8_t parse_hex(char c) {
if (c >= '0' && c <= '9') return c - '0';
if ((c | 32) >= 'a' && (c | 32) <= 'f') return (c | 32) - 'a' + 10;
if (c == '?') return 0;
By maamountki
#include <Windows.h>
#include <DbgHelp.h>
#include <stdio.h>
#pragma comment(lib, "dbghelp.lib")
BOOL CALLBACK EnumProc(SYMBOL_INFO* info, ULONG size, void* param)
{
@stevemk14ebr
stevemk14ebr / bulk_import.py
Created December 21, 2019 16:32
Bulk create movie folder for radarr import from txt file. Mask bad characters
import sys
import os
with open(sys.argv[1]) as f:
lines = f.readlines()
for line in lines:
stripped = line.strip()
fixed = stripped.replace(',', "").replace(':','').replace(' - ', ' ').replace('-',' ').replace('.','').replace('&','and').replace('\'','').replace('!','')
folder = os.path.join(sys.argv[2], fixed)
@stevemk14ebr
stevemk14ebr / hexdump.cpp
Last active April 12, 2020 20:04 — forked from shreyasbharath/hexdump.cpp
Hexdump - C++ version of XXD style hexdump (based on this StackOverflow answer https://stackoverflow.com/a/7776146/801008)
#include <iomanip>
#include <iostream>
#include <vector>
#include <termcolor.hpp>
void hexDump(const std::vector<uint8_t>& bytes, std::ostream& stream)
{
char buff[17];
size_t i = 0;
# Windows powerline fonts install (OR https://github.com/microsoft/cascadia-code/releases?WT.mc_id=-blog-scottha <<- PREFER THIS)
git clone https://github.com/powerline/fonts.git
cd fonts
Set-ExecutionPolicy Bypass
./install.ps1
Set-ExecutionPolicy Default
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# make a key
gpg --full-generate-key
# make it > 4096
gpg --list-secret-keys --keyid-format LONG
# key id is numbers on asc line after /
gpg --armor --export <key id>
# add to github
git config --global user.signingkey <key id>
// https://www.reddit.com/r/programming/comments/gnazif/ray_tracing_in_notepadexe_at_30_fps/
static void nlog(char *str, ...)
{
HWND notepad, edit;
va_list ap;
char buf[256];
va_start(ap, str);
vsprintf(buf, str, ap);
va_end(ap);
//Thanks @_can1357 for help with this.
#include <type_traits>
#include <tuple>
#include <utility>
template<typename T, typename = void>
struct callback_type { using type = T; };
template<typename T>
@stevemk14ebr
stevemk14ebr / RTTI
Created September 24, 2020 14:59
RTTI Class layout + Reclass.Net save
// Created with ReClass.NET 1.2 by KN4CK3R
class VFunc_Min8 // this is found at first virtual function - sizeof(void*)
{
public:
class RTTICompleteObjectLocator *m_RTTICompleteObjectLocator; //0x0000
}; //Size: 0x0004
class RTTICompleteObjectLocator
{