Skip to content

Instantly share code, notes, and snippets.


Max Lee Phoenix616

View GitHub Profile
Phoenix616 /
Created Mar 13, 2016
Irssi script to automatic set (un)away status to react on wether or not a screen is attached and a proxy is connected, fork of by ads
use Irssi;
use strict;
use FileHandle;
use vars qw($VERSION %IRSSI);
$VERSION = " - 1.0";
%IRSSI = (
authors => 'Phoenix616 <>, Andreas \'ads\' Scherbaum <>',
name => 'proxy_and_screen_away',
Phoenix616 /
Last active May 4, 2016
Fix the usage of lingering potions in PvP with WG6
import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.bukkit.RegionContainer;
import com.sk89q.worldguard.bukkit.RegionQuery;
import com.sk89q.worldguard.bukkit.WGBukkit;
import com.sk89q.worldguard.bukkit.util.Materials;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
Phoenix616 / searchnbt.js
Last active Dec 6, 2016
WorldEdit craftscript to search through the NBT of blocks in your selection. Supports regex.
View searchnbt.js
function main() {
context.checkArgs(1, -1, "<regex>");
var regexString = argv[1];
for (var i = 2; i < argv.length; i++) {
regexString += " " + argv[i];
echo "File: unique (total - duplicate)"
for file in "$@"; do
for compare in "$@"; do
if [ "$file" == "$compare" ]; then
cat $compare >> /tmp/get_unique_line_count-others.txt
lines=$(cat $file | wc -l)
duplicate=$(comm -12 <( sort $file ) <( sort /tmp/get_unique_line_count-others.txt ) | wc -l)
Phoenix616 /
Last active Feb 13, 2018
Unique GitHub Stargazers of popular IRC clients
Phoenix616 / UpdateJavaPath.bat
Last active Apr 19, 2018
Simple batch script to both create a version independent folder and to update the paths (system path requires admin rights). This needs to be run in the folder where the JDK (or JRE) is in.
View UpdateJavaPath.bat
set /p version="Enter the Java minor version: "
rm jdk1.8.0
mklink /J jdk1.8.0 jdk1.8.0_%version%
SETX JAVA_HOME "%~dp0jdk1.8.0_%version%"
SETX JAVA_HOME /m "%~dp0jdk1.8.0_%version%"
Phoenix616 / ShowHide-WinY-Shortcut.ahk
Last active May 20, 2018
Small AutoHotkey script to toggle the display of the icon on the desktop. (Default shortcut is Win+Y, tested on Windows 7)
View ShowHide-WinY-Shortcut.ahk
ControlGet, HWND, Hwnd,, SysListView321, ahk_class Progman
ControlGet, HWND, Hwnd,, SysListView321, ahk_class WorkerW
If DllCall("IsWindowVisible", UInt, HWND)
WinHide, ahk_id %HWND%
WinShow, ahk_id %HWND%
Phoenix616 /
Last active May 24, 2018
Click on particles...
HashMap<UUID,Location> stands = new HashMap<UUID, Location>();
double particleHeight = 1.5;
public void onEnable() {
getServer().getPluginManager().registerEvents(this, this);
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
public void run() {
Phoenix616 /
Last active Aug 19, 2018
Translation mappings to be used with Bukkit's Material names and Minecrafts translation system, needs
* TranslationMapping is an util for mapping pre 1.13 Bukkit materials to
* the language keys of minecraft items in the language files of the client
* Licensed under the following (MIT) license:
* Copyright (C) 2018 Max Lee (
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Phoenix616 /
Last active Nov 22, 2018
Simple text replacements for properties inside of blocks, requires WorldEdit. MIT License
* Copyright (c) 2018 Phoenix616 (Max Lee)
* 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: