-
Run sysprep
%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe
-
Run sysprep for converting physical machine to vm
%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe /mode:vm
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
input { | |
syslog { | |
type => "haproxy-access" | |
port => 514 | |
} | |
} | |
filter { | |
grok { | |
type => "haproxy-access" |
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 | |
TARGET_DIR=/mnt/chroot | |
mkdir ${TARGET_DIR} | |
mount /dev/sdb1 ${TARGET_DIR} | |
sudo mount -t sysfs /sys ${TARGET_DIR}/sys | |
sudo mount -t proc /proc ${TARGET_DIR}/proc | |
sudo mount --bind /dev ${TARGET_DIR}/dev | |
sudo mount -t devpts /dev/pts ${TARGET_DIR}/dev/pts | |
sudo mount --bind /tmp ${TARGET_DIR}/tmp | |
sudo chroot ${TARGET_DIR}/ /bin/bash |
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 | |
wget https://raw.githubusercontent.com/jschmid1/gopro_as_webcam_on_linux/master/gopro | |
#put cam in GoConnect mode | |
sudo bash gopro webcam -u debian -r 1080 | |
# record | |
ffmpeg -nostdin -threads 1 -i 'udp://@0.0.0.0:8554?overrun_nonfatal=1&fifo_size=50000000' -f:v mpegts -fflags nobuffer -vf format=yuv420p -f v4l2 /dev/video42 -c copy fart.mkv | |
# re-encode later | |
ffmpeg -i mjpeg.mkv -c:v libx264 -crf 23 -preset medium -pix_fmt yuv420p out.mkv |