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
@advaith1
advaith1 / top bots.md
Last active July 21, 2025 10:13
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,300,000 Custom Python
2 Rythm 14,900,000 JDA
3 carl-bot 🅱️ 12,100,000 Pycord
4 Dyno 10,600,000 Eris
5 Midjourney Bot
@Crypnotic
Crypnotic / Schematic.java
Created May 14, 2020 01:56
An object for loading and pasting schematics using the WorldEdit api
import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.WorldEditException;
import com.sk89q.worldedit.bukkit.BukkitAdapter;
import com.sk89q.worldedit.extent.clipboard.Clipboard;
import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormat;
import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormats;
import com.sk89q.worldedit.extent.clipboard.io.ClipboardReader;
import com.sk89q.worldedit.function.operation.Operation;
import com.sk89q.worldedit.function.operation.Operations;
@vinesmsuic
vinesmsuic / InstallQT.md
Last active December 31, 2024 15:50
install QT on linux

Main Steps

sudo apt-get install build-essential

sudo apt-get install qtcreator

sudo apt-get install qt5-default

Note: The version you installed is 5.9.5.

@cheesits456
cheesits456 / RemoveButtons.theme.css
Last active June 11, 2025 08:34
Custom CSS for Discord to remove the GIF picker and Nitro Gift buttons from the message bar
/**
* @name Remove Buttons
* @version 1.1.1
* @author cheesits456
* @authorId 306018440639152128
* @description Remove the nitro gift, GIF picker, and sticker picker buttons from the message box. Also remove the sticker suggestion popup
* @source https://gist.github.com/cheesits456/41d659f932b5a574b5dfb9b391a4506e
* @invite 7QH4YeD
* @donate https://donate.haileybot.com
* @website https://cheesits456.dev
@tothi
tothi / undrop_innodb.sh
Last active November 12, 2022 18:00
recover innodb from corrupted tablespace
### DANGEROUS OPERATIONS: do not run automatically
### (notes)
# https://web.archive.org/web/20170105064212/https://twindb.com/recover-corrupt-mysql-database/
DB=dbname; TBL=tablename
# from prod mysql instance
mysqlfrm --user=root --server=root:xxx@localhost --port=3307 /var/lib/mysql/${DB}/${TBL}.frm | sed -e 's/^CREATE TABLE `[^`]*`\./CREATE TABLE /g' -e '1d' -e '$a;' | grep -v '^#' > schemas/${DB}_${TBL}_author.sql
@amake
amake / innosetup-linux-macos.org
Last active April 7, 2025 08:35
Inno Setup on Linux and macOS

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@frikky
frikky / removecontainer.go
Created June 18, 2019 08:57
Stop and remove a docker container with Golang
package main
import (
"log"
"fmt"
"context"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
)
@kirinelf
kirinelf / clock.html
Last active July 7, 2025 15:25 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@sam0737
sam0737 / clock.html
Last active February 5, 2025 09:00
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@k3kdude
k3kdude / DiscordWebhook.java
Created August 17, 2017 15:31
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;