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/sh | |
OPTS="" | |
OPTS="$OPTS -nodefaults" | |
OPTS="$OPTS -enable-kvm" | |
OPTS="$OPTS -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time" | |
OPTS="$OPTS -smp 4" | |
OPTS="$OPTS -m 4G" | |
OPTS="$OPTS -usb -device usb-tablet" |
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/sh | |
SPICE_SOCK="/tmp/qemu_win10_spice.socket" | |
OPTS="" | |
OPTS="$OPTS -nodefaults" | |
OPTS="$OPTS -enable-kvm" | |
OPTS="$OPTS -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time" | |
OPTS="$OPTS -smp sockets=1,cores=2,threads=2" |
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/sh | |
# Edit the metadata 'Create Date' | |
files=$(mktemp) | |
find "$1" -type f -iname "*.jpg" > $files | |
while IFS= read -r f | |
do | |
create_date=$(exiftool -CreateDate "$f" | cut -d ":" -f 2) | |
if [ ! -z "$create_date" ] && [ " 0000" != "$create_date" ]; then |
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
# -*- coding: utf-8 -*- | |
# Extract sprites | |
import argparse | |
import struct | |
import os | |
# mode 13h resolution | |
MONITOR_WIDTH = 320 |
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
# -*- coding: utf-8 -*- | |
# Extract sprites | |
import argparse | |
import struct | |
import os | |
# mode 13h resolution | |
MONITOR_WIDTH = 320 |
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
# -*- coding: utf-8 -*- | |
# Extract sprites | |
import argparse | |
import struct | |
import os | |
# mode 13h resolution | |
MONITOR_WIDTH = 320 |
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
# -*- coding: utf-8 -*- | |
# Extract sprites | |
import argparse | |
import struct | |
import os | |
# mode 13h resolution | |
MONITOR_WIDTH = 320 |
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
# -*- coding: utf-8 -*- | |
import argparse | |
import struct | |
import os | |
parser = argparse.ArgumentParser(description='Check integrity of a sprite file.') | |
parser.add_argument('-f', required=True, help='sprite file', dest='spr') | |
args = parser.parse_args() |
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
# -*- coding: utf-8 -*- | |
import argparse | |
import struct | |
import os | |
parser = argparse.ArgumentParser(description='Check integrity of a sprite file.') | |
parser.add_argument('-f', required=True, help='sprite file', dest='spr') | |
args = parser.parse_args() |
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
# -*- coding: utf-8 -*- | |
# Extract sprites | |
import argparse | |
import struct | |
import os | |
# mode 13h resolution | |
MONITOR_WIDTH = 320 |
NewerOlder