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/env php | |
<?php | |
/** | |
* Rsync wrapper for IDEA to fix rsync deployment from wsl | |
* In "Rsync settings" set: | |
* - Rsync executable path: "c:\windows\system32\wsl.exe" | |
* - Rsync options: "/path/where/you/saved/wslrsync.php -zar" | |
* - Shell executable path: "ssh" | |
*/ | |
$verbose = true; |
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
# kudos to dzaku at consolechars.wordpress.com | |
### MOUNT qcow2 image with lvm partitions | |
# ensure nbd can handle that many partitions | |
sudo modprobe nbd max_part=8 | |
# present image as block device through NBD | |
sudo qemu-nbd --connect=/dev/nbd0 <image.qcow2> |