This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Fragment, FunctionComponent, ReactElement, useCallback } from 'react'; | |
import { IfElse } from './IfElse'; | |
import { IfThen } from './IfThen'; | |
import { IfElseIf } from './IfElseIf'; | |
type CompoundComponent<T, K> = FunctionComponent<T> & K; | |
type IfThenType = typeof IfThen; | |
type IfElseType = typeof IfElse; | |
type IfElseIfType = typeof IfElseIf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { v4 as uuid } from 'uuid'; | |
import { generate } from 'randomstring'; | |
import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; | |
import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb'; | |
import { | |
Schema, | |
Entity, | |
Item, | |
AllTableIndexCompositeAttributes, | |
PutItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Model } from 'sequelize-typescript'; | |
import { MakeNullishOptional } from 'sequelize/types/utils'; | |
import { DestroyOptions, FindOptions, UpdateOptions } from 'sequelize'; | |
export type RepoPrimaryKey = string | number | bigint; | |
export type RepoDelete<TAttributes extends object> = DestroyOptions<TAttributes>; | |
export type RepoUpdate<TAttributes extends object> = UpdateOptions<TAttributes>; | |
export type RepoFetch<TAttributes extends object> = FindOptions<TAttributes>; | |
export type RepoCreate<TAttributes extends object> = MakeNullishOptional<TAttributes>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOOL GetFileBufferInMemory( | |
LPCWSTR lpFileName, | |
LPVOID* pDestBuffer | |
) { | |
HANDLE FileHandle = CreateFileW(lpFileName, GENERIC_READ, NULL, NULL, OPEN_EXISTING, NULL, NULL); | |
if (FileHandle == INVALID_HANDLE_VALUE) { | |
printf_s("CreateFileW failed to retrieve the file handle."); | |
return FALSE; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct BASE_RELOCATION_BLOCK { | |
DWORD PageAddress; | |
DWORD BlockSize; | |
} BASE_RELOCATION_BLOCK, *PBASE_RELOCATION_BLOCK; | |
typedef struct BASE_RELOCATION_ENTRY { | |
USHORT Offset : 12; | |
USHORT Type : 4; | |
} BASE_RELOCATION_ENTRY, * PBASE_RELOCATION_ENTRY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <TlHelp32.h> | |
#include <string> | |
#include <codecvt> | |
#ifndef NT_SUCCESS | |
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0) | |
#endif | |
typedef struct _PROCESS_BASIC_INFORMATION { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#define MAX_MEMORY_RANGE 0x40000000 | |
#define IS_POINTER_BETWEEN(P, MAX, MIN) (((ULONG_PTR)P < (ULONG_PTR)MAX) && ((ULONG_PTR)P > (ULONG_PTR)MIN)) | |
#define PAGE_EXECUTE_FLAGS \ | |
PAGE_EXECUTE | \ | |
PAGE_EXECUTE_READ | \ | |
PAGE_EXECUTE_READWRITE | \ | |
PAGE_EXECUTE_WRITECOPY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__int64 __fastcall sub_1400E4124(int a1, __int64 a2, __int64 a3, unsigned int a4) | |
{ | |
unsigned int v4; // r10d | |
int v5; // ebp | |
int v10; // edx | |
unsigned int v11; // eax | |
unsigned int v12; // r10d | |
int v13; // r14d | |
unsigned int v14; // edi | |
unsigned int v15; // esi |