Skip to content

Instantly share code, notes, and snippets.

View BrunoMoraes-Z's full-sized avatar

Bruno Moraes BrunoMoraes-Z

  • Prime Control
  • Brazil
View GitHub Profile
@BrunoMoraes-Z
BrunoMoraes-Z / get_cursor_position_and_capture_screenshot_on_mouse_click.ps1
Created April 11, 2025 20:00 — forked from mthcht/get_cursor_position_and_capture_screenshot_on_mouse_click.ps1
Simple powershell script that can track cursor position on screen and take a screenshot every time a mouse button is clicked
<#
T1113 - Screen Capture
T1056 - Input Capture
Capture mouse cursor position and buttons actions
Take a screenshot for each mouse click and save it in $Directory, works on multiple Screens
From PurpleTeam repo https://github.com/mthcht/Purpleteam/blob/main/Simulation/Windows/System/get_cursor_position_and_capture_screenshot_on_mouse_click.ps1
#>
$Directory = "$env:USERPROFILE\Pictures\Saved Pictures"
$CaptureQuality = 80
@BrunoMoraes-Z
BrunoMoraes-Z / settings.json
Last active December 20, 2024 14:51
robotcode_config
{
"robotcode.robot.variables": {
"EXECDIR": "${workspaceFolder}",
"ROOT": "${workspaceFolder}"
},
"robotcode.robot.outputDir": "${workspaceFolder}/results",
"robotcode.debug.attachPython": true,
"robotcode.analysis.findUnusedReferences": true,
"robotcode.analysis.progressMode": "simple",
"robotcode.analysis.diagnosticMode": "workspace",
document.getElementById('input-message').validity.valueMissing; //Return if element is valid ou not
document.getElementById('input-message').validationMessage; //return the error message
@BrunoMoraes-Z
BrunoMoraes-Z / Dockerfile
Created September 4, 2023 13:37
dockerfile - dart server
# Specify the Dart SDK base image version using dart:<version> (ex: dart:2.12)
FROM dart:stable AS build
# Resolve app dependencies.
WORKDIR /app
COPY pubspec.* ./
RUN dart pub get
# Copy app source code and AOT compile it.
COPY . .
@BrunoMoraes-Z
BrunoMoraes-Z / CSVLibrary.py
Last active March 10, 2023 12:14
Simple RobotLibraries
import csv
import os
from robot.api.deco import keyword, library
from robot.libraries.BuiltIn import BuiltIn
@library(scope='GLOBAL')
class CSVLibrary(object):
@BrunoMoraes-Z
BrunoMoraes-Z / AdbCommands
Last active April 16, 2025 16:26 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
start app:
adb -P 5037 -s emulator-5554 shell am start-activity -W -n <package>/<activity> -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000
adb -P 5037 -s emulator-5554 shell am start-activity -W -n com.android.chrome/com.google.android.apps.chrome.Main -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000
== Adb Server
adb kill-server
adb start-server
# Comandos
#
# runner.sh <AMBIENTE> <COM PROMOÇÂO | SEM PROMOÇÂO>
# runner.sh 2 no_promo
# runner.sh 2 promo
#
# Variavel para controle para verificar se vai ser executado com ou sem promoção
promo=0
{
"image_server": "https://image.prntscr.com/image/",
"recipes": [
{
"id": "1a9a007a-7611-458f-ad87-6af0e1cc408b",
"item_name": "Portal para Vilarejo",
"item_image": "v-OdevanQkyyC3jRZO0vKw",
"recipe_image": "",
"recipe_ingredients": []
},
@BrunoMoraes-Z
BrunoMoraes-Z / screenshot_listener.py
Last active August 10, 2021 00:34
a Listener for RobotFramework in a way that allows you to organize the screenshots by suite and by scene (robot -d results --listener screenshot_listener.py cases/scenarios.robot)
from robot.libraries.BuiltIn import BuiltIn
import os.path
from pathlib import Path
ROBOT_LISTENER_API_VERSION = 2
def start_test(name, attributes):
separator = BuiltIn().get_variable_value('${/}')
output = BuiltIn().get_variable_value('${OUTPUT_DIR}')
execd = BuiltIn().get_variable_value('${EXECDIR}')
import string
alfabetoMinusculo = string.ascii_lowercase
alfabetoMaiusculo = string.ascii_uppercase
def encode(message, decode=False):
result = ''
for l in message:
if l in alfabetoMinusculo or l in alfabetoMaiusculo:
posicao = getLetterPosition(l)