Skip to content

Instantly share code, notes, and snippets.

View brunoxkk0's full-sized avatar
💭

Bruno Marques Caroba brunoxkk0

💭
View GitHub Profile
local monitor = peripheral.wrap("top")
local title = "MobTrap OS 1.0"
local mobtypes = {
wither = {title = " Wither ", status = false, currentRow = 0, minX = 0, maxX = 0, rs = colors.white},
spider = {title = " Aranha ", status = false, currentRow = 0, minX = 0, maxX = 0, rs = colors.orange},
blaze = {title = " Blaze ", status = false, currentRow = 0, minX = 0, maxX = 0, rs = colors.magenta},
creeper = {title = " Creeper ", status = false, currentRow = 0, minX = 0, maxX = 0, rs = colors.lightBlue},
@brunoxkk0
brunoxkk0 / 1.7.10-essentials.md
Created November 23, 2023 13:12 — forked from makamys/1.7.10-essentials.md
List of "Essential" 1.7.10 Mods

List of "Essential" 1.7.10 Mods

This is a list of Minecraft 1.7.10 mods that are not focused on adding new original content. Instead, they make the base game run better, or port over features from other versions of vanilla.

These lists try to comprehensively list all the available options. You will not want to use all of the listed mods at once.

Some of the listed mods require a Mixin bootstrap mod in order to work. See the Mixin mods section near the end of the document for information about that.

Optimization/Fix mods

INTRODUÇÃO À DISCIPLINA DE GERENCIAMENTO DE PROJETO DE SOFTWARE

Olá, seja muito bem vindo à nossa plataforma online de estudos voltado a Gerenciamento de Projetos de Software. Neste primeiro momento, iremos introduzi-lo no mundo de projetos, apresentando conceitos, as características e como se dá a gestão dos mesmos.

CONCEITOS

Um projeto de software é basicamente tudo o que envolve desenvolver alguma aplicação, seja ela Web, Mobile ou para plataformas de jogos (Xbox, Playstation). Neste projeto, são estabelecidos vários documentos, onde contém as etapas de desenvolvimento de projeto, regras, coleta de requisitos do cliente, tudo de forma documentada para que o projeto saia da melhor maneira possível. Um projeto tem um começo, meio e fim. Há uma importante definição sobre Projeto, veja:

Segundo a PMI (Project Management Institute), podemos definir projetos como: É um empreendimento temporário ou uma sequência de atividades com começo, meio e fim programados, com objetivo de criar um produto ou serv

@brunoxkk0
brunoxkk0 / Downlog.js
Created March 22, 2023 22:02
Injetor de elementos, basta rodar esse código no console
(function (){
setInterval(() => {
let data = [];
document.querySelectorAll('div[data-protocolo="execucao"]:not([downlog="true"])').forEach((el) => {
let dt = Object.entries(el).find( entry => entry[0].startsWith("jQuery") && entry[1])[1]
let io = {target: el, index: dt["$scope"]["$index"], protocolo: dt["$scrConsoleLinhaExecucaoController"]["protocolo"], status: dt["$scrConsoleLinhaExecucaoController"]["execucao"]["status"]}
io["url"] = `https://plataforma-execucoes.betha.cloud/v1/download/api/execucoes/${io.protocolo}/log/file`
data.push(io)
})
@brunoxkk0
brunoxkk0 / Worker.js
Created March 20, 2023 13:46
emailjs on cloudflare workers.
export default {
async fetch(request) {
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Max-Age': '86400',
};
public void call(HTTPTarget target, HTTPHeaderParameters headerParameters){
List<RouteHandler> routes = RouteManager.getRoutes().entrySet().stream()
.filter(entry ->
antPathMatcher.isMatch(entry.getKey(), target.getPath()) &&
Arrays.stream(entry.getValue().getClass().getAnnotation(Route.class)
.method())
.toList()
.contains(target.getMethodEnum())
)
[JDA MainWS-ReadThread/ERROR] [jdalib.jda.api.JDA]: One of the EventListeners had an uncaught exception
java.lang.NullPointerException: null
at br.net.fabiozumbi12.UltimateChat.Sponge.discord.UCDiscord.onMessageReceived(UCDiscord.java:256) ~[UCDiscord.class:?]
at jdalib.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:428) ~[ListenerAdapter.class:?]
at jdalib.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96) [InterfacedEventManager.class:?]
at jdalib.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:82) [EventManagerProxy.class:?]
at jdalib.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:69) [EventManagerProxy.class:?]
at jdalib.jda.internal.JDAImpl.handleEvent(JDAImpl.java:153) [JDAImpl.class:?]
at jdalib.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:122) [MessageCreateHandler.class:?]
at jdalib.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36) [SocketHandler.class:?]
public class ImageProcessor {
public static BufferedImage gray(BufferedImage image){
for(int x = 0; x < image.getWidth(null); x++) {
for (int y = 0; y < image.getHeight(null); y++) {
int color = image.getRGB(x, y);
int r = (int) (((color >> 16) & 0xFF) * 0.299);
@brunoxkk0
brunoxkk0 / Reflection.java
Last active June 24, 2020 22:12
Reflection.java
package br.com.brunoxkk0.reflections;
import sun.net.www.protocol.file.FileURLConnection;
import java.io.File;
import java.io.IOException;
import java.net.JarURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLDecoder;
[00:45:44 ERROR]: Could not pass event PlayerCommandPreprocessEvent to UltimateChat v1.8.9
org.bukkit.event.EventException: null
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:63) ~[EventExecutor.class:1.12.2-2541029]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66) ~[RegisteredListener.class:1.12.2-2541029]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [SimplePluginManager.class:1.12.2-2541029]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1570) [pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1420) [pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(CPacketChatMessage.java:46) [la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(CPacketChatMessage.java:9) [la.class:?]
at net.minecraft.network.PacketThreadUtil$