Skip to content

Instantly share code, notes, and snippets.

View zax71's full-sized avatar

Zax71 zax71

  • Endercube
  • Earth?
View GitHub Profile
@zax71
zax71 / music.rs
Created April 9, 2024 21:31
All the Rust that I’ve done
use std::path::Path;
use regex::Regex;
use std::fs;
pub fn list(music_files: &mut Vec<String>) {
// Get the OS music directory
let music_directory = dirs::audio_dir().unwrap();
let music_path: &Path = music_directory.as_path();
// Get the paths top the files in that music dir
@zax71
zax71 / EventListener.java
Last active January 12, 2024 17:31
Basic Minestom Event Listener
public class MinigameStart implements EventListener<MinigameStartEvent> {
@Override
public @NotNull Class<MinigameStartEvent> eventType() {
return MinigameStartEvent.class;
}
@Override
public @NotNull Result run(@NotNull MinigameStartEvent event) {
return Result.SUCCESS;
@zax71
zax71 / Issues with free hosts.md
Last active December 4, 2021 14:07
The issues with free hosting services

The issues with free hosting services

Over my time i have used almost all the free hosts that exist. and they all had many issues that couldn't be resolved. including:

  • limited number of plugins
  • Outdated plugins
  • Turns off after some time
  • Low specs that can't run anything past 1.12

But i can't pay for a host