This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
pihole: | |
image: pihole/pihole:latest | |
container_name: pihole | |
hostname: pihole | |
environment: | |
- TZ=Europe/Warsaw | |
- FTLCONF_LOCAL_IPV4=10.16.1.10 # change this to an IPv4 address in your home network, preferrably outside the DHCP range | |
- FTLCONF_LOCAL_IPV6=fd75:26fd:7019::10 # same as above or remove if you don't have IPv6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables. | |
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding. | |
Network configuration | |
Here’s how it’s done: | |
Create a virtual interface that serves as the gateway for your VMs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
PASSWORD=$(LC_ALL=C </dev/urandom tr -dc A-Za-z0-9 | head -c 24) | |
IP_ADDRESS=$(dig @resolver4.opendns.com myip.opendns.com +short -4) | |
# Update system | |
apt update | |
apt dist-upgrade -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export WINEPREFIX=/home/$USER/.local/share/TRS2004 | |
export WINEARCH=win32 | |
wineboot -u | |
# Install dependencies | |
winetricks -q mfc42 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper-*.jar nogui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="564" height="138" viewBox="0 0 564 138" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<g clip-path="url(#clip0)"> | |
<g filter="url(#filter0_dddii)"> | |
<path d="M119.924 21.8366C134.505 25.896 143.795 39.5935 142.271 54.2019C142.271 54.2019 140.568 71.2 139.003 86.591C138.685 89.8356 138.372 92.9323 138.072 95.7293L138.07 95.7296C137.2 104.213 136.521 110.682 136.447 110.947C134.522 117.862 127.385 121.953 120.427 120.016C116.918 119.039 114.17 116.967 112.513 114.022L106.367 103.247H106.365L106.319 103.163L97.5075 87.7181L56.8918 76.4104L57.9759 75.797L50.2582 73.5133L32.0547 82.8493C30.6976 83.6176 31.009 81.8117 31.399 79.5493C31.8542 76.9092 32.4165 73.6475 30.5594 73.1305C26.9709 72.1314 22.5034 75.1612 19.314 77.3243C16.3732 79.3187 14.5191 80.5761 15.4427 77.2588C15.6622 76.4702 39.78 25.6681 39.78 25.6681C46.0842 12.3905 61.0555 5.44741 75.6365 9.50683L119.924 21.8366Z" fill="black"/> | |
<path d="M119.924 21.8366C134.505 25.896 143.795 39.5935 142.271 54.2019C142.271 54.2019 140.568 71.2 139.003 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nbt | |
import os | |
import requests | |
import shutil | |
import uuid | |
uuids = {} | |
for file in os.listdir("world/playerdata"): | |
if file.endswith(".dat"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
import requests | |
class TTSException(Exception): | |
def __init__(self, code: int, message: str, status: str): | |
self.code = code | |
self.message = message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export WINEPREFIX=/home/$USER/.local/share/MultiTheftAuto | |
export WINEARCH=win32 | |
wineboot -u | |
hexdump -n 4 -e '4/4 "%08X" 1 "\n"' /dev/urandom > $WINEPREFIX/drive_c/.windows-serial | |
winetricks -q d3dx9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
__author__ = "xDivadz (David Sn)" | |
__license__ = "GPLv3" | |
# standardowe biblioteki Python | |
import urllib.request | |
import datetime | |
import json |
NewerOlder