Skip to content

Instantly share code, notes, and snippets.

View Phoenix616's full-sized avatar
πŸ”₯
πŸ‘€

Max Lee Phoenix616

πŸ”₯
πŸ‘€
View GitHub Profile
@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 / ShowHide-WinY-Shortcut.ahk
Last active May 20, 2018 15:03
Small AutoHotkey script to toggle the display of the icon on the desktop. (Default shortcut is Win+Y, tested on Windows 7)
#y::
ControlGet, HWND, Hwnd,, SysListView321, ahk_class Progman
If HWND =
ControlGet, HWND, Hwnd,, SysListView321, ahk_class WorkerW
If DllCall("IsWindowVisible", UInt, HWND)
WinHide, ahk_id %HWND%
Else
WinShow, ahk_id %HWND%
@Phoenix616
Phoenix616 / UpdateJavaPath.bat
Last active April 19, 2018 19:09
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.
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%"
PAUSE
@Phoenix616
Phoenix616 / github-compare-stars-date.py
Last active June 13, 2022 20:03
A python script to compare repositories by the amount of stars while removing people who stared on of the other repos before. See an example with IRC clients here: https://gist.github.com/Phoenix616/4a9a75d425b7913c6580c01265e465b6
# 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:
#
# The above copyright notice and this permission notice shall be included in all
@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
echo "File: unique (total - duplicate)"
for file in "$@"; do
for compare in "$@"; do
if [ "$file" == "$compare" ]; then
continue;
fi;
cat $compare >> /tmp/get_unique_line_count-others.txt
done;
lines=$(cat $file | wc -l)
duplicate=$(comm -12 <( sort $file ) <( sort /tmp/get_unique_line_count-others.txt ) | wc -l)
@Phoenix616
Phoenix616 / unique-irc-client-stargazers.md
Last active February 13, 2018 23:52
Unique GitHub Stargazers of popular IRC clients
@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 / searchnbt.js
Last active December 6, 2016 22:08
WorldEdit craftscript to search through the NBT of blocks in your selection. Supports regex.
importPackage(Packages.com.sk89q.worldedit);
importPackage(Packages.com.sk89q.worldedit.blocks);
function main() {
context.checkArgs(1, -1, "<regex>");
var regexString = argv[1];
for (var i = 2; i < argv.length; i++) {
regexString += " " + argv[i];
@Phoenix616
Phoenix616 / IconRpMapping.java
Last active December 4, 2023 18:00
IconRpMapping - Display Minecraft item stacks in chat with WolfieMario's Text Icon Resource pack. For more info see README.md.
package de.themoep.utils;
/*
* IconRpMapping utils for mapping of Bukkit materials to WolfieMario's
* Custom Text Icons Resourcepack (https://s.moep.tv/iconrp)
* Copyright (C) 2018 Max Lee aka Phoenix616 ([email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or