Create minecraft/docker-compose.yml:
services:
minecraft:
image: itzg/minecraft-server
container_name: minecraft
environment:
TYPE: FABRIC
SERVER_NAME: DungeonCreate minecraft/docker-compose.yml:
services:
minecraft:
image: itzg/minecraft-server
container_name: minecraft
environment:
TYPE: FABRIC
SERVER_NAME: Dungeon| #!/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 |
| """ | |
| Windows Privilege Elevation Utility | |
| This script provides functions to check and elevate process privileges on Windows systems, | |
| ranging from standard user to Administrator, SYSTEM, and TrustedInstaller levels. It uses | |
| Windows APIs to trigger UAC prompts and impersonate higher-privilege tokens. | |
| Tested with python 3.13.9 | |
| Package dependencies: |
| import process | |
| def main() -> None: | |
| process.start_process( | |
| "python", | |
| ["--version"], | |
| raise_on_exitcode=True, | |
| ) |
| import powershell | |
| def main() -> None: | |
| with powershell.PowerShell() as pwsh: | |
| proc = pwsh.execute_command("Get-Process -Name explorer") | |
| id = pwsh.get_str_property(proc, "Id") | |
| print(f"Explorer process ID: {id}") | |
| import asyncio | |
| import sftp | |
| async def main() -> None: | |
| ssh_port = 22 | |
| root_dir = r"C:/" | |
| username = "admin" | |
| password = "mypassword" |