Skip to content

Instantly share code, notes, and snippets.

View ZaronZ's full-sized avatar
🏠
Working from home

pivasicq ZaronZ

🏠
Working from home
  • Poland
View GitHub Profile
@alfarom256
alfarom256 / SyscallInstrumentation.cpp
Last active April 8, 2024 17:53
A detection mechanism for UM syscall hooking done with InstrumentationCallback functions
#include <Windows.h>
#define OFFSET_InstrumentationCallbackSp 0x2d0
#define OFFSET_InstrumentationCallbackPreviousPc 0x2d8
#define OFFSET_InstrumentationCallbackPreviousSp 0x2e0
#define OFFSET_InstrumentationCallbackDisabled 0x2ec
#define OFFSET_Instrumentation 0x16b8
typedef struct SyscallInstrumentation {
BYTE InstrumentationCallbackDisabled;
@Vestride
Vestride / encoding-video.md
Last active June 5, 2024 14:38
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@mobius
mobius / min_ogl.c
Created March 11, 2012 12:37
minimum file for create a opengl context
/* An example of the minimal Win32 & OpenGL program. It only works in
16 bit color modes or higher (since it doesn't create a
palette). */
#include <windows.h> /* must include this before GL/gl.h */
#include <GL/gl.h> /* OpenGL header file */
#include <GL/glu.h> /* OpenGL utilities header file */
#include <stdio.h>