Skip to content

Instantly share code, notes, and snippets.

@Alex1304
Alex1304 / git-aliases.sh
Created August 5, 2023 15:30
Git Aliases
gac() {
git add . && git commit -m "$1"
}
gacp() {
git add . && git commit -m "$1" && git push
}
gam() {
git add . && git commit --no-edit --amend
/*
* This file is part of Discord4J.
*
* Discord4J is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Discord4J is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
package com.github.alex1304.ultimategdbot.core;
import static reactor.function.TupleUtils.consumer;
import java.time.Duration;
import com.github.alex1304.ultimategdbot.api.command.Context;
import com.github.alex1304.ultimategdbot.api.command.PermissionLevel;
import com.github.alex1304.ultimategdbot.api.command.annotated.CommandAction;
import com.github.alex1304.ultimategdbot.api.command.annotated.CommandDescriptor;
@Alex1304
Alex1304 / tag_gd_songs.py
Last active June 16, 2024 05:57
Script to assign title and artist tags to mp3 files of songs downloaded from Geometry Dash. Requires modules eyed3 for mp3 tag processing and wget for the redownload option.
#!/usr/bin/python3
from http.client import HTTPConnection
from urllib.parse import urlencode, unquote
import os
from os.path import sep
import eyed3
from argparse import ArgumentParser
def parse_args():
package com.github.alex1304.ultimategdbot.core;
import java.io.Serializable;
import java.util.function.Function;
import com.github.benmanes.caffeine.cache.Caffeine;
import discord4j.core.shard.ShardAwareStore;
import discord4j.core.shard.ShardingStoreRegistry;
import discord4j.store.api.Store;
package com.github.alex1304.ultimategdbot.core;
import java.time.Duration;
import org.reactivestreams.Publisher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import discord4j.rest.request.GlobalRateLimiter;
import reactor.core.publisher.Flux;