On client, run:
ssh -f -D SOCKS_PORT -N -p SSH_PORT USER@REMOTE_ADDRreplace:
| #!/bin/bash | |
| project_name="my-project" | |
| build_path="build" | |
| cgo_enabled=0 | |
| command -v go > /dev/null || { echo "go not found in PATH" >&2; exit 1; } | |
| mkdir -p "$build_path" |
Create minecraft-compose.yaml:
services:
mc-survival:
container_name: mc-survival
image: itzg/minecraft-server:latest
environment:
TYPE: FABRIC
SERVER_NAME: MyServer| package main | |
| import ( | |
| "errors" | |
| "net" | |
| "net/url" | |
| "syscall" | |
| ) | |
| // ErrType represents network error type |
| //go:build darwin | |
| package main | |
| import ( | |
| "fmt" | |
| "path/filepath" | |
| "golang.org/x/sys/unix" | |
| ) |
| Windows Registry Editor Version 5.00 | |
| ; Disable Windows 10 updates. | |
| ; To enable it back, delete these values. | |
| ; Tested with Windows 10 Pro 20H2, build 19042.1052 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | |
| "DoNotConnectToWindowsUpdateInternetLocations"=dword:00000001 |
| // Used in https://github.com/SCP002/terminator. | |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "github.com/shirou/gopsutil/v4/process" | |
| ) |
| // Used in https://github.com/SCP002/terminator. | |
| package main | |
| import ( | |
| "errors" | |
| "os" | |
| "golang.org/x/sys/windows" | |
| ) |
| //go:build windows | |
| // Used in https://github.com/SCP002/terminator. | |
| // For POSIX, see: https://gist.github.com/SCP002/c7c3bf4aafd3e32e0dc0aa65dda2bf14. | |
| package main | |
| import ( | |
| "errors" | |
| "os" |
| //go:build windows | |
| // Used in https://github.com/SCP002/terminator. | |
| package main | |
| import ( | |
| "fmt" | |
| "unsafe" |