Skip to content

Instantly share code, notes, and snippets.

View Phoenix616's full-sized avatar
🔥
👀

Max Lee Phoenix616

🔥
👀
View GitHub Profile
@Phoenix616
Phoenix616 / ConfigAccessor.java
Last active May 1, 2021 14:20 — forked from MrZoraman/ConfigAccessor.java
Utility to access yaml files in bukkit
/*
* Copyright (C) 2012
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@Phoenix616
Phoenix616 / ObjectIndex.java
Last active February 17, 2021 18:42
A class that can index objects based on some parameters. Used in https://github.com/RedstoneWorld/RedAction/tree/action-index/
package de.themoep.utils;
/*
* Copyright 2021 Max Lee (max@themoep.de)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@Phoenix616
Phoenix616 / GithubReturnLightThemedHeader.user.css
Created December 8, 2020 19:52
Userstyle to return GitHub's light-themend header (in light mode)
/* ==UserStyle==
@name Github Return Light Themed Header
@namespace https://phoenix616.dev
@preprocessor less
@version 0.1.0
@author Phoenix616 aka Max Lee (https://phoenix616.dev)
@homepageURL https://gist.github.com/Phoenix616/3be078a482e50f5e9cc4cd8e0d7272b7/
@updateURL https://gist.github.com/Phoenix616/3be078a482e50f5e9cc4cd8e0d7272b7/raw/37c94748eaec6dec1d3f1bd10460d7159f4b1ea0/GithubReturnLightThemedHeader.user.css
==/UserStyle== */
package de.minebench.mbutils.bukkit.modules;
import com.Acrobot.ChestShop.Events.ItemInfoEvent;
import de.minebench.mbutils.bukkit.MbUtils;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.NamespacedKey;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@Phoenix616
Phoenix616 / Anonvite.md
Last active September 27, 2020 22:25
Simple php scripts to redirect to anonymous Discord invite links from a server's widget settings.

Anonvite

Simple php scripts to redirect to anonymous Discord invite links from a server's widget settings.

These will not show a specific user who invited as well as automatically connect to the text channel specified in the widget settings. (And if the widget/invite is disabled it will just not work)

Example

Usage

@Phoenix616
Phoenix616 / Network.ini
Last active June 1, 2020 10:48
Simple network monitor Rainmeter skin
[Rainmeter]
Update=500
DynamicWindowSize=1
[Metadata]
Name= Personal - Network
Author=Phoenix616
Version=1.0
License=CC-BY-NC-SA 3.0
@Phoenix616
Phoenix616 / SwitchSoundDevice.ahk
Last active April 13, 2020 20:09
Switch sound devices with AutoHotKey under Windows on a button press. Supports separate media channel redirection. Uses NirSoft's NirCmd and SoundVolumeView
; Switch Sound Device by Phoenix616
; Based on work by fohrums:
; https://autohotkey.com/board/topic/68257-toggle-set-default-audio-device-in-windows-7/page-2#entry632858)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
nirSoundVolumeViewPath := "D:\Programme\NirSoftPackage\NirSoft\SoundVolumeView.exe"
@Phoenix616
Phoenix616 / ItemMatcher.java
Last active February 17, 2020 21:51
Utility class to match items with all their properties (no NBT support though, only Bukkit API settings)
/**
* Nietzsche Public License v0.6-m1
*
* Copyright 2020 Max Lee aka Phoenix616 (mail@moep.tv)
*
* Copyright, like God, is dead. Let its corpse serve only to guard against its
* resurrection. You may do anything with this work that copyright law would
* normally restrict so long as you retain the above notice(s), this license, and
* the following misquote and disclaimer of warranty with all redistributed
* copies, modified or verbatim. You may also replace this license with the Open
@Phoenix616
Phoenix616 / jenkins-set-all-jobs-to-block-on-upstream.groovy
Created February 12, 2020 15:39
This is a small groovy script to be used in Jenkins' Groovy console to change all jobs to block when upstream jobs build. (Or any other property)
for(item in Jenkins.instance.items) {
println("job $item.name")
if (item.hasProperty("blockBuildWhenUpstreamBuilding")) {
item.blockBuildWhenUpstreamBuilding = true
println("set to $item.blockBuildWhenUpstreamBuilding")
}
}
@Phoenix616
Phoenix616 / irc-client-star-gazers.md
Last active January 21, 2020 20:01
A comparison of the amount of stargazers that the GitHub repositories of popular IRC clients have.

This is a comparison of the amount of stargazers that the GitHub repositories of popular IRC clients have. It orders by a count that has people removed that starred another client's repo after staring it giving a more exact actual popularity count. The "moved to" section assumes that someone will not unstar another client's repo after staring his new client's repo giving us some indication which was used previously.

IRC client latest total difference moved to
lounge 3217 3432 215 weechat(46), irssi(42), shout(41), hexchat(27), Textual(25), 5 others
shout 2946