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
# First thing you need to do after OpenVPN installation is add current user to the ovpn_admin_group | |
# https://community.openvpn.net/openvpn/wiki/OpenVPNInteractiveService | |
# then "Import profile" from OpenVPN GUI and press "Connect" from context menu | |
# XXX this script doesn't work for "Start OpenVPN on this config file" from context menu on .opvn file | |
# for this way you need to add administrators privileges for both openvpn.exe and openvpn-gui.exe | |
$user = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name | |
$key = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN" | |
$value = "ovpn_admin_group" |
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
## Download latest CentOS 7 x86_64 minimal iso image | |
## Good readings | |
# https://labs.vmware.com/vmtj/methodology-for-performance-analysis-of-vmware-vsphere-under-tier-1-applications | |
# https://labs.vmware.com/vmtj/virtualizing-latency-sensitive-applications-where-does-the-overhead-come-from | |
## Create typical CentOS VM | |
# compatible with 'ESXi 6.0 and later' | |
# set 'Guest OS Family' to 'Linux' | |
# set 'Guest OS Version' to 'CentOS 4/5/6/7 (64 bit)' |
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 | |
PW=$(openssl rand -base64 42 | tr -cd '[:alnum:]') | |
echo $PW |