modprobe nbd max_part=8
qemu-nbd --connect=/dev/nbd0 /mnt/primary_cache/domains/WORKING-VM/mac_hdd_ng.img
mkdir /mnt/nbd
mount /dev/nbd0p1 /mnt/nbd
This file contains 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
## Generic IP address list input | |
## Based on a script written by Sam Norris, ChangeIP.com 2008 | |
## Edited by ChrisG661, 2021 | |
## Permissions: ftp, read, write, policy, test | |
# Check if file is not empty | |
:if ([/file get [/file find name=$filename] size] > 0) do={ | |
# Remove existing addresses from the current address list | |
# Disabled as script will use same list for different sourcefiles | |
#/ip firewall address-list remove [/ip firewall address-list find list=$listname] |
This file contains 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 | |
# define the name of cupsd container & printer | |
CONTAINER_NAME=cupsd | |
PRINTER_NAME='Seiko Epson Corp. L3110 Series' | |
# get bus and device number for Seiko Epson Corp. L3110 Series | |
bus_and_device=$(lsusb | grep -i "${PRINTER_NAME}" | awk '{print $2, $4}' | tr ':' ' ') | |
# extract bus and device numbers |
This file contains 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 | |
#set which hosts will be checked | |
CHECKHOST1="10.0.0.100" | |
CHECKHOST2="10.0.0.100" | |
MAX_FAILS=10 | |
FAILCOUNT=0 | |
GLOBALFAILCOUNT=0 | |
PERIOD=30 |
This file contains 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
# eFootball Network Optimization on Mikrotik | |
# Assuming the target PC/Console IP is 192.168.0.100 with network range of 192.168.0.1-254 and bandwidth of 30mbps/10mbps | |
# With ether1 as WAN and ether2 as LAN | |
# Create Mangle for eFootball Traffic | |
/ip firewall mangle | |
add action=mark-connection chain=prerouting comment="MARK CONN KONAMI - TCP" \ | |
connection-state=new dst-port=30000-35000 new-connection-mark=konami_conn \ | |
passthrough=yes protocol=tcp src-address=192.168.0.100 |
This file contains 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
<?xml version='1.0' encoding='UTF-8'?> | |
<domain type='kvm' id='102' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>WORKING-VM</name> | |
<uuid>caded4fe-929c-4759-7458-f8526e2c4bd1</uuid> | |
<description>macOS Ventura</description> | |
<metadata> | |
<vmtemplate xmlns="unraid" name="Arch" icon="Apple_old3.png" os="arch"/> | |
</metadata> | |
<memory unit='KiB'>16777216</memory> | |
<currentMemory unit='KiB'>16777216</currentMemory> |
Tools and packages are from OSX-KVM repository.
# Download fetch-macOS-v2.py and run_offline.sh script