Skip to content

Instantly share code, notes, and snippets.

@7etsuo
7etsuo / r0.c
Created April 22, 2025 09:39
r0
This file has been truncated, but you can view the full file.
union _LARGE_INTEGER{
DWORD LowPart;
LONG HighPart;
struct _LARGE_INTEGER__$837407842DC9087486FDFA5FEB63B74E{
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
}
struct _WMI_FLTIO_NOTIFY_ROUTINES{ TimeStampRoutine* TimeStampRoutine; FailureNotifyRoutine* FailureNotifyRoutine; InitiationNotifyRoutine* InitiationNotifyRoutine; CompletionNotifyRoutine* CompletionNotifyRoutine; FastCompletionNotifyRoutine* FastCompletionNotifyRoutine; IoRedirectionNotifyRoutine* IoRedirectionNotifyRoutine; }
@7etsuo
7etsuo / description.md
Created April 17, 2025 21:58
database schema

Meme Database Schema

1. Users Table

Table Name: users
Primary Key: id
Description: This table stores user information, including their username, email, avatar URL, and various metrics related to their meme activity.
Relationships:

  • One-to-Many with Memes: Each user can create multiple memes. This is represented by the user_id foreign key in the memes table.

2. Memes Table

@7etsuo
7etsuo / tetsol.md
Created April 6, 2025 01:23
tetsol.md

Development Roadmap for a Cross-Platform Solana AR Treasure Hunt Game

Phase 1: MVP – Core AR Treasure Hunt with Wallet & NFT Rewards

Core Goals: Build a minimal viable product where users can log in with a Solana wallet, navigate to real-world locations, view "treasure" in AR, and receive an NFT reward for discovery. This phase focuses on core functionality and cross-platform deployment (iOS & Android) with minimal custom infrastructure.

  • Mobile App & AR: Use Unity with AR Foundation to develop the app once and deploy on both iOS (ARKit) and Android (ARCore). Unity's AR Foundation provides a cross-platform AR framework so the same C# code works for both ARKit and ARCore. This greatly simplifies development and ensures feature parity. Leverage device GPS/location services in Unity to tie AR content to real-world locations (e.g. spawn a treasure chest when the user is within a certain radius). Optionally, integrate ARCore Geospatial API (via AR Foundation's ARCore Extensions) to
@7etsuo
7etsuo / simd.c
Created March 26, 2025 02:40
simd.c
#include <stdio.h>
#include <stdlib.h>
#include <emmintrin.h>
#if defined(__SSE3__)
#include <pmmintrin.h> // SSE3 intrinsics for _mm_hadd_pd
#endif
#include <math.h>
// Horizontal sum for a __m128d vector.
// If SSE3 is available, use _mm_hadd_pd; otherwise, use a shuffle-and-add
/** x.com/7etsuo
*
* compile with gcc -o pre_process hotdog_preprocessor.c -lgd -lm
* usage: ./pre_process dataset/train/hotdog/ dataset/train/nothotdog/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libxml/HTMLparser.h>
#include <libxml/xpath.h>
#include <libxml/uri.h>
// Initial hash table size (prime number for better distribution)
#define INITIAL_HASH_SIZE 101
#define MAX_LOAD_FACTOR 0.75
@7etsuo
7etsuo / fred.c
Created March 9, 2025 04:57
fred.c
/** Uncle Fred
* Create an index.html and put in the same dir.
* Compile normally with cc -O2 -o http http.c, run sudo ./http 80, open your brosert and type: http://127.0.0.1/
*/
#include/* micro HTTP server */<stdio.h>
#include/* usage: ./http [port] */<stdlib.h>
#include/* */<string.h>
#include/* the default port is 8080, files are */<unistd.h>
#include/* read from the current directory */<netdb.h>
@7etsuo
7etsuo / gist:60c6acb5739a708c063565f20c25747b
Created March 8, 2025 06:29
Exploitation With WriteProcessMemory
!--------------------------------------------------------------------------!
!-----------=| Exploitation With WriteProcessMemory() |=-----------!
!-----------=| Yet Another DEP Trick |=-----------!
!-----------=| ---- |=-----------!
!-----------=| Written By Spencer Pratt |=-----------!
!-----------=| [email protected] |=-----------!
!--------------------------------------------------------------------------!
!--=[ dd6c2309cab71bdb3aabce69cacb6f5f6c0e2d60bd51d6f629904553a8dc0a7c ]=--!
!--=[ 5db5cef0f8e0a630d986b91815336bc9a81ebe5dbd03f1edaddde77e58eb2dba ]=--!
!--------------------------------------------------------------------------!
Individual C.elegans Neurons by 7etsuo https://worm.tetsuo.ai
This table summarizes detailed properties of each unique neuron in the C. elegans nervous system. Each neuron entry includes its name, functional type (sensory, inter, motor, or pharyngeal), neuron class, neurotransmitter, and spatial coordinates (X, Y, Z).
Additional metadata enriches each entry, providing the neuron's developmental lineage, a concise functional description, and the biological meaning behind its designation.
This structured dataset integrates connectomic and anatomical information, accurate modeling, analysis, and visualization of the worm's neural architecture.
|--------|------------|-------|------------------|--------|--------|--------|-------------------------------------------------------|----------------|----------------------------------------------------------------------------------------------------------------------|
| Neuron | Type | Class | Neurotransmitter | X | Y | Z | Meaning
@7etsuo
7etsuo / Makefile
Created February 8, 2025 01:04
Makefile
CC := gcc
AR := ar
CFLAGS_COMMON := -I./include -Wall -Wextra -Wpedantic -std=c11 -pthread \
-D_GNU_SOURCE -fPIC -fstack-protector-strong \
-fvisibility=hidden -pipe -Wunreachable-code \
-Wno-unused-parameter
SECURITY_FLAGS := -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security \
-Werror=format-security -fstack-clash-protection \
-fcf-protection=full -Wconversion -Wshadow