Skip to content

Instantly share code, notes, and snippets.

View yechentide's full-sized avatar
😮‍💨

tide yechentide

😮‍💨
View GitHub Profile
import SwiftUI
// https://gist.github.com/Koshimizu-Takehito/93c5891e89d65eadf2164351ca1f2d76
typealias ChartElement = (name: String, count: Int, color: Color)
struct AnimatedDonutChart: View {
@State private var progress: Double = 0
let data: [ChartElement]

Start a docker container

docker run -it --name dst -v ~/dst-server:/root/Server -v ~/dst-worlds:/root/Klei ubuntu:22.04
version: "3.0"

services:
  dst:
    image: debian:11-slim
#!/usr/local/env bash
# shellcheck disable=SC2174
set -eu

# Install wine
dpkg --add-architecture i386 && apt update && apt upgrade -y
apt install -y wget unzip
mkdir -pm755 /etc/apt/keyrings
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Start a docker container

docker run -it --name mc \
  -e TZ=Asia/Tokyo \
  -p 19132:19132/udp \
  -v ~/mc-server:/root/server \
  -v ~/mc-worlds:/root/worlds \
  debian:11-slim /bin/bash