Skip to content

Instantly share code, notes, and snippets.

@CoolOppo
CoolOppo / UE4-Cheatsheet.md
Created April 5, 2019 21:04
Markdown version of jbtronics' UE4 cheatsheet
// ==UserScript==
// @name Sourceforge Instant Downloader
// @match *://sourceforge.net/*download*
// ==/UserScript==
(function() {
'use strict';
function exec(fn) {
var script = document.createElement('script');
script.setAttribute('type', 'application/javascript');
@CoolOppo
CoolOppo / binpac8x.py
Last active March 7, 2022 06:37
BinPac8x converts a bin file to a file for use on Texas Instruments calculators, such as a '.8xp' file for the TI-83+ and TI-84+. Created by Kerm Martian: http://goo.gl/rmgmze
#!/usr/bin/env python
import sys
import os
import time
import platform
import struct
import math
def disphelp():

The error is caused by an incorrect port being used during setup. Simply use Visual Studio Code, open the folder C:\Program Files\NVIDIA Corporation\NVIDIA GeForce Experience, and do a find and replace (Ctrl+Shift+H), changing LOCALHOST_PORT",3e3 to LOCALHOST_PORT",60487. You'll need to click "retry as admin" to properly save the files. After that it will work.

This program can injects DLL into running processes using thread hijacking. No remote thread is created, only existing thread is used for injection.

 

The injector injects shellcode into the target process, and then a running thread in the target process is hijacked to execute the injected code. The injected code calls the LoadLibrary function to load the DLL.

 

Usage: ZwInjector [PID] [DLL name]

/* nobraces.ci: Python-style indentation for C
By Ben Hoyt, 22 Sep 2007, http://benhoyt.com/
Basically you just write C code, indenting it like you would anyway,
but use colons after control flow statements like in Python. Oh, and
leave off all those nasty end-of-line semicolons.
Okay, so it's a joke. Mostly. :-) Inspired by the Python parallel,
Tim Hatch's "pybraces" (C-style braces in Python):
http://timhatch.com/projects/pybraces/
@CoolOppo
CoolOppo / LeftClick.md
Created May 6, 2014 00:09
SendInput left click function for C++
#include <windows.h>

void LeftClick ( )
{  
  INPUT    Input={0};
  // left down 
  Input.type      = INPUT_MOUSE;
  Input.mi.dwFlags  = MOUSEEVENTF_LEFTDOWN;
 ::SendInput(1,&amp;Input,sizeof(INPUT));
@CoolOppo
CoolOppo / Pointers.md
Last active December 8, 2020 11:34
An excellent guide on pointers, converted from HTML to Markdown

[Source][1]

Pointers

In earlier chapters, variables have been explained as locations in the computer's memory which can be accessed by their identifier (their name). This way, the program does not need to care about the physical address of the data in memory; it simply uses the identifier whenever it needs to refer to the variable. For a C++ program, the memory of a computer is like a succession of memory cells, each one byte in size, and each with a unique address. These single-byte memory cells are ordered in a way that allows data representations larger than one byte to occupy memory cells that have consecutive addresses. This way, each cell can be easily located in the memory by means of its unique address. For example, the memory cell with the address 1776 always follows immediately after the cell with address 1775 and precedes the one with 1777, and is exactly one thousand cells after 776 and exactly one thousand cells before 2776. When a variable is declared, the memory needed

  • ASSOC Displays or modifies file extension associations.
  • ATTRIB Displays or changes file attributes.
  • BREAK Sets or clears extended CTRL+C checking.
  • BCDEDIT Sets properties in boot database to control boot loading.
  • CACLS Displays or modifies access control lists (ACLs) of files.
  • CALL Calls one batch program from another.
  • CD Displays the name of or changes the current directory.
  • CHCP Displays or sets the active code page number.
  • CHDIR Displays the name of or changes the current directory.
  • CHKDSK Checks a disk and displays a status report.
@CoolOppo
CoolOppo / time-to-frequency.ipynb
Created October 19, 2019 07:11
How to extract frequencies with numpy using the real discrete fourier transform
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.