This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set UNREAL_FOLDER=C:\Program Files\Epic Games\UE_5.6 | |
| set UNREAL_EXE=Engine\Binaries\Win64\UnrealEditor-Win64-DebugGame.exe | |
| set CURRENT_FOLDER=%cd% | |
| set UPROJECT_FILE=ForMyFriends.uproject | |
| "%UNREAL_FOLDER%\%UNREAL_EXE%" "%CURRENT_FOLDER%\%UPROJECT_FILE%" -game -log -resX=1920 -resY=1080 -windowed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Answer the following questions as best you can. You have access to the following tools: | |
| {tools} | |
| Use the following format: | |
| Question: the input question you must answer | |
| Thought: you should always think about what to do | |
| Action: the action to take, should be one of [{tool_names}] | |
| Action Input: the input to the action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| Language: Cpp | |
| AccessModifierOffset: -4 | |
| AlignAfterOpenBracket: DontAlign | |
| AlignConsecutiveAssignments: false | |
| AlignConsecutiveDeclarations: false | |
| AlignEscapedNewlines: Left | |
| AlignOperands: true | |
| AlignTrailingComments: true | |
| AllowAllParametersOfDeclarationOnNextLine: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face {font-family: "Virgil";src: url("https://excalidraw.com/Virgil.woff2");} | |
| @font-face {font-family: "Cascadia";src: url("https://excalidraw.com/Cascadia.woff2");} | |
| @font-face {font-family: "Assistant";src: url("https://excalidraw.com/Assistant-Regular.woff2");} | |
| div.markdown-embed-title { | |
| display: none; | |
| } | |
| div.markdown-embed { | |
| border: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void generate_blue_tile_mask_struct() { | |
| QImage mask(":/tile_mask.png"); | |
| std::vector<std::pair<uint8_t, uint8_t>> tilePixelCoordinates; | |
| for (int y = 0; y < mask.height(); ++y) { | |
| for (int x = 0; x < mask.width(); ++x) { | |
| QRgb pixel = mask.pixel(x, y); | |
| if (qAlpha(pixel) != 0) { // Check if the pixel is not transparent | |
| tilePixelCoordinates.push_back({static_cast<uint8_t>(x), static_cast<uint8_t>(y)}); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def rename_fn(name, offset): | |
| print("Offset " + hex(offset) + ", Name " + name) | |
| func = currentProgram.getFunctionManager().getFunctionAt(getAddress(offset)) | |
| if func: | |
| func.setName(name, ghidra.program.model.symbol.SourceType.DEFAULT) | |
| else: | |
| print("Creating function...") | |
| cmd = ghidra.app.cmd.function.CreateFunctionCmd(getAddress(offset)) | |
| if cmd.applyTo(currentProgram): | |
| print("Created function.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import os | |
| from pathlib import Path | |
| from typing import List | |
| import shutil | |
| # Default output directory placeholder | |
| default_out: str = "xmake_libraries" | |
| # Default package names list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| # Python port of .NET's HttpServerUtility.UrlTokenDecode | |
| def url_token_decode(encoded_string: str) -> bytes: | |
| # Get the padding count from the last character of the encoded string | |
| padding_count = ord(encoded_string[-1]) - ord("0") | |
| # Remove the last character (which indicates padding) | |
| encoded_string = encoded_string[:-1] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer |
NewerOlder
