Skip to content

Instantly share code, notes, and snippets.

View Phoenix616's full-sized avatar
🔥
👀

Max Lee Phoenix616

🔥
👀
View GitHub Profile
/**
* Copyright (C) 2016 Max Lee (https://github.com/Phoenix616/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@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 / list.php
Last active June 13, 2022 20:03
Simple Directory List
<!--
Simple Directory List
Copyright (C) 2020 Max Lee aka Phoenix616 (max@themoep.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@Phoenix616
Phoenix616 / DarkJavadocs.user.css
Last active May 15, 2023 15:45
Dark Java 9-18 Javadocs Userstyle
/* == UserStyle==
@name Dark Javadocs
@namespace https://phoenix616.dev
@description Dark Java 9-18 Javadocs Userstyle
@author Max Lee aka Phoenix616 (https://phoenix616.dev)
@version 0.1.13
@homepageURL https://gist.github.com/Phoenix616/cc725e0f417af2f987b92e711ad37a98/
@license CC0
@updateURL https://gist.github.com/Phoenix616/cc725e0f417af2f987b92e711ad37a98/raw/27f6db9b5f0dd05930e0b9b8c853d2e35bfe99d0/DarkJavadocs.user.css
==/UserStyle== */
@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")
}
}

Keybase proof

I hereby claim:

  • I am Phoenix616 on github.
  • I am phoenix616 (https://keybase.io/phoenix616) on keybase.
  • I have a public key whose fingerprint is 7A2E 6B10 8BA3 486B AD2D A9FA CD3E 65A8 A356 C4D4

To claim this, I am signing this object:

@Phoenix616
Phoenix616 / Different-cursors-for-different-links.user.css
Last active October 10, 2023 20:57
Different cursors for different links Stylus style