Skip to content

Instantly share code, notes, and snippets.

View rad9800's full-sized avatar
💭
I may be slow to respond.

rad9800

💭
I may be slow to respond.
View GitHub Profile
@rad9800
rad9800 / apihash.c
Last active October 4, 2023 00:47
Using macros and constexpr to make API hashing a bit more friendly
#include <Windows.h>
#include <winternl.h>
#pragma comment(linker, "/ENTRY:entry")
// Define hashing algorithm to use
#define HASHALGO HashStringDjb2
// Define how large you'd like cache to be
#define CACHE 50
@rad9800
rad9800 / create_iso.cpp
Created July 1, 2022 17:00 — forked from daaximus/create_iso.cpp
create iso using imapi
#include <string>
#include <atlbase.h>
#include <imapi2fs.h>
void create_iso( std::wstring_view src, std::wstring_view iso_path )
{
HRESULT hr;
IFileSystemImage* fsimg;
IFsiDirectoryItem* fsdir;
IFileSystemImageResult* fsresult;
We can't make this file beautiful and searchable because it's too large.
.dll names start with #,Hash,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
API Name ,0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8 ,0x9,0xA,0xB,0xC,0xD,0xE,0xF,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1f,
#advapi32.dll,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
A_SHAFinal, 0x00000366, 0xcd8000cd, 0x207b408d, 0x1176ff9a, 0x94da5e05, 0xe55e8219, 0x201a8b76, 0xf5e52c56, 0xe3b6bd11, 0xf1c52e36, 0xaab636d1, 0xb31a99ba, 0xe26ba2e1, 0xb52e8e6d, 0xe027ce65, 0xb7aa7784, 0x019f01c7, 0x5f406f0d, 0x6af8f60f, 0x5c9eb472, 0x83806f5f, 0x9b11cc66, 0xcc44df4b, 0xdc4345f8, 0xbcb6e411, 0x4ce2d319, 0x984b493c, 0x869ec636, 0x7c5d08f0, 0x72a5d0f6, 0x017dad10,
@rad9800
rad9800 / prime_web_docker-compose.yml
Created December 4, 2025 14:59
Configuration backup
version: '3.8'
services:
app:
image: myapp:latest
environment:
- AWS_ACCESS_KEY_ID=AKIAZ7TPJ5SGJBBJQW4H
- AWS_SECRET_ACCESS_KEY=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
- AWS_REGION=us-east-1
ports:
- "8080:8080"
@rad9800
rad9800 / valley_services_Jenkinsfile
Created December 4, 2025 14:59
Configuration backup
pipeline {
agent any
environment {
AWS_ACCESS_KEY_ID = 'AKIAYPXLJTUOYPOCTEVG'
AWS_SECRET_ACCESS_KEY = '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'
AWS_DEFAULT_REGION = 'us-east-1'
}
stages {
@rad9800
rad9800 / southern_data_settings.yaml
Created December 4, 2025 14:59
Configuration backup
# Application Configuration
app:
name: myapp
environment: production
aws:
access_key_id: AKIASVWYCWUU2J72M2ZU
secret_access_key: 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
region: us-east-1
@rad9800
rad9800 / central_staging_playbook.yml
Created December 4, 2025 14:59
Configuration backup
---
- name: Deploy application to AWS
hosts: localhost
vars:
aws_access_key: AKIATPCB5LAHF3OQQICM
aws_secret_key: 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
aws_region: us-east-1
tasks:
- name: Upload files to S3
@rad9800
rad9800 / southern_infra_aws-setup.sh
Created December 4, 2025 14:59
Configuration backup
#!/bin/bash
set -e
# AWS Configuration
export AWS_ACCESS_KEY_ID="AKIAY7JFSFF4UMCXG7J7"
export AWS_SECRET_ACCESS_KEY="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"
export AWS_DEFAULT_REGION="us-east-1"
echo "Configuring AWS CLI..."
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
@rad9800
rad9800 / piedpiper_ml_docker-compose.yml
Created December 4, 2025 14:59
Configuration backup
version: '3.8'
services:
app:
image: myapp:latest
environment:
- AWS_ACCESS_KEY_ID=AKIA6NENJSG5P3YWJQWC
- AWS_SECRET_ACCESS_KEY=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
- AWS_REGION=us-east-1
ports:
- "8080:8080"
@rad9800
rad9800 / central_ops_aws-config.xml
Created December 4, 2025 14:59
Configuration backup
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<aws>
<accessKeyId>AKIAYUHMFEACCH6CBUH3</accessKeyId>
<secretAccessKey>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</secretAccessKey>
<region>us-east-1</region>
</aws>
<database>
<host>localhost</host>
<port>5432</port>