Skip to content

Instantly share code, notes, and snippets.

View modmuss50's full-sized avatar
:octocat:
I may be slow to respond.

modmuss modmuss50

:octocat:
I may be slow to respond.
View GitHub Profile
@Juuxel
Juuxel / ImplementedInventory.java
Last active April 16, 2025 07:05
Implemented Inventory -- a simple SidedInventory implementation
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.Inventories;
import net.minecraft.inventory.Inventory;
import net.minecraft.inventory.SidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.Direction;
import org.jetbrains.annotations.Nullable;
@koush
koush / .bash_profile
Last active February 23, 2022 23:54
Put this in your .bash_profile(s) to open VS Code on your local machine while SSH'd into a remote machine.
# this needs to be on the *remote* machine.
if [ ! -z "$SSH_CLIENT" ]
then
function code() {
local ssh_client_host=$(echo $SSH_CLIENT | cut -d ' ' -f1)
if [ -z "$1" ]
then
local argpath="."