Skip to content

Instantly share code, notes, and snippets.

View indilo53's full-sized avatar

Jérémie N'gadi indilo53

View GitHub Profile
// https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes
export const VK = {
LBUTTON: 0x01,
RBUTTON: 0x02,
CANCEL: 0x03,
MBUTTON: 0x04,
XBUTTON1: 0x05,
XBUTTON2: 0x06,
DASH: 0xE8,
BACK: 0x08,
// MADE BY Pocakking !
#pragma once
0x846AA8E7D55EE5B6, 0xC7FBCC313D15ACA2 ,
0xD3A58A12C77D9D4B, 0x6B4BAEB95E339452 ,
0x1514FB24C02C2322, 0xE54FC1D4030AE3A0 ,
0x749B023950D2311C, 0x625A28FFB27D94CF ,
0x607E8E3D3E4F9611, 0x20BF5A307DE634EC ,
0x25D7687C68E0DAA4, 0xA59615D83B86AD45 ,
0x3FF2FCEC4B7721B4, 0x2522C3BEBBAFCD58 ,
// Files to parse
"D:/src/llvm-project/clang-tools-extra/altv-capi/cpp-sdk/SDK.h",
"--",
// Includes
//"-Icpp-sdk",
// Defines
"-DUNICODE",
@hasherezade
hasherezade / main.cpp
Last active January 31, 2024 11:56
Get PEB64 from a WOW64 process
#include <Windows.h>
#include <iostream>
#include "ntdll_undoc.h"
PPEB get_default_peb()
{
#if defined(_WIN64)
return (PPEB)__readgsqword(0x60);
#else
@alexguirre
alexguirre / Particles Effects Dump.txt
Last active April 16, 2024 05:45
GTA V Particle Effects Dump
# Thanks to CodeWalker for the code to read .ypt files: https://github.com/dexyfex/CodeWalker
#
# Format:
# [asset_name]
# effect_name_1
# effect_name_2
#
[core]
bul_gravel_heli
@IS4Code
IS4Code / entityiter.lua
Created July 14, 2017 12:47
FiveM entity iterators
--[[The MIT License (MIT)
Copyright (c) 2017 IllidanS4
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
@anhldbk
anhldbk / README.md
Last active March 3, 2024 16:36
TLS client & server in NodeJS

1. Overview

This is an example of using module tls in NodeJS to create a client securely connecting to a TLS server.

It is a modified version from documentation about TLS, in which:

  • The server is a simple echo one. Clients connect to it, get the same thing back if they send anything to the server.
  • The server is a TLS-based server.
  • Clients somehow get the server's public key and use it to work securely with the server

2. Preparation

@mlfarrell
mlfarrell / membuf.cpp
Created May 28, 2016 01:11
C++ streams from memory buffer
struct membuf : std::streambuf
{
membuf(char *begin, char *end) : begin(begin), end(end)
{
this->setg(begin, begin, end);
}
virtual pos_type seekoff(off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which = std::ios_base::in) override
{
if(dir == std::ios_base::cur)
~r~ = Red
~b~ = Blue
~g~ = Green
~y~ = Yellow
~p~ = Purple
~o~ = Orange
~c~ = Grey?
~m~ = Darker Grey
~u~ = Black
~n~ = New Line
@samhocevar
samhocevar / gist:00eec26d9e9988d080ac
Last active January 13, 2024 23:40
Configure sshd on MSYS2 and run it as a Windows service
#!/bin/sh
#
# msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service
#
# Please report issues and/or improvements to Sam Hocevar <sam@hocevar.net>
#
# Prerequisites:
# — MSYS2 itself: http://sourceforge.net/projects/msys2/
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights
#