Skip to content

Instantly share code, notes, and snippets.

View NonImportantPerson's full-sized avatar
💭
Eating

erfggrefgerf NonImportantPerson

💭
Eating
View GitHub Profile
@NonImportantPerson
NonImportantPerson / flameshot-upload.sh
Last active September 9, 2022 02:30
Mirror: https://gitlab.com/-/snippets/2405245. Simple bash script for uploading to a xbackbone server using flameshot. It can be used for other servers but will need a bit of modification to do so. It currently runs flameshot from a **FLATPAK**, so you will need to change it if you don't have it installed via flatpak. You can make this a hotkey.…
#!/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
@NonImportantPerson
NonImportantPerson / NickPlugin.kt
Created March 25, 2022 10:20 — forked from nathanfranke/NickPlugin.kt
Seamless Name, UUID, and Skin Disguise on Paper 1.18 (ProtocolLib)
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
@NonImportantPerson
NonImportantPerson / DiscordWebhook.java
Last active November 28, 2021 04:24 — forked from k3kdude/DiscordWebhook.java
Java DiscordWebhook class to easily execute Discord Webhooks
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;