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
| #!/bin/bash | |
| url="https://YOUR DOMAIN HERE/upload" | |
| token="YOUR TOKEN HERE" | |
| temp_file="/tmp/screenshot.png" | |
| flatpak run org.flameshot.Flameshot gui -r > $temp_file | |
| if [[ $(file --mime-type -b $temp_file) != "image/png" ]]; then | |
| rm -rf $temp_file |
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
| package me.nathanfranke.nickplugin | |
| import com.comphenix.protocol.PacketType | |
| import com.comphenix.protocol.ProtocolLibrary | |
| import com.comphenix.protocol.events.PacketAdapter | |
| import com.comphenix.protocol.events.PacketContainer | |
| import com.comphenix.protocol.events.PacketEvent | |
| import com.comphenix.protocol.wrappers.EnumWrappers | |
| import com.comphenix.protocol.wrappers.PlayerInfoData | |
| import com.comphenix.protocol.wrappers.WrappedChatComponent |
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 javax.net.ssl.HttpsURLConnection; | |
| import java.awt.Color; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.lang.reflect.Array; | |
| import java.net.URL; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; |