Turn On/Off display monitor windows API
To turn off monitor in Windows, SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)2) is most widely used.
Instead, we can use low-level monitor configuration functions.
Create Swapfile on CentOS
adopted from Tutorial of Digitalocean
1. dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
2. chmod 600 /swapfile
3. mkswap /swapfile
4. swapon /swapfile
+ Add「/swapfile swap swap sw 0 0」in /etc/fstab
BitLocker with CMD
To lock the volume,
C:\>manage-bde -lock [volume]
To unlock the volume,
C:\>manage-bde -unlock -pw [volume]