Skip to content

Instantly share code, notes, and snippets.

View inxomnyaa's full-sized avatar
🐺
Working on WolvesFortress MCBE RPG Server

inxomnyaa inxomnyaa

🐺
Working on WolvesFortress MCBE RPG Server
View GitHub Profile
@inxomnyaa
inxomnyaa / cycle-caps.ahk
Created May 8, 2025 02:05
Cycle the CASE of selected text like on Android via CAPS - AutoHotkey v2
;AHKv2
#SingleInstance Force
#Warn
CapsLock:: {
static state := 0
static originalText := ""
clipboardBackup := A_Clipboard
@inxomnyaa
inxomnyaa / tiktok-live-autohotkey.ahk
Last active April 3, 2025 23:35
Automatic Scene Switcher for TikTok LIVE Studio (AHK & shortcuts)
#Persistent
SetTimer, CheckWindows, 100 ; Check frequently for window changes
global lastActiveWindow := ""
CheckWindows:
; Only run when TikTok LIVE Studio is running
if !WinExist("ahk_exe TikTok LIVE Studio.exe")
return
@inxomnyaa
inxomnyaa / winget-upgrade-selected.ps1
Last active May 12, 2025 02:45
Upgrade Selected Apps via Winget
# Based on https://www.codewrecks.com/post/general/winget-update-selective/ (gist at https://gist.github.com/alkampfergit/2f662c07df0ca379c8e8e65e588c687b)
# Adds a grid for selecting multiple apps
# Fixes packages with truncated names
# Adds a confirmation dialogue before actually upgrading
class Software {
[string]$Name
[string]$Id
[string]$Version
[string]$AvailableVersion
@inxomnyaa
inxomnyaa / better-github-profile-status.css
Last active January 14, 2022 09:59
GitHub better profile status
/* ==UserStyle==
@name GitHub better profile status
@version 1.0.0
@description Puts the status below the profile picture and makes it always show
@namespace GitHub
@author XenialDan
@homepageURL https://gist.github.com/thebigsmileXD/667a5a024be03d4ac788dde9d2cb69d1
@supportURL https://gist.github.com/thebigsmileXD/667a5a024be03d4ac788dde9d2cb69d1
@updateURL https://gist.githubusercontent.com/thebigsmileXD/667a5a024be03d4ac788dde9d2cb69d1/raw/1a78e232ab96ecde110eea0fca5e566331533a2a/better-github-profile-status.css
==/UserStyle== */
@inxomnyaa
inxomnyaa / clean-deepl.css
Created December 18, 2021 18:34
Clean up deepl, works great with FireFox MultiTranslate addon
.dl_body {
min-height: 100%;
}
.dl_body > * {
display: none !important;
}
.dl_body > .dl_translator_page_container {
display: flex !important;
height: 100%;
width: 100%;
@inxomnyaa
inxomnyaa / HwndHostEx.cs
Created August 9, 2021 02:25 — forked from itsho/HwndHostEx.cs
Hosting an app inside a WPF app (System.Windows.Interop)
using System;
using System.Runtime.InteropServices;
using System.Windows.Interop;
namespace HostingAppTest
{
// based on https://stackoverflow.com/q/30186930/426315
public class HwndHostEx : HwndHost
{
private readonly IntPtr _childHandle;
@inxomnyaa
inxomnyaa / autounping.js
Created April 22, 2021 22:48
Disable ping on reply in Discord (PWA)
// ==UserScript==
// @name autounping
// @namespace Violentmonkey Scripts
// @match *://discord.com/*
// @grant none
// @version 1.1
// @author -
// @description 4/21/2021, 6:00:42 PM
// @noframes
// ==/UserScript==
@inxomnyaa
inxomnyaa / NPC tags
Created December 13, 2020 08:48
SNBT of NPC in MC10 1.16.200 vs MCEE
"":{Armor:[{Count:0b,Damage:0s,Name:"",WasPickedUp:0b},{Count:0b,Damage:0s,Name:"",WasPickedUp:0b},{Count:0b,Damage:0s,Name:"",WasPickedUp:0b},{Count:0b,Damage:0s,Name:"",WasPickedUp:0b}],Attributes:[{Base:0f,Current:0f,DefaultMax:1024f,DefaultMin:-1024f,Max:1024f,Min:-1024f,Name:"minecraft:luck"},{Base:20f,Current:20f,DefaultMax:340282300000000000000000000000000000000f,DefaultMin:0f,Max:340282300000000000000000000000000000000f,Min:0f,Name:"minecraft:health"},{Base:0f,Current:0f,DefaultMax:16f,DefaultMin:0f,Max:16f,Min:0f,Name:"minecraft:absorption"},{Base:0f,Current:0f,DefaultMax:1f,DefaultMin:0f,Max:1f,Min:0f,Name:"minecraft:knockback_resistance"},{Base:0,5f,Current:0,5f,DefaultMax:340282300000000000000000000000000000000f,DefaultMin:0f,Max:340282300000000000000000000000000000000f,Min:0f,Name:"minecraft:movement"},{Base:0,02f,Current:0,02f,DefaultMax:340282300000000000000000000000000000000f,DefaultMin:0f,Max:340282300000000000000000000000000000000f,Min:0f,Name:"minecraft:underwater_movement"},{Base:0,02f,Cur

This tool is used to generate the data found in BedrockData.

Usage

Place the script in the root of a PocketMine-MP source code repository. Make sure the composer autoloader has been appropriately generated.

php decoder.php input_file.txt

Input file

@inxomnyaa
inxomnyaa / big oak tree growth.md
Created April 8, 2020 08:48 — forked from Earthcomputer/big oak tree growth.md
A description of the big oak tree growth algorithm in Minecraft

Big Oak Tree Growth Algorithm

Outline

A big oak tree is made up of a main trunk and multiple branches. A "branch" always contains leaves, but may not always contain logs.

Parameters

  • heightLimit: The actual height of the tree, including leaf blocks at the top (between 5 and 16)
  • trunkHeight: The height of the trunk
  • leafDistanceLimit: The distance from a log that leaves can generate, set to 4 for sapling growth, though appears to be set to 5 for natural growth for some reason