Skip to content

Instantly share code, notes, and snippets.

View unickorn's full-sized avatar
🐛
hunting bugs

Ilhan unickorn

🐛
hunting bugs
  • hetzner
  • Munich, Germany
  • 04:05 (UTC +02:00)
View GitHub Profile
@unickorn
unickorn / cloud-init.yaml
Created June 10, 2026 09:35
Minecraft server (Paper) cloud-init
#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
@unickorn
unickorn / pixel-enlarger.php
Last active April 19, 2021 08:19 — forked from TwistedAsylumMC/pixel-enlarger.php
Increases the size of each pixel within an image
<?php
// Validate file input
$file = $argv[1] ?? "";
if($file === ""){
echo "Please provide an image" . PHP_EOL;
return;
}
if(substr($file, -4) !== ".png"){