Skip to content

Instantly share code, notes, and snippets.

View Marcelektro's full-sized avatar
☁️
Working on marcloud.net

Marcelektro Marcelektro

☁️
Working on marcloud.net
View GitHub Profile
@Marcelektro
Marcelektro / patchVesktopIcon.sh
Created October 5, 2024 12:25
Quickly patch Vesktop desktop icon with your own on Linux systems
#!/bin/bash
DESKTOP_FILE="/var/lib/flatpak/exports/share/applications/dev.vencord.Vesktop.desktop"
# check if vesktop .desktop file exists
if [[ ! -f "$DESKTOP_FILE" ]]; then
echo "Error: Desktop file '$DESKTOP_FILE' not found. Are you sure you installed Vesktop via Flatpak?"
exit 1
fi
@Marcelektro
Marcelektro / rocketChat-serverApiVersionSpoof.py
Last active January 12, 2024 17:09
A script for mitmproxy making old rocket.chat servers work with newer client apps (the "Name is running an unsupported version of Rocket.Chat" screen)
import json
from mitmproxy import http
# A script for Mitmproxy to make RocketChat client apps always work with old server versions.
# by Marcelektro
API_VERSION_URL = "https://your-rocket-chat/api/info"
@Marcelektro
Marcelektro / Main.java
Created December 6, 2020 20:58
spaceTrimmer
package net.marcelektro;
public class Main {
public static void main(String[] args) {
String pog = "HELLO THERE ARE WAYYYYY TOOO MANY SPACES RIP OOF SAD";
System.out.println(trimSpaces(pog));
}
@Marcelektro
Marcelektro / ItemManager.java
Created December 4, 2020 07:46
Minecraft Custom Itemstack Builder
package net.marcloud.knockit.methods;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.SkullMeta;
import java.util.ArrayList;