Skip to content

Instantly share code, notes, and snippets.

@7etsuo
7etsuo / launch.ps1
Created October 31, 2024 22:41
attaches WinDBG to a process, sets breakpoints etc.
<#
.SYNOPSIS
A PowerShell script to attach a debugger to a running process or a service.
.DESCRIPTION
This script allows you to attach a debugger (WinDBG) to a running process or a service, with optional commands executed at the start of the debugging session.
It can also start an executable specified by a file path and attach the debugger to it.
.PARAMETER service_name
The name of the service to restart and attach the debugger to (optional).
@7etsuo
7etsuo / socket_cheatsheet.txt
Created November 10, 2024 10:07
socket cheatsheet
. .
|\/\/|
|____|
.-----------. .-----------. .------. .-----.
/ \.-------./ \.-------*-. | | |----------.
@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
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 / 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 ]=--!
!--------------------------------------------------------------------------!
@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>
#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
/** 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>
@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
@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