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
| #cloud-config | |
| # Paper Minecraft Server — cloud-init | |
| # Self-updating: queries PaperMC Fill v3 API for latest Paper + required Java, | |
| # then downloads the correct JRE from Adoptium if not already installed. | |
| users: | |
| - default | |
| - name: minecraft | |
| gecos: Minecraft Server | |
| lock_passwd: true |
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
| <?php | |
| // Validate file input | |
| $file = $argv[1] ?? ""; | |
| if($file === ""){ | |
| echo "Please provide an image" . PHP_EOL; | |
| return; | |
| } | |
| if(substr($file, -4) !== ".png"){ |