Skip to content

Instantly share code, notes, and snippets.

View h4xrOx's full-sized avatar
💬
h4xr0x.cc#1337

h4xr0x#1337 h4xrOx

💬
h4xr0x.cc#1337
View GitHub Profile
@h4xrOx
h4xrOx / injector.cpp
Created August 27, 2022 10:40
LoadLibraryA (LLA) injector (supports csgo)
#include "injector.h"
#include <TlHelp32.h>
#include <stdio.h>
#define INJECTOR_FAIL(s) { printf(s " Error code: %d\n", GetLastError( ) ); return false; }
namespace injector {
namespace detail {
@h4xrOx
h4xrOx / idadefs.h
Created August 27, 2022 10:37 — forked from es3n1n/idadefs.h
latest definitions for hexrays decompiler output
/*
This file contains definitions used in the Hex-Rays decompiler output.
It has type definitions and convenience macros to make the
output more readable.
Copyright (c) 2007-2022 Hex-Rays
*/
@h4xrOx
h4xrOx / e_cvar_flags.cpp
Created August 27, 2022 10:36 — forked from es3n1n/e_cvar_flags.cpp
csgo convar flags
#include <cstdint>
enum e_cvar_flags : uint32_t {
none = 0,
unregistered = (1<<0), // If this is set, don't add to linked list, etc.
developmentonly = (1<<1), // Hidden in released products. Flag is removed automatically if ALLOW_DEVELOPMENT_CVARS is defined.
gamedll = (1<<2), // defined by the game DLL
clientdll = (1<<3), // defined by the client DLL
hidden = (1<<4), // Hidden. Doesn't appear in find or auto complete. Like DEVELOPMENTONLY, but can't be compiled out.
priv /* protected */ = (1<<5) , // It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value
@h4xrOx
h4xrOx / azure-pipelines.yml
Created August 27, 2022 10:35
Azure DevOps Pipeline: deploy python3 app to remote server and launch it via pm2
# variables:
# dest-dir: /home/ubuntu/backend
# dest-server: dev server
# pm2-instance-name: bruh
trigger:
- main
pool:
vmImage: ubuntu-latest
@h4xrOx
h4xrOx / steam_console_params.txt
Created July 28, 2022 06:35 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-disable-breakpad - disables breakpad in crash dumps
import * as fs from 'fs';
import * as astray from 'astray';
import { toMarkdown } from 'mdast-util-to-markdown';
import { fromMarkdown } from 'mdast-util-from-markdown';
/**
* @param {string} file The "*.md" file path.
*/
export async function modify(file) {
let content = await fs.promises.read(file, 'utf8');