Skip to content

Instantly share code, notes, and snippets.

@SCP002
SCP002 / minecraft-server-docker-howto.md
Last active July 27, 2024 12:03
Minecraft: Run fabric server with mods in docker container.

Create minecraft/docker-compose.yml:

services:
  minecraft:
    image: itzg/minecraft-server
    container_name: minecraft
    environment:
      TYPE: FABRIC
 SERVER_NAME: Dungeon
@SCP002
SCP002 / build.sh
Last active March 17, 2025 17:11
Golang: Shell script to build your project to each OS / Architecture specified.
#!/bin/bash
# Tested with go 1.22.5
project_name="my_project" # Change to your project name
main_file="${project_name}.go" # Or main.go, depends on your project structure
build_path="./build"
# Add values to your liking from "go tool dist list" command
# or https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63
@SCP002
SCP002 / README.md
Last active November 25, 2024 21:36
Linux: Create a container with GUI, graphics card and audio support using LXC

Configuring LXC (LXD / Incus) container with GUI, graphics card and audio support

Install LXD

sudo snap install lxd

Create network