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
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2025 07:10
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@mthcht
mthcht / get_cursor_position_and_capture_screenshot_on_mouse_click.ps1
Created January 5, 2023 21:25
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
*** keywords ***
Abrir navegador
[Documentation] Abre o navegador maximizado.
... e carrega uma extensão que desabilita os alertas Js.
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${options} add_extension ${ROOT}\\Misc\\disable_alert.crx
Create WebDriver Chrome chrome_options=${options}
@Revxrsal
Revxrsal / ListPaginator.java
Created July 3, 2019 14:28
An advanced chat paginating utility for Bukkit
import org.bukkit.command.CommandSender;
import java.util.List;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
/**
* A simple utility to create chat pages
*
* @param <E> The type of list to sort
@semutmerah
semutmerah / TestSwipe.robot
Last active January 20, 2025 09:05
Demo Scroll Down / Scroll Up using Swipe keyword in Robot Framework
*** Settings ***
Library AppiumLibrary 15 run_on_failure=Log Source
Library Process
Suite Setup Spawn Appium Server
Suite Teardown Close Appium Server
Test Teardown Close Application
*** Variables ***
## Go here to download the apk for the app used in this test -> https://drive.google.com/file/d/19FxLjux8ZtumweXzBA_CYrL0Va-BL4gY/view?usp=sharing
@gclaussn
gclaussn / robotframework-java-library.md
Last active May 15, 2023 19:29
robotframework-java-library

Custom Java libraries for the Robot Framework can be written as:

  • Static keyword library
  • Dynamic keyword library

Create a Maven project with following dependencies:

<dependency>
  <groupId>org.robotframework</groupId>
@MrBlobman
MrBlobman / Sounds.java
Last active June 24, 2021 21:07
A pre 1.9 to post 1.9 spigot sound enum mapping to use sound names across both versions.
// The following license should allow reuse, redistribution, with or without edits and with or without attribution.
// Do what you want with it!
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 MrBlobman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal