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
# C:\"Program Files"\LibreOffice\program\soffice.exe --headless --convert-to docx --outdir out in\{filename} | |
# structure: | |
# . | |
# out\ | |
# in\ | |
# convert.py | |
import os | |
from multiprocessing import Pool, cpu_count | |
import subprocess |
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
$number = $((Mount-DiskImage -ImagePath "D:\Data\VirtualBox VMs\WSL2 VHD\wsl2.vhdx" -PassThru | Get-Disk).Number) | |
$diskDrive = "\\.\PHYSICALDRIVE$number" | |
$bashDiskDrive = "PHYSICALDRIVE$number" + "p1" | |
wsl --mount $diskDrive -p 1 | |
# remove previously created symlink | |
wsl rm -rf /mnt/wsl/vhd_data | |
# add new symlink | |
wsl ln -s /mnt/wsl/$bashDiskDrive /mnt/wsl/vhd_data | |
# Remember this line for our next part | |
# Start-Process "C:\Program Files\Docker\Docker\Docker Desktop.exe" |