Unreal Engine 4 C++ Cheat Sheet
(C) J. Böhmer, March 2018
Licensed under CC BY-NC-SA 4.0
Version 1.0
https://github.com/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'); |
#!/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/ |
#include <windows.h>
void LeftClick ( )
{
INPUT Input={0};
// left down
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
::SendInput(1,&Input,sizeof(INPUT));
[Source][1]
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.