Skip to content

Instantly share code, notes, and snippets.

View CodeCorrupt's full-sized avatar
👀

Tyler Hoyt CodeCorrupt

👀
  • Tampa, FL
View GitHub Profile
@CodeCorrupt
CodeCorrupt / gist:063148987064be20add437d34159c8f5
Last active February 25, 2025 20:53
docker_install_ubuntu_24_04.sh
#!/usr/bin/env bash
set -euxo pipefail
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
@CodeCorrupt
CodeCorrupt / README.md
Last active February 5, 2023 06:29
Run Minecraft server as Systemd service (with support for commands) the right way

This is a modification to the setup recommended by the minecraft wiki at https://minecraft.fandom.com/wiki/Tutorials/Server_startup_script. Start by following the directions there, then modify to match what's here.

This allows control over stdin of the server by piping commands to %i/%v/mc.stdin. ie: echo "say Hello" > /run/survival/mc.stdin %i is your systems runtime directory (mine is /run %v is your servers name, explained in the wiki linked