This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| @setlocal enableextensions | |
| @cd /d "%~dp0" | |
| echo "Blocking *all* executables in all subdirectories" | |
| for /R %%f in (*.exe) do ( | |
| netsh advfirewall firewall add rule name="Blocked: %%f" dir=out program="%%f" action=block | |
| netsh advfirewall firewall add rule name="Blocked: %%f" dir=in program="%%f" action=block | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ram='8G' | |
| java_args=( ) | |
| file='server.jar' | |
| args=( '--nogui' "$@" ) | |
| java='java' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.reddit.com/r/Minecraft/comments/etrfs0/how_exactly_do_comparators_calculate_redstone/ | |
| class Slot: | |
| def __init__(self, items_num=0, stack_size=64): | |
| self.items = items_num | |
| self.stack_size = stack_size | |
| self.percentage = self.items / self.stack_size | |
| class Inventory: |